**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: tviz.tv * @MinSWversion: V1.57 * @Revision 2 - [25/04/2017] Blackbear199 * - added php support for linux users * @Revision 1 - [02/08/2016] Blackbear199 * - showsplit & episode fix * @Revision 0 - [28/07/2016] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=tviz.tv|timezone=UTC+03:00|maxdays=12|cultureinfo=ru-RU|charset=UTF-8|titlematchfactor=90} site {ratingsystem=RU|episodesystem=onscreen} * url_index{url|https://www.tviz.tv/day/|urldate|/|channel|/} *windows users *url_index{url|http://127.0.0.1/tviz_tv.php?date=|urldate|&channel=|channel|&reqtype=1} *linux users * urldate.format {list|segodnya|zavtra|{datestring|yyyy-MM-dd}} * index_urlchannellogo {url|https://www.tviz.tv|
} * index_showsplit.scrub {multi||||} index_showsplit.modify {cleanup(style=jsondecode)} index_showsplit.modify {substring(type=regex)|"|">} *windows users *index_urlshow {url|http://127.0.0.1/tviz_tv.php?reqtype=2&showlink=||">} *linux users index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * index_start.scrub {single|||||} * title.scrub {single(separator=":" include=first)|
|

|

|
} subtitle.scrub {single(separator=" - " include=last)|
|

|

|
} * temp_1.scrub {single|
||
|
} temp_2.modify {calculate(format=F0 type=element)|'temp_1' #} * rating.modify {substring('temp_2' "3" type=element)|'temp_1' 0 1} category.modify {substring('temp_2' "3" type=element)|'temp_1' 1 1} productiondate.modify {substring('temp_2' "3" type=element)|'temp_1' 2 1} * rating.modify {substring('temp_2' "2" type=element)|'temp_1' 0 1} category.modify {substring('temp_2' "2" type=element)|'temp_1' 1 1} * description.scrub {single|
||
|} * presenter.scrub {multi|
Ведущие
|rel="nofollow">||} * director.scrub {multi(includeblock="Режиссер")|} director.scrub {multi(includeblock="Режиссер")|
|class="human-info">|
} * actor.scrub {multi|
Актёры
|rel="nofollow">||} actor.scrub {multi|
Актёры
|class="human-info">||} * writer.scrub {multi(includeblock="Сценарист")|} writer.scrub {multi(includeblock="Сценарист")|
|class="human-info">|
} * composer.scrub {multi(includeblock="Композитор")|} composer.scrub {multi(includeblock="Композитор")|
|class="human-info">|
} * starrating.scrub {multi||||} * episode.modify {substring(type=regex pattern="'E1'-я серия""Серия 'E1'""'E1'-я - 'Et1'-я серии")|'description' "^(\d+-я серия)"} temp_3.scrub {single|
|

|

|
} temp_3.modify {substring(type=regex)|"(?:\d+-я - )?(?:\d+-я )?[Сс]ери[яи](?: \d+)?"} temp_3.modify {clear("Серия")} episode.modify {addstart("")|'temp_3'} * showicon.scrub {url|https://www.tviz.tv|")} description.modify {cleanup} director.modify {replace|
| } director.modify {cleanup(tags="<"">")} presenter.modify {replace|
| } presenter.modify {cleanup(tags="<"">")} actor.modify {replace|
| } actor.modify {cleanup(tags="<"">")} actor.modify {cleanup(removeduplicates)} writer.modify {replace|
| } writer.modify {cleanup(tags="<"">")} composer.modify {replace|
| } composer.modify {cleanup(tags="<"">")} starrating.modify {cleanup(tags="<"">")} * productiondate.modify {cleanup} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index {url|http://127.0.0.1/tviz_tv.php?subpage=|subpage|&city=|channel|&reqtype=3} *linux users **---------------------------------------------------------------------------------- * this section for windows only *url_index {url|https://www.tviz.tv/index/more/} *windows users *url_index.headers {method=POST} *url_index.headers {customheader=Accept-Encoding=gzip,deflate} *url_index.headers {customheader=X-Requested-With=XMLHttpRequest} *url_index.headers {accept=application/json, text/javascript, */*; q=0.01} *url_index.headers {contenttype=application/x-www-form-urlencoded; charset=UTF-8} *url_index.headers {postdata=offset='subpage'&city_id='channel'&category_id=0&day=0&genre_id=0&my_channels=none} **------------------------------------------------------------------------------------ ** enable next 4 lines for linux and windows *subpage.format {list(format=D1 step=18 count=24)|0} *index_site_id.scrub {multi||\/\">} *index_site_channel.scrub {multi|data-name=\"||\"|\"} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end