Files
epg/siteini.pack/United Arab Emirates/dmi.ae.ini
freearhey a597b11307 Init
2021-03-09 22:46:37 +03:00

63 lines
3.1 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: dmi.ae
* @MinSWversion:
* @Revision 0 - [04/08/2014] Jan van Straaten
* - creation
* @Remarks: Dubai
* @header_end
**------------------------------------------------------------------------------------------------
*
site {url=dmi.ae|timezone=Asia/Dubai|maxdays=6|cultureinfo=ar-AE|charset=UTF-8|titlematchfactor=50}
site {retry=<retry time-out="10">4</retry>}
*
urldate.format {datestring|dd/MM/yyyy}
url_index{url()|http://www.dmi.ae/|channel|/schedule.asp?lang=ar&PrgDate=|urldate}
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
index_showsplit.scrub {regex()||(<tr class="bg(?:3\|4\|5).+?</tr>)||}
index_start.scrub {regex||\">\s+?(\d{2}\:\d{2})\s*?</||}
*index_title.scrub {regex(debug)||<a href=\"program_detail.asp\?PID=\d+?&.+?\">(.+?)</a>||}
index_title.scrub {regex()||<a href=\".+\">(.+?)</a>||}
index_title.modify {cleanup(tags="<img""/>")}
index_title.modify {cleanup(tags="<"">")}
index_temp_2.scrub {regex||</h3>\s+?</a>(.+?)<br />||} * description alternative
index_temp_2.modify {remove|<!--}
*index_urlchannellogo {url| }
scope.range {(indexshowdetails)|end}
index_temp_1.modify {addstart|'config_site_id'}
index_urlshow {url|http://www.dmi.ae/####/|<a href="||">|">}
index_urlshow.modify {replace()|####|'index_temp_1'}
index_urlshow.modify {clear(not ~ "PID")} * clear if no link to details
*http://www.dmi.ae/dubaitv/program_detail.asp?PID=21581&PTID=4
*http://www.dmi.ae/dubaitv/program_detail.asp?PID=17990
end_scope
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages
title.scrub {single()|<div class="boxTitle omega_mb2 beta_m1">|<h1>|</h1>|</div>}
title.modify {addstart("")|'index_title'}
*temp_1.scrub {single||||} *copy of the detail page
*description.scrub {regex||<p class=\"beta_m1 alpha_m1\">(.+)<(?:BR\|br)><(?:BR\|br)>||}
description.scrub {regex()||<p class=\"beta_m1 alpha_m1\">(.+?)</p>||} * includes actor and director
description.modify {cleanup(tags="<a href""</script>")}
description.modify {cleanup(tags="<"">")}
description.modify {addstart("")|'index_temp_2'} * use index description if empty here
* credits are impossible to separate, inconsequent structure
*director.scrub {single|}
*actor.scrub {single(separator="،""و")|بطولة||<BR>|<BR>}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|http://www.dmi.ae/dubaitv/}
*index_site_channel.scrub {multi|<a href="http://www.dmi.ae/||/"|</a>}
*index_site_id.scrub {multi|<a href="http://www.dmi.ae/||/"|</a>}
*scope.range {(channellist)|end}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end