You are here

Help me get EPG from json file.

2 posts / 0 new
Last post
djartas
Offline
djartas's picture
Joined: 9 years
Last seen: 1 year
Help me get EPG from json file.

Help fix it. Where am I making a mistake?
Help me get EPG from json file.


**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: url.lt
* @MinSWversion:
* @Revision 1 - [2022.12.27] Artas
* - your_comments
* @Remarks: your_remarks
* @header_end
**------------------------------------------------------------------------------------------------
site {url=url.lt|timezone=Europe/Vilnius|maxdays=7.1|cultureinfo=lt-LT|charset=UTF-8}
*
urldate.format {datestring|dd-MM-yyyy}

url_index{url|https://www.url.lt/|channel|.json}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
index_showsplit.scrub {multi(separator="},{")|"ch_programme":[|]}|]}}
index_showsplit.modify{cleanup(style=unidecode)}
index_showsplit.modify{cleanup(style=jsondecode)}
index_start.scrub {single|"start":"||",|",}
index_title.scrub {single|"title":"||",|",}
index_description.scrub {single|"description":"||",|",}
index_description.modify{remove(type=regex)|"\\[rn]"}
category.scrub {single|"category":"||},|},}
**
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*index_site_id.scrub {|}
*index_site_id.modify {set|royatv}
*index_site_channel.modify {set|Roya TV}
** @auto_xml_channel_end

Attachments: 
japangelo
Offline
japangelo's picture
Donator
Joined: 4 years
Last seen: 3 hours

your showsplit is incorrect. try this:

index_showsplit.scrub {multi(separator="},{")|"ch_programme":[|||]}

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl