62 lines
2.7 KiB
INI
Executable File
62 lines
2.7 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: mag.sapo.pt
|
|
* @MinSWversion: V2.1
|
|
* @Revision 3 - [26/03/2019] doglover
|
|
* fixed description
|
|
* @Revision 2 - [12/10/2016] Blackbear199
|
|
* Site changes
|
|
* @Revision 1 - [29/02/2016] Blackbear199
|
|
* Site change - rewrite
|
|
* @Revision 0 - [08/09/2013] Mario Lima
|
|
* Site change - No subpages, all data available on index pages.
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=mag.sapo.pt|timezone=Europe/Lisbon|maxdays=7|cultureinfo=pt-PT|charset=UTF-8}
|
|
*
|
|
url_index{url|https://services.sapo.pt/EPG/GetChannelByDateIntervalJSON?ESBToken=01.eY-ccS4OiD_gqhIixwE1xg&channelSigla=|channel|&startDate=|urldate|+00:00:00&endDate=|urldate|+23:59:59}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
*
|
|
index_showsplit.scrub {regex()||\{"Actor":.*?"Writer":null\}||}
|
|
*
|
|
scope.range{(indexshowdetails)|end}
|
|
index_start.scrub {single|"StartTime":"||"|"}
|
|
index_stop.scrub {single|"EndTime":"||"|"}
|
|
index_title.scrub {single|"Title":"||"|"}
|
|
index_episode.modify {substring(type=regex)|'index_title' "T\d+\s-\sEp\.\s\d+"}
|
|
index_title.modify {remove('index_episode' not "")|'index_episode'}
|
|
index_episode.modify {replace(not "")| - | }
|
|
index_episode.modify {replace(not "")|T|S}
|
|
index_episode.modify {replace(not "")|Ep.|E}
|
|
index_episode.modify {remove | }
|
|
*
|
|
index_temp_1.scrub {single ()|"GuestStar"|"Id":"|",|"ShortDescription"}
|
|
index_urlshow.modify {set|https://services.sapo.pt/EPG/GetProgramByIdJSON?ESBToken=01.eY-ccS4OiD_gqhIixwE1xg&programId='index_temp_1'}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
index_title.modify {cleanup}
|
|
description.modify {cleanup}
|
|
index_episode.modify {cleanup}
|
|
end_scope
|
|
*
|
|
title.modify {addstart|'index_title'}
|
|
description.scrub {single|"Description":"||"|"}
|
|
description.modify {remove|\}
|
|
*
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
**other channel list url
|
|
**http://services.sapo.pt/EPG/GetChannelListJSON?ESBToken=01.eY-ccS4OiD_gqhIixwE1xg
|
|
**
|
|
** @auto_xml_channel_start
|
|
*url_index{url|http://services.sapo.pt/EPG/GetDetailedChannelList?ESBToken=01.eY-ccS4OiD_gqhIixwE1xg}
|
|
*index_site_channel.scrub {multi|"Name":"||"|"}
|
|
*index_site_id.scrub {multi|"Sigla":"||"|}
|
|
*scope.range {(channellist)|end}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|