Customize WebEPG for India HELP! (1 Viewer)

Dadeo

Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    I found a new site that lists over 150 channels in India and seems very accurate. Before I go ahead and make grabber files for each channel separately, I thought it might be easier if I could use the one site.

    However, it has an interesting way of specifying the dates, so I don't know if it will work with WebEPG. The site is www.zipazap.com and it has both a multichannel grid or listings for individual sites.

    The intial day for the MUTLIGRID page opens with the URL
    'http://www.zipazap.com/dgx/wblx.dll?h=1&a=37' but subsequent days are
    'http://www.zipazap.com/dgx/wblx.dll?h=1&a=37&dt=47812530&chi=0'
    'http://www.zipazap.com/dgx/wblx.dll?h=1&a=37&dt=478276b0&chi=0'

    The Single Channel page opens withe the URL:
    'http://www.zipazap.com/dgx/wblx.dll?h=1&a=2&ch=22&dt=477fd3b0' subsequent days are
    'http://www.zipazap.com/dgx/wblx.dll?h=1&a=2&dt=47812530&Ch=22'
    'http://www.zipazap.com/dgx/wblx.dll?h=1&a=2&dt=478276b0&Ch=22'

    It looks easy to specify the channel, but can I use WebEPG for dates like this? If so, can anyone tell me how? Thanks for any help you can give me!
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    I've done some more analysis on the above site (www.zipazap.com). The date codes only appear in the url when you switch channels in the single channel view. However, you can access any of the pages by using the date code and channel id in the url (as above).

    In the date (dt=) I don't know what 47 is, but the 8 is a week reference. The guide has 14 days data. The first 8 days are referenced by 8 (478...) and then the next 6 days are referenced by 9 (479...). I think this is the same every time I access the site (it just counts from the current day).

    After that I am lost. I don't recognize the pattern of the rest of the dates. Here is a list of the current date codes. I can't make sense of the last five characters. Can anyone help?


    478462e0 Wednesday 9th January
    4785b460 Thursday 10th January
    478705e0 Friday 11th January
    47885760 Saturday 12th January
    4789a8e0 Sunday 13th January
    478afa60 Monday 14th January
    478c4be0 Tuesday 15th January
    478d9d60 Wednesday 16th January
    478eeee0 Thursday 17th January
    47904060 Friday 18th January
    479191e0 Saturday 19th January
    4792e360 Sunday 20th January
    479434e0 Monday 21st January
    47958660 Tuesday 22nd January
    4796d7e0 Wednesday 23rd January
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,645
    776
    Göteborg
    Home Country
    Sweden Sweden
    Looks like the amount of seconds since 1970-01-01 in hex.

    24 h = 1440 min = 86400 seconds = 15180 in hex

    If you start calc.exe, switch to hex mode, start at 478462e0 and add 15180 in every step you'll end up at the values you specified :)
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Enter Epoch Time in Hex?

    :D You are a genius! That's it perfectly! Even the first date is the hex for the number of seconds since 1970-01-01!

    Now, how can I enter that as a date in the URL? I tried [EPOCH_TIME] but of course it enters it in decimal. Is there any way to tell WebEPG to enter it in hex?
     

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Well I thought I would try [DAY_OFFSET] and it worked perfectly! Go figure! Good old trial and error, stab in the dark, needle in a haystack.... I could go on!

    It wouldn't have thought of it without your tip Vuego. Thanks again!
     

    Users who are viewing this thread

    Top Bottom