Author Topic: How does the last_mod parameter work?  (Read 5739 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

clip
New Shows - something wrong?

Started by aeb001 on IceTV EPG Content

7 Replies
105 Views
Last post July 06, 2020, 11:16:35 PM
by aeb001
clip
This show recorded successfully on device Beyonwiz U4 ... NO it hasn't

Started by BazzaG on General Discussions

11 Replies
141 Views
Last post June 29, 2020, 04:33:11 PM
by IanL-S
xx
"Last EPG Fetches" on ICE website not showing all my PVR's

Started by Barista181 on Smart Recording website and General questions

2 Replies
174 Views
Last post June 26, 2020, 09:37:03 AM
by Barista181
xx
The Blob - movie not show

Started by Peter_H on IceTV EPG Content

1 Replies
83 Views
Last post June 10, 2020, 07:40:27 AM
by Peter_H