Files
epg/siteini.pack/Slovenia/pop-tv.si.ini
freearhey a597b11307 Init
2021-03-09 22:46:37 +03:00

82 lines
4.1 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @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|<EVENT ID=|||}
*
index_start.scrub {single|<Start>|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|<Duration>||</Duration>|</Duration>}
index_duration.modify {calculate(format=time)|3600 /}
index_title.scrub {single|<Title>||</Title>|</Title>}
index_titleoriginal.scrub {single(lang=xx)|<OriginalTitle>||</OriginalTitle>|</OriginalTitle>}
index_description.scrub {single|<Synopsis>||</Synopsis>|</Synopsis>}
index_actor.scrub {multi(separator=", ")|<Actors>||</Actors>|</Actors>}
index_director.scrub {multi(separator=", ")|<Directors>||</Directors>|</Directors>}
index_productiondate.scrub {single|<Year>||</Year>|</Year>}
index_rating.scrub {single|<Certification>||</Certification>|</Certification>} * needs clarification, see further down
index_category.scrub {single|<GenreID>||</GenreID>|</GenreID>} * needs clarification
index_temp_3.scrub {single|<TypeID>||</TypeID>|</TypeID>
index_episode.scrub {single|<Episode>||</Episode>|</Episode>}
index_temp_2.scrub {single|<Season>||</Season>|</Season>}
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