Author Topic: How does the last_mod parameter work?  (Read 5525 times)

Offline seanbarnett

  • Newbie
  • *
  • Posts: 2
    • View Profile
How does the last_mod parameter work?
« on: February 09, 2009, 02:58:43 PM »
Hello,

I have done two successive HTTP get operations:

The last_mod parameter value in the second URL is cut-and-paste from the date attribute of the tv element returned by the first URL:

Code: [Select]
<tv date="20090209033020" source-info-url="http://www.icetv.com.au" source-info-
name="IceTV Pty. Ltd." generator-info-name="IceTV Pty. Ltd." generator-info-url=
"http://www.icetv.com.au">

I was expecting the second URL to return no programme elements, but both URLs return exactly the same size response ... around 1 megabyte.

Am I missing something?

Thanks

Offline Russell at IceTV

  • Guru
  • *****
  • Posts: 444
    • View Profile
Re: How does the last_mod parameter work?
« Reply #1 on: February 09, 2009, 03:35:06 PM »
Hi Sean,

It appears that the URL argument was changed at some point from "last_mod" to "mod_time".  I'll have to look into it to find out more, but the quick answer is to use "mod_time" and it should behave as expected.

Thanks for reporting it,
Russell

Offline seanbarnett

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How does the last_mod parameter work?
« Reply #2 on: February 11, 2009, 10:55:12 AM »
Russell,

thanks for the quick response, and of course it worked just fine.

One further question though. When I run two GET operations by hand one after the other, and the second one having a mod_time parameter cut-and-paste from the UTC value in the first response (tv element's date attribute) I get about 70 odd programme entries ... I was expecting no entries.

However, if I advance the value of the parameter 11 hours (to local time) I do get no entries returned.

I am guessing that:
  • mod_time works on local server time (Melbourne???); or
  • mod_time works on my local time (seems unlikely); or
  • mod_time works on UTC, but there is some more complex business logic at play in deciding what gets returned.
Any advice or thoughts appreciated, and again thanks for the quick response to the previous post.

Offline Russell at IceTV

  • Guru
  • *****
  • Posts: 444
    • View Profile
Re: How does the last_mod parameter work?
« Reply #3 on: February 25, 2009, 11:04:37 AM »
Hi Sean, sorry for the delay.

There was a problem with the timezones -- it was using the server time but it should have been using your timezone.  It should be fixed now so give it another shot and let me know if you have any more problems with it.  I've also modified it to allow either "mod_time" or "last_mod".

Russell


Share via facebook Share via twitter

xx
Is the Ellen show repeat?

Started by csutak40 on IceTV EPG Content

1 Replies
129 Views
Last post July 03, 2019, 09:00:18 PM
by Tiphanee
xx
Graham Norton Show Friday 28th June

Started by simoncasey on IceTV EPG Content

0 Replies
124 Views
Last post June 29, 2019, 12:05:53 PM
by simoncasey
xx
SBS Network shows for Sunday & later

Started by BazzaG on IceTV EPG Content

5 Replies
201 Views
Last post June 12, 2019, 03:42:27 PM
by BazzaG
xx
AFN Fishing Show - repeat

Started by aeb001 on IceTV EPG Content

4 Replies
213 Views
Last post May 14, 2019, 11:50:08 PM
by Tiphanee