You are here

create a xmltv from a webpage

6 posts / 0 new
Last post
dariofol
Offline
Donator
Joined: 5 years
Last seen: 10 months
create a xmltv from a webpage

I would ask you if should be possible using webgrab to create a xmltv file form this type of information on a website

channel number: start time title

NCAAF 4: 10PM Sacramento St @ Arizona St

NCAAF 5: 11AM Ohio @ Pitt

NCAAF 6: 12PM UC @ 5 Ohio St.

NCAAF 7:12PM Army @ 7 Michigan

if yes can you give me some sugest
thanks

in the meantime i read the documentation.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

without seeing the actual data the answer would be no.
the problem with data like this is there is few shows per channel per day.
when there is a start time only webgrab uses the start time of the next show for the stop time of the one before it.
so in your data there would be no next show and it would be skipped(not included in xml data) because webgrab does not know when it ends.

dariofol
Offline
Donator
Joined: 5 years
Last seen: 10 months

its not possible eventually create the xml with endtime=starttime +4h for example

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

could I do it? sure,could you as a beginner with webgrab...I highly doubt it.
the solution is not as simle as you suggest,what if there is another show in the schedule that's starts before the 4 hrs u want to use for a stop time.
this would cause webgarb to stop with a error.
one would have to check the next show in the schedule(start time) and if its further that 4 hrs away then use start time + 4 hrs for the current show.
this is only the start of the possible problems,consider this..

show 1 2pm today
show 2 6am tomorrow

me and you both know what this means but its not how webgrab will see it.
as I already mentioned webgrab does not like data with few shows per day,in this example it will process show 1 normally but when it looks as show 2 it will go....we have a problem here.it will do this..
the last show started at 2pm and the next one is at 6am.it wont consider this show as 6am tomorrow but 6am today and think it should be before the 2pm show and again..error message to log.

btw adding the 4 hr stop time would solve this.

dariofol
Offline
Donator
Joined: 5 years
Last seen: 10 months

actually i only have one event on one channel, so there would be no overlaps.
the need would be only to capture the channle name (that change every week) and turn it into an epg
with a generic end time.
also if i don know for the moment if i can catch the info from the webpage.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

your probably still wasting your time unless you post the site this data is from.
for most of the epg for these games I have seen show the network its aired on so why u want this special info is beyond me.

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