Files
epg/siteini.pack/Romania/digiromania.ro.ini
freearhey a597b11307 Init
2021-03-09 22:46:37 +03:00

41 lines
2.5 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: digiromania.ro
* @MinSWversion:1.1.1./V56.13
* @Revision 1 - [08/09/2018] r00ty
* - Adjusted for new URLs/post mode, and generally made to work. It's a basic title/date only service here.
* @Revision 0 - [05/02/2016] Blackbear199
* - your_comments
* @Remarks: your_remarks
* @header_end
**------------------------------------------------------------------------------------------------
site {url=digiromania.ro|timezone=Europe/Bucharest|maxdays=3|cultureinfo=ro-RO|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=RO|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000}
url_index{url|https://www.digiromania.ro/asistenta/program-tv-xhr}
url_index.headers {accept=*/*}
url_index.headers {method=POST|contenttype=application/x-www-form-urlencoded; charset=UTF-8}
url_index.headers {postdata=action=programTvCheck&channel='channel'&day='urldate'}
urldate.format {datenumber|UNIX|2}
index_showsplit.scrub {regex||(?:\<div class="tbl-cell"\>Program\</div\>\s*\<\/div\>\s*(?:\<div class="tbl-row"\>\s*(\<div class="tbl-cell"\>.*?\</div\>\s*\<div class="tbl-cell"\>.*?\<\/div\>\s*)\<\/div>\s*)+\<\/div>)||}
index_start.scrub {regex||\<div class="tbl-cell"\>(.*?)\</div\>\s*<div class="tbl-cell">.*?\</div\>||}
index_start.modify {replace|&colon;|:}
index_title.scrub {regex||\<div class="tbl-cell"\>.*?\</div\>\s*<div class="tbl-cell">(.*?)\</div\>||}
* Replace their over-use of XML escape codes
index_title.modify {replace|&colon;|:}
index_title.modify {replace|&period;|.}
index_title.modify {replace|&comma;|,}
index_title.modify {replace|&exclamation;|!}
index_title.modify {replace|&percent;|%}
index_title.modify {replace|&add;|+}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|http://digiromania.ro/asistenta/program-tv}
*index_site_id.scrub {regex||(?:\<select name="programcb".*?(?:\<option value="(\d+?)".*?\>.*?\<\/option\>\s*)+.*?\<\/select\>)||}
*index_site_channel.scrub {regex||(?:\<select name="programcb".*?(?:\<option value="\d+?".*?\>\s*(.*?)\s*\<\/option\>\s*)+.*?\<\/select\>)||}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end