need help with new web epg grabber (1 Viewer)

Juppe

Portal Pro
November 17, 2006
315
45
Home Country
Sweden Sweden
Hi.

I have a problem with a WebEPG grabber I'm trying to do.
The problem is that the site returns a json-file and I cant get my head around how to parse that file.
As I understand WebEPG supoorts json-file, but I dont know how to do that.

The url to one of the channels are:

The dat argument looks like "2023-07-06" and the channelFriendlyUrl is "svt1-hd".
So just replace [YYYY]-[MM]-[DD] with 2023-07-06 and [ID] with svt1-hd

The parts that I like to get is:
content/channels/programs/name
content/channels/programs/formattedStartTime
content/channels/programs/formattedEndTime
content/channels/programs/description
and maybe
content/channels/programs/episodeNumber

Hope someone have the time and the knowledge to help me with this.

/Juppe
 
Last edited:
Thanks Juppe for digging into this. We could have good use for a new Swedish grabber now that Dagenstv is no longer working.

Here's my attempt on creating a JSON grabber however it doesn't work. My guess is that xpath and the jsonname for Fields needs some tweaking but I don't know how to.

-File Removed-
 
Last edited:
I think this is a reasonable start?
Not sure how programs are going to work out if they start before midnight and end after, as webepg currently isn't able to parse unix-timestaps and I had to fallback to formatted start and end times...

Edit: wow, helpful people here. @vuego : you were close!
 

Attachments

  • www_kollatv_se.xml
    957 bytes
Last edited:
if you fill out the other channels and post it here I can make sure it's going to be in the upcoming release of MediaPortal
 
Hey, I can confirm that programs spaning over midnight does work and will get the correct start and end date and time using @doskabouter's grabber.

However dat=[YYYY]-[MM]-[DD] does not work. It will always return today's tv shows even if you use any other date. Browsing the web page I can see that they instead use:
day=0&week=1 to day=6&week=1 and
day=0&week=2 to day=6&week=2

which means that we could get 14 days of data if WebEPG supports days and weeks? :)
Should we try [DAY_OFFSET]? And how about "week offset"?
 
Here's an updated grabber modified from doskabouter's file. I've change "dat" to "day". Still need to figure out how to grab the next week. And added all channels however I haven't changed the display names so it will appear like the channelFriendlyUrl in WebEPG. I will have to try this out for a couple of days and perhaps change some channel names since Kolla.tv seems to use some old channel names still.

-File Removed-
 
Last edited:
Changed:
bbc-brit to bbc-nordic
vh1 to mtv-00s
vh1-classic to mtv-80s
paramount-plus-series to skyshowtime-1
paramount-plus-movies to skyshowtime-2
v-hockey to v-sport-vinter

I've currently set available days to 7. There's data for 14 days but then we need a way to grab the second week using URL week=2 instead of week=1. I'm not sure how to achieve that.

This grabber seems very good. It's much faster than Dagenstv and with the updated channel names even better than kolla.tv itself :)

-File Removed-
 
Last edited:
I've tested with the url and 12 days and it seems like it works.
 
@vuego thanks for the file, it works great.
I've added C MORE LIVE- channels in this file.
They are not sending all the time, but when they are, there are programs from kolla.tv
 

Attachments

  • www_kollatv_se.xml
    12.6 KB

Users who are viewing this thread

Back
Top Bottom