This commit is contained in:
freearhey
2021-03-09 22:46:37 +03:00
commit a597b11307
1377 changed files with 173563 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: tv.mail.ru
* @MinSWversion: V2.1
* @Revision 3 - [20/11/2018] Blackbear199
* - showsplit Fix
* - channels.xml fix(new channels added to bottom of list)
* - rating fix
* @Revision 2 - [09/07/2018] Blackbear199
* - site changes
* @Revision 1 - [15/05/2016] Blackbear199
* - site changes
* @Revision 0 - [14/09/2014] Jan van Straaten
* - creation : there is a -2 hour time offset in the index page index_temp_6 corrects it
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=tv.mail.ru|timezone=Europe/Moscow|maxdays=8|cultureinfo=ru-RU|charset=UTF-8|titlematchfactor=90|allowlastdayoverflow}
site {ratingsystem=RU|episodesystem=onscreen}
*
url_index{url|https://tv.mail.ru/ajax/channel/?region_id=70&channel_id=|channel|&date=|urldate|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
url_index.headers {accept=application/json, text/javascript, */*; q=0.01}
*
urldate.format {datestring|yyyy-MM-dd}
*
index_urlchannellogo {url|https://tv.mail.ru|"channel":{"pic_url":"||"|"}
*
index_showsplit.scrub {multi|"event":{"current":[||],"past"|],"past"}
index_showsplit.modify {replace|\},\{|\}\|\{}
index_showsplit.modify {cleanup(style=jsondecode)}
*index_showsplit.modify {(debug)}
*
index_temp_1.scrub {single|"id":"||"|"}
index_urlshow.modify {addstart|https://tv.mail.ru/ajax/event/?id='index_temp_1'&region_id=70}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
*
index_start.scrub {single|"start":"||"|"}
index_title.scrub {single|"name":"||","|","}
*
title.scrub {regex||\"region_slug\"\:.+?\"name\"\:\"(.+?)\",||}
subtitle.scrub {regex||\"episode_title\"\:\"(.+?)\",\"||}
description.scrub {regex||\"descr\"\:\"(.+?)\",\"||}
director.scrub {multi|"title":"Режиссеры","persons":[|"name":"|"}|]}
actor.scrub {multi|"title":"В ролях","persons":[|"name":"|"}|]}
rating.scrub {single|"age_restrict":"||"|"}
starrating.scrub {single|"afisha_event":{|"val":"|"|}}
category.scrub {multi|"genre":[|"title":"|"|]}
productiondate.scrub {regex()||\"year\"\:.+?\"title\"\:\"(.+?)\"||}
starrating.scrub {regex()||\"rate\"\:.+?\"val\"\:\"(.+?)\"||}
country.scrub {regex||\"country\"\:.+?\"title\"\:\"(.+?)\"||}
showicon.scrub {single|"tv_gallery":{"items":[|"src":"|"|}}
*
title.modify {cleanup(style=jsondecode)}
subtitle.modify {cleanup(style=jsondecode)}
description.modify {cleanup(tags="<"">")}
description.modify {cleanup(style=jsondecode)}
rating.modify {set(0")|0+}
rating.modify {set(3")|6+}
rating.modify {set(4")|12+}
rating.modify {set(5")|16+}
rating.modify {set(6")|18+}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|https://tv.mail.ru/ajax/channel/index/?region_id=70&page=|subpage|}
*subpage.format {list(format=D1 step=1 count=40)|1}
*index_site_id.scrub {multi|"channel":[|"id":"|"|]}
*index_site_channel.scrub {multi|"channel":[|"name":"|",|]}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end