Init
This commit is contained in:
65
siteini.pack/Norway/se.no.ini
Executable file
65
siteini.pack/Norway/se.no.ini
Executable file
@@ -0,0 +1,65 @@
|
||||
**------------------------------------------------------------------------------------------------
|
||||
* @header_start
|
||||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||||
* @Site: se.no
|
||||
* @MinSWversion:
|
||||
* @Revision 0 - [11/03/2013] Francis De Paemeleere
|
||||
* - creation
|
||||
* @Remarks:
|
||||
* - you need cookies. See se.no_info.txt for more info.
|
||||
* - don't change config_display_name in the channels entry, because this ini makes use of it
|
||||
* @header_end
|
||||
**------------------------------------------------------------------------------------------------
|
||||
*
|
||||
site {url=se.no|timezone=UTC+01:00|maxdays=7|cultureinfo=no|charset=ISO-8859-1|titlematchfactor=90}
|
||||
site {keepindexpage} * will dramaticly speedup grabbing of multiple channels
|
||||
site {loadcookie=se.no_cookies.txt}
|
||||
url_index{url|http://www.se.no/tv/?date=|urldate|}
|
||||
urldate.format {datestring|dd-MM-yyyy}
|
||||
scope.range {(datelogo)|end}
|
||||
index_variable_element.modify {clear}
|
||||
index_variable_element.modify {addstart()|'config_site_id'}
|
||||
end_scope
|
||||
index_showsplit.scrub {multi|id="'index_variable_element'"|<li id=|</li>|</ul>}
|
||||
*
|
||||
scope.range {(indexshowdetails)|end}
|
||||
index_variable_element.modify {clear}
|
||||
index_variable_element.modify {addstart|'config_display_name'}
|
||||
end_scope
|
||||
* get all the elements from the index page
|
||||
index_temp_1.scrub {multi(separator=" - ")|<div class="meta-time">'index_variable_element',||(|(}
|
||||
index_temp_2.scrub {multi(separator=" - ")|<div class="meta-time">'index_variable_element',||(|(}
|
||||
index_title.scrub {single()|<span class="title">||</span>|</span>}
|
||||
index_description.scrub {single()|-->||<|<}
|
||||
index_category.scrub {single|<span class="category"|>|</span>|</span>}
|
||||
index_temp_3.scrub {multi|Kommentator:|||.} * comentator
|
||||
index_temp_4.scrub {multi|Norsk kommentar:|||.} * comentator
|
||||
index_presenter.scrub {multi(separator=", ")|Programleder:|||.}
|
||||
index_actor.scrub {multi(separator=", ")|Medvirkende:|||.}
|
||||
*
|
||||
scope.range {(indexshowdetails)|end}
|
||||
index_urlchannellogo.modify {addstart('index_temp_5' not= "")|http://gfx.dagbladet.no/tv/kanaler_nye/'index_temp_5'}
|
||||
index_start.modify {substring(type=element)|'index_temp_1' 0 1}
|
||||
index_stop.modify {substring(type=element)|'index_temp_2' 1 1}
|
||||
index_commentator.modify {addstart('index_temp_3' not= "")|'index_temp_3'} * combine multiple comentators
|
||||
index_commentator.modify {addstart('index_temp_4' not= "")|\|'index_temp_4'} * combine multiple comentators
|
||||
index_description.modify {remove(null)|Kommentator:'{single () |Kommentator:|||.}'} * remove comentators from description
|
||||
index_description.modify {remove(null)|Norsk kommentar:'{single () |Norsk kommentar:|||.}'} * remove comentators from description
|
||||
index_description.modify {remove(null)|Programleder:'{single () |Programleder:|||.}'} * remove presenters from description
|
||||
index_description.modify {remove(null)|Medvirkende:'{single () |Medvirkende:|||.}'} * remove actors from description
|
||||
index_commentator.modify {cleanup}
|
||||
index_presenter.modify {cleanup}
|
||||
index_actor.modify {cleanup}
|
||||
end_scope
|
||||
|
||||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||||
**
|
||||
** @auto_xml_channel_start
|
||||
** ADD config_site_channel in the .config.xml file
|
||||
*scope.range {(channellist)|end}
|
||||
*url_index{url|http://www.se.no/kanaler/}
|
||||
*index_site_id.scrub {multi|id="channels"|<div id="alt_|"|</div> </div>}
|
||||
*index_site_channel.scrub {multi|id="channels"|title="|"|</div> </div>}
|
||||
*end_scope
|
||||
** @auto_xml_channel_end
|
||||
Reference in New Issue
Block a user