**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: nz.entertainment.yahoo.com * @MinSWversion: V1.1.1/49 * none * @Revision 2 - [08/05/2013] Jan van Straaten * general overhall, yahoo search result filtered with select * @Revision 1 - [19/07/2012] Jan van Straaten * timeformat temp_4 'globalized' , showdate in index_variable and forwards loop iso backwards * @Remarks: * none * @header_end **------------------------------------------------------------------------------------------------ site {url=nz.entertainment.yahoo.com|timezone=UTC+13:00|maxdays=3.1|cultureinfo=en-NZ|charset=UTF-8|titlematchfactor=90|ratingsystem=NZ} site {loadcookie=nz.entertainment.cookie.txt,yahoo.com|firstshow=1} url_index{url|http://nz.entertainment.yahoo.com/tv-guide/channel/|channel|/} *http://nz.entertainment.yahoo.com/tv-guide/channel/2/ = 3 days urldate.format {daycounter|0} index_showsplit.scrub {multi|
" -@} * index of the start of the description temp_2.modify {calculate(format=F0)|20 +} description.modify {substring(type=char)|'temp_1' 'temp_2'} description.modify {cleanup(tags="<"">")} * * extract other elements from description: videoaspect.modify {addstart('description' ~ "(WS\)")|WS} videoquality.modify {addstart('description' ~ "HD")|HD} description.modify {remove|(WS)} description.modify {remove|HD} * * productiondate productiondate.modify {calculate(format=productiondate)|'description'} description.modify {remove|. 'productiondate'} *if at the end description.modify {remove|'productiondate':} *if at the beginning * * director temp_1.modify {calculate(type=char format=F0)|'description' "Director" -@} temp_1.modify {calculate(not "-1" format=F0)|9 +} director.modify {substring('temp_1' not "-1" type=char)|'description' 'temp_1'} description.modify {remove(separator=", ")|Director 'director'} description.modify {remove(separator=", ")|Director: 'director'} * actors temp_1.modify {calculate(type=char format=F0)|'description' "Starring" -@} temp_1.modify {calculate(not "-1" format=F0)|9 +} actor.modify {substring('temp_1' not "-1" type=char)|'description' 'temp_1'} actor.modify {remove|.} actor.modify {cleanup} *removes trailing spaces actor.modify {replace|, |\|} * convert to multivalue description.modify {remove(separator=", ")|Starring 'actor'} description.modify {remove(separator=", ")|Starring: 'actor'} * presenters temp_1.modify {calculate(type=char format=F0)|'description' "Voices Of" -@} temp_1.modify {calculate(not "-1" format=F0)|10 +} presenter.modify {substring('temp_1' not "-1" type=char)|'description' 'temp_1'} presenter.modify {remove|.} presenter.modify {cleanup} *removes trailing spaces presenter.modify {replace|, |\|} * convert to multivalue description.modify {remove(separator=", ")|Voices Of 'presenter'} description.modify {remove(separator=", ")|Voices Of: 'presenter'} * category category.modify {addstart('description' ~ "romantic comedy")|Romantic Comedy} description.modify {remove|'category'} category.modify {addstart('description' ~ "comedy")|Comedy} category.modify {addstart('description' ~ "action")|Action} category.modify {addstart('description' ~ "featurette")|Featurette} category.modify {addstart('description' ~ "drama")|Drama} category.modify {addstart('description' ~ "crime")|Crime} category.modify {addstart('description' ~ "thriller")|Thriller} category.modify {addstart('description' ~ "horror")|Horror} category.modify {addstart('description' ~ "western")|Western} category.modify {addstart('description' ~ "animated")|Animated} category.modify {addstart('description' ~ "documentary")|Documentary} description.modify {remove|'category'} *description.modify {cleanup} description.modify {addstart("")|No details.} end_scope * category.modify {cleanup(style=lower)} *same style as index_category title.modify {addstart|'index_title'} * title is always the same as index_title * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *scope.range {(channellist)|end} *url_index {url|http://nz.entertainment.yahoo.com/tv-guide/personalise/} *index_temp_1.scrub {single||||} *index_site_id.scrub {multi||||} *index_temp_1.modify {replace|Select your channels|\|} *index_temp_1.modify {replace|
} *index_temp_1.modify {remove()|