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

81 lines
3.7 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: sportklub.info
* @MinSWversion:
* @Revision 1 - [18/10/2016] Blackbear199
* - new site
* - changed name to sportklub.info
* @Revision 0 - [04/03/2016] Blackbear199
* - creation
* @Remarks: your_remarks
* @header_end
**------------------------------------------------------------------------------------------------
*
* You may need to adjust the timezone= setting for the country you wish to grab epg listings for.current setting is for Slovenia
*
site {url=sportklub.info|timezone=Europe/Ljubljana|maxdays=7.1|cultureinfo=sl-SI|charset=UTF-8|titlematchfactor=90|keepindexpage}
*
url_index{url|http://sportklub.##site##}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|yyyy-MM-dd}
*
scope.range{(urlindex)|end}
index_temp_1.modify {substring(type=regex)|'config_site_id' "^([^#]*)##"}
url_index.modify {replace|##site##|'index_temp_1'}
end_scope
*
index_variable_element.modify {substring(type=regex)|'config_site_id' "##(\d+)$"}
*
index_showsplit.scrub {multi(includeblock='index_variable_element')|<ul class="epg-item-row">|<li class="epg-item"|</li>|</ul>}
*
index_start.scrub {single(pattern="dd.MM.yyyy HH.mm")|<span class="time">|,|</span>|</div>}
index_start.modify {remove| -}
index_duration.scrub {single|style="width: ||em;">|em;">}
index_duration.modify {calculate(format=F0)|3 *}
index_title.scrub {single|<h4 class="title">||</h4>|</h4>}
index_description.scrub {single|<p class="desc">||</p>|</p>}
index_temp_3.scrub {single|<span class="live">||</span>|</span>}
index_title.modify {addstart('index_temp_3' not "")|'index_temp_3'! }
index_category.scrub {single|<span class="topic">|</span>|</span>|<h4}
index_category.modify {remove(type=regex)|\s*<span.*$}
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|http://sportklub.|subpage|}
*subpage.format {list|si/Spored|hr/TV-Program|rs/TV-Program}
*scope.range{(channellist)|end}
*index_site_id.scrub {|}
*index_temp_9.scrub {multi|<div class="epg-left">||<!--|<!--}
*index_temp_4.modify {set|0}
*loop{(each "index_temp_8" in 'index_temp_9')|end}
*index_temp_7.modify {set|si/Spored\|hr/TV-Program\|rs/TV-Program}
*index_temp_7.modify {substring(type=element)|'index_temp_7' 'index_temp_4' 1}
*index_temp_6.modify {substring(type=regex)|'index_temp_8' "title=\"sk_([^\"]*)\">"}
*index_temp_6.modify {replace|golf|7}
*index_temp_6.modify {replace|hd|8}
*index_temp_6.modify {addstart|'index_temp_7'##}
*index_temp_6.modify {replace|\||###}
*index_temp_1.modify {addend|'index_temp_6'###}
*index_temp_5.modify {substring(type=regex)|'index_temp_8' "title=\"([^\"]*)\">"}
*index_temp_7.modify {substring(type=regex)|"^([^\\]*)\/"}
*index_temp_5.modify {addstart|'index_temp_7'-}
*index_temp_5.modify {replace|_| }
*index_temp_5.modify {cleanup(style=upper)}
*index_temp_5.modify {replace|\||###}
*index_temp_2.modify {addend|'index_temp_5'###}
*index_temp_4.modify {calculate(format=F0)|1 +}
*end_loop
*index_site_id.modify {addstart|'index_temp_1'}
*index_site_id.modify {replace|###|\|}
*index_site_id.modify {remove(type=element)|-1 1}
*index_site_channel.modify {addstart|'index_temp_2'}
*index_site_channel.modify {replace|###|\|}
*index_site_channel.modify {remove(type=element)|-1 1}
*index_site_id.modify {cleanup(removeduplicates link="index_site_channel")}
*end_scope
** @auto_xml_channel_end