**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: pop-tv.si * @MinSWversion: V1.1.1/37 * none * @Revision 0 - [29/11/2012] Jan van Straaten * none * @Remarks: * change url_index.headers for the correct username and password * a FTP download * @header_end **------------------------------------------------------------------------------------------------ *---------------------------------------------------------------------- * change url_index.headers for the correct username and password: | * | url_index.headers {credentials=sibila,51b1l4} *username,password | *---------------------------------------------------------------------- * site {url=pop-tv.si|timezone=UTC+01:00|maxdays=14.1|cultureinfo=sl-SI|charset=utf-8|titlematchfactor=90|episodesystem=onscreen} url_index{url|ftp://ftp.pop-tv.si/|channel|_|urldate|_####_EPG.XML} *url_index{url|ftp://ftp.pop-tv.si/|channel|_20121129_20121213_EPG.XML} *ftp://ftp.pop-tv.si/|channel|_20121128_20121212_EPG.XML urldate.format {datestring|yyyyMMdd} index_variable_element.modify {calculate(scope=urlindex format=date,yyyyMMdd)|'now' 14:00:00 +} *14 days after today url_index.modify {replace(scope=urlindex)|####|'index_variable_element'} index_showsplit.scrub {multi||T|:00<|/Start>} * repair strange values like 26:20!! scope.range {(indexshowdetails)|end index_temp_1.modify {substring(type=char)|'index_start' 0 2} * the hours index_start.modify {remove(type=char)|0 2} * remove the hours if >23 index_temp_1.modify {calculate(> "23" format=F0)|24 -} * correct the hours index_start.modify {addstart|'index_temp_1'} * reinsert the hours * index_duration.scrub {single||||} index_duration.modify {calculate(format=time)|3600 /} index_title.scrub {single||||} index_titleoriginal.scrub {single(lang=xx)||||} index_description.scrub {single||||} index_actor.scrub {multi(separator=", ")||||} index_director.scrub {multi(separator=", ")||||} index_productiondate.scrub {single||||} index_rating.scrub {single||||} * needs clarification, see further down index_category.scrub {single||||} * needs clarification index_temp_3.scrub {single|||| index_episode.scrub {single||||} index_temp_2.scrub {single||||} index_temp_2.modify {clear("0")} index_episode.modify {addstart(not "")| Epizoda } * is that correct in Slovenian? index_episode.modify {addstart('index_temp_2' not "")|Sezona 'index_temp_2'} * and this? index_episode.modify {cleanup} * * add typeid to subtitle untill we know what it is: index_subtitle.modify {addend('index_temp_3' not "")|Type Id: 'index_temp_3'} * * replace the rating values with the intended values like this: *index_rating.modify {replace|Trikotnik|intended value} index_rating.modify {replace|Trikotnik|Trikotnik} index_rating.modify {replace|Grog|Grog} * replace the category numbers with the intended values: index_category.modify {replace|100|100} index_category.modify {replace|102|102} index_category.modify {replace|104|104} index_category.modify {replace|105|105} index_category.modify {replace|106|106} index_category.modify {replace|107|107} index_category.modify {replace|108|108} index_category.modify {replace|111|111} index_category.modify {replace|113|113} index_category.modify {replace|114|114} index_category.modify {replace|117|117} index_category.modify {replace|119|119} index_category.modify {replace|50200|50200} index_category.modify {replace|50201|50201} *index_category.modify {replace||} *index_category.modify {replace||} end_scope.range