01-11-2018, 20:51
Ето два варианта:
1. Инсталирай си (на компютъра, където мъчиш WebGrab-a) xmltv проекта. Както можеш да видиш, функционира не върху .NET/Mono, а на Perl. Ще ти трябват също xmltv_utils, по-конкретно tv_merge. С него, можеш да стиковаш/слепваш два XMLTV файла в един общ.
2. По принцип може и с WebGrab++ да се направи, като отделен siteini за въпросният източник:
Код:
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: your_site_name
* @MinSWversion: 1.1.1/56.02
* @Revision 3 - [21/01/2016] Francis De Paemeleere
* - add show icon
* @Revision 2 - [21/10/2015] Francis De Paemeleere
* - speedup for large files
* @Revision 1 - [17/10/2015] Jan van Straaten
* - allows multiple xmltv input file to merge
* @Revision 0 - [09/05/2014] Jan van Straaten
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
*** edit - timezone=UTC+00:00 - to the timezone for which the xmltv data is created
*** edit (optional) - cultureinfo=en-GB - to the cultureinfo of the country for which the xmltv data is created
site {timezone=Europe/Sofia|maxdays=6.1|cultureinfo=bg-BG|charset=UTF-8|titlematchfactor=90|keepindexpage}
*
*** eventually enable and adapt ratingsystem and episodesystem to your requiements
site {ratingsystem=GB|episodesystem=xmltv_ns}
*
*** edit - path_of_the_xmltv_file2merge.xml - to your requirements
*** more than one file2merge or just one:
*subpage.format {list|path_of_the_1st_xmltv_file2merge.xml|path_of_the_2nd_xmltv_file2merge.xml|etc}
*** example
*subpage.format {list|D:\guide-1.xml|D:\guide-2.xml}
*url_index{url|file://|subpage|}
site {compression=gzip|firstshow=1|keepindexpage}
url_index{url|http://epg.kodibg.org/epg.xml.gz}
url_index.headers {method=GET|contenttype=application/zip}
scope.range {(datelogo)|end}
index_variable_element.modify {addstart|'config_site_id'}
index_urlchannellogo.modify {addstart|http://logos.kodibg.org/'config_site_id'.png}
index_urlchannellogo.modify { cleanup (style=lower)}
end_scope
index_showsplit.scrub {regex||<programme [^>]*channel=\"'index_variable_element'\"[^>]*>.*?</programme>||}
index_start.scrub {single|start="||"|>}
index_stop.scrub {single|stop="||"|>}
index_title.scrub {single|<title|>|</title>|</title>}
index_subtitle.scrub {single|<sub-title|>|</sub-title>|</sub-title>}
index_description.scrub {single|<desc|>|</desc>|</desc>}
index_actor.scrub {multi|<actor>||</actor>|</actor>}
index_director.scrub {multi|<director>||</director>|</director>}
index_writer.scrub {multi|<writer>||</writer>|</writer>}
index_producer.scrub {multi|<producer>||</producer>|</producer>}
index_presenter.scrub {multi|<presenter>||</presenter>|</presenter>}
index_productiondate.scrub {single|<year>||</year>|</year>}
index_category.scrub {multi|<category|>|</category>|</category>}
index_starrating.scrub {single|<star-rating>|<value>|</value></star-rating>}
index_rating.scrub {single|<rating>|<value>|</value>}
index_ratingicon.scrub {single|<rating>|<icon src="|"|}
*index_episode.scrub {single|<episode-num>||</episode-num>|</episode-num>}
index_episode.scrub {single(pattern="Епизод 'E0' - Сезон 'S0'")||'index_subtitle'}
*index_showicon.scrub {regex||<icon src=\"([^\"]*)||}
index_showicon.scrub {single|<icon src="||" />}
scope.range {(indexshowdetails)|end}
* extraxt times
*start="20120922004200" stop="20120922021200"
index_start.modify {substring(type=char)|8 4}
index_temp_1.modify {substring(type=char)|'index_start' 0 2} * the hours
index_start.modify {substring(type=char)|2 2} * the minutes
index_start.modify {addstart|'index_temp_1':}
index_stop.modify {substring(type=char)|8 4}
index_temp_1.modify {substring(type=char)|'index_stop' 0 2} * the hours
index_stop.modify {substring(type=char)|2 2} * the minutes
index_stop.modify {addstart|'index_temp_1':}
index_description.modify {cleanup}
end_scope