Support for horizontally arranged schedules? (1 Viewer)

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Is there any support for grabbing the schedule from horizontally arranged web sites? My cable service includes quite a few channels from the Orbit Showtime Network. They have changed the layout on their web site from vertical to horizontal. I cant grab the epg from this new layout anymore.

Thanks.
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
So I guess this is not directly supported in WebEPG ;) I guess I would have to write some code to grab the data and transform it into something that can be read by WebEPG.

Writing code in C#/ asp.net is not a problem. But how do you grab the html from the web site in question in the first place? If someone can point me out to how WebEPG is doing it in the sources, I would appreciate it.

Thanks.
 

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    The main problem with the site layout is not the horizontal arrangement but the fact that you get many channels in a single page. WebEpg expects each URL to return a single channel.
     

    Khurram

    Portal Pro
    May 12, 2008
    211
    5
    Home Country
    Pakistan Pakistan
    Yes, you are right about this. For the website in question, I can get a link in which I can isolate the data for the channel in question by using START and END html sequences. But the problem is that the program start+end times are not arranged with the program data. For example, if you look at the source for OSN Comedy, the start+end times are contained in LI tags and the program data is contained in separate LI tags. I dont think WebEPG can handle this either.

    That is why I was hoping to go the code route as mentioned in my 2nd post. Can you please help me out?

    Thanks.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    I am afraid there is no way to do this, not even using code (C# or whatever) because the mapping between times and programs is only visual, there is no structural relation.

    Your only hope is parsing the sublinks for each program but I don't remember if it is possible to get #START/#END from the sublink. You can certainly give it a try.
     

    Khurram

    Portal Pro
    May 12, 2008
    211
    5
    Home Country
    Pakistan Pakistan
    I think that it should be possible to do this. Perhaps I am not explaining myself correctly. So let me try one more time :)

    I make an asp.net project to publish a web site on my pc. The WebEPG grabber file uses a url that points to this web site. The web site code matches the url to the actual web site, screenscapes the actual web site, gets the epg data, transforms it into a format that is parsable by the WebEPG and returns the corresponding html to WebEPG.

    I was hoping to get the screenscaping part from the existing WebEPG code. The rest I can write myself hopefully ;)

    Btw, the OSN Network is just one of the sites that I would like to grab from and is probably more complicated than the rest (but I think it is still doable). Other sites as Ten Sports are more straightforward.
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    All I'm saying is that it is not possible to relate the time LIs to the program LIs because there is nothing structural to tie them together. They are just visually aligned by using proper css width. You could in theory keep track of the pixel position of each program LI but it can be quite challenging and you have to handle the fact that 1pixel probably maps to some non-integral amount of time (could be for example 1px = 2.333333.... minutes).
     

    Khurram

    Portal Pro
    May 12, 2008
    211
    5
    Home Country
    Pakistan Pakistan
    Yes, you are right. The OSN site seems very difficult with all those LIs specially for the program names. A casual look reveals that the "cells" are width 120 px or multiples of it and the starting time has to be adjusted using the "left" attribute. As I said, I think it is doable. Plus there are other websites which are not that challenging :)
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom