**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: tv.dir.bg * @MinSWversion: V2.1.5 * @Revision 4 - [24/02/2022] Blackbear199 * index elents change * @Revision 3 - [11/03/2019] Blackbear199 * title fix * @Revision 2 - [21/03/2016] Blackbear199 * rewrite * @Revision 1 - [25/08/2013] Francis De Paemeleere * small update * @Revision 0 - [10/12/2012] Jan van Straaten * creation * @Remarks: * * @header_end **------------------------------------------------------------------------------------------------ site {url=tv.dir.bg|timezone=Europe/Sofia|maxdays=6|cultureinfo=bg-BG|charset=UTF-8|titlematchfactor=90|allowlastdayoverflow} site {ratingsystem=BG|episodesystem=onscreen} * url_index {url|https://tv.dir.bg/tv_channel.php?id=|channel|&dd=|urldate|} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * urldate.format {datestring|dd.MM} * index_urlchannellogo {url||} * index_showsplit.scrub {multi(exclude="progress-bar")|} *index_showsplit.modify {(debug)} * index_start.scrub {single(pattern="HH.mm")||||} index_title.scrub {single||||} * index_title.modify {cleanup(tags="<"">")} index_description.modify {substring(type=regex)|'index_title' "^[^-–;]*[-–;]\s*(.*)$"} index_title.modify {remove('index_description' not "")|'index_description'} index_title.modify {remove(type=regex)|"\s*[-–;]\s*$"} * index_urlshow {url|https://tv.dir.bg/||">} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * description.scrub {multi(separator="
" include=first)|
||
|} category.scrub {multi|Жанрове:||
|} actor.scrub {multi(separator=", " max=6)|В ролите:||

|

} producer.scrub {single(separator=", ")|Режисьор:||

|

} productiondate.scrub {single|Година:||
|
} country.scrub {single(separator=" / ")|Държава:||
|
} showicon.scrub {single|||} * title.modify {addstart|'index_title'} description.modify {cleanup(tags="

""

")} description.modify {cleanup(tags="<"">")} description.modify {cleanup} category.modify {cleanup(tags="<"">")} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the tv-dir.bg.channel.xml file) ** ** @auto_xml_channel_start *url_index {url|https://tv.dir.bg/} *index_site_id.scrub {multi||<|} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end