You are here

Custom EPG

15 posts / 0 new
Last post
xray
Offline
Joined: 1 year
Last seen: 1 year
Custom EPG

Hi guys,

I have Xream-codes on a linux server with an epg service so I never needed to create my own EPG or grabber. Currently, I have open source Youtube streams and I wanted them to have some sort of EPG because it looks better.

I made a main.xml file and installed in the xc server as a guide service and it works perfect but I have to update the dates manually daily. Since there is no site or ini, how could I utilize webgrab to update it daily or is there a simpler way like a command line that will update those dates within the xml file since the program information will remain static.

So basically, I want these youtube stream channels to display a simple message every hour, day after day.

The simple XML file is attached.

Attachments: 
Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 1 month

look in your siteini.pack/misc folder at the fixed.ini
there is also a fixed_info.txt file that tells you how to use it.

TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week

An extention to this question: If every day we have new program how can we make xmltv for our channel without manually editing all dates ? Is there easy way to convert txt with list of shows and starttime to xmltv via webgrab or another software?

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 1 month

if the data changes and u can access via a http address then a ini can be created.
it would be the same as creating a ini just like any other site or...
say you downloaded the data daily into a txt file or whatever,webgrab can also read that(it don't have to be a web address).

TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week

Data is changing, we are making the file , it is our own channel. I am providing example, can you advise how should i proceed?
https://pastebin.com/xGqgJPJf

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 1 month

easy to create a ini for.
its better data than I was expecting(has start and stop time).
which is good.how do u want to load it(url) or via a file?
give me a example and a copy of the source data(or is it same as pastebin?).

TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week

This is exactly the data. Local file is desired but not required :) Data is absolutely custom , made from US. Please if you can add a description too, now it is all in the title, because of our old way of epg making.
``[29/04/2020 11:00:00 00:40:00] Balkan folk - description text``
I am not sure how to divide title and description , i can use ';' for title;description when we make the txt. eg:
``[29/04/2020 11:00:00 00:40:00] Balkan folk; decription text ``

TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week
Blackbear199 wrote:

easy to create a ini for.
its better data than I was expecting(has start and stop time).
which is good.how do u want to load it(url) or via a file?
give me a example and a copy of the source data(or is it same as pastebin?).

Hello, sorry for disturbing you, I hope that you did not forgot about me :)

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 1 month

try this,ensure every line has in your epg file has a carriage return at the end(including the last line).

edit the ini and change the subpage.format line and edit the path to that of the location of ur file,i named it custom.txt but you can use whatever you want.
also also set the timezone to Europe/Moscow,i dont know if this is correct as all i know is its Russian epg so you may have to also change this to that of the timezone the data is in.
to add a description simple add ##[description] after the title.
example
[29/04/2020 00:00:00 07:00:00] Край на програмата##description
to read the file in your webgrab congig xml add a channel line with the following..
site="custom" site_id="" use whatever you want for the mltv_id="xxx" and display name

Attachments: 
TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week

I am struggling whole day, but i still can't make it.
I am not sure, but i think there is some problem with this row:
```index_showsplit.scrub {multi(separator="\n")||||}
```
I have this in error log
```[ Debug ] Element value:
[ Debug ] [07/05/2020 00:00:00 07:00:00] Show 01 ## Description 01|[07/05/2020 07:00:00 00:40:00] Show 02 ## Description 02|
[ Debug ] Multi value element!
[ Debug ] Elements listed on separate lines for easy inspection:
```

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 1 month

its not a error,just debug info
disable the index_showsplit.modify {(debug)} line.(add * to beginning)

other than that ur data format looks fine to me,did u check ur guide.xml?
it should have data from what i see.

edit:
i see whats wrong,look at the date 07/5/2020.
that's 3 days from now so unless u set timespan > 3 u wont see any data.

Group (0) :
update requested for - 1 - out of - 1 - channels for 4 day(s)
( 1/1 ) CUSTOM -- chan. (xmltv_id=Custom 1) -- mode Force
inn
0.03 sec/update

Attachments: 
TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week

Ok, i am officially an idiot :) I totally forgot, that i use blank unconfigured webgrab config, and i also was mislead by the 7.1 maxdays in the ini...
Thank you i will keep digging :)
Edit: Ok, i managed to do what i needed, there was some problems with duration(you used index_stop, but in given example it was duration as secondary time).

Blackbear199
Offline
WG++ Team memberDonator
Joined: 5 years
Last seen: 1 month

change the index_stop.scrub line to
index_duration.scrub {regex||^\[\d+\/\d+\/\d+\s\d+:\d+:\d+\s(\d+:\d+)||}
and i would change your data format to just hh:mm for the duration or webgrab will have issues.
example
[07/05/2020 00:00:00 07:00:00] Show 01 ## Description 01
[07/05/2020 07:00:00 00:40:00] Show 02 ## Description 02
to
[07/05/2020 00:00:00 07:00] Show 01 ## Description 01
[07/05/2020 07:00:00 00:40] Show 02 ## Description 02

that's if i understand correctly..
07:00:00 is 7 hours
00:40:00 is 40 minutes
if u leave it as it is webgrab will think the duration is..
07:00:00 is 7 days
00:40:00 is 40 hours

TUISTERa
Offline
Donator
Joined: 6 years
Last seen: 1 week

Thank you, i did that in the moment of my comment.Everything is OK ! You are great

jdevcl
Offline
Donator
Joined: 5 months
Last seen: 5 months

thanks

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