any way to download this?

Nick Ludlam nick at recoil.org
Thu Mar 24 12:57:03 EDT 2011


On 23 Mar 2011, at 17:11, dinkypumpkin wrote:
> 
> If you'd like to make quick hack to your copy of get_iplayer to get the A is for Atom video, the patch below shows what I had to do to make it work.  This NOT a general solution to handling resources of type Clip.  Since you have the PID that points to the clip itself, it will work more less like pointing get_iplayer to a normal programme episode.   However, clips (like episodes) may be in series, so additional RDF parsing would be necessary for a general treatment.  Consider this just a one-off solution to this particular problem.  At any rate, after making these changes, get_iplayer worked as normal with --pid p00fq0p3.  
> 
> The patch is below.  If it gets mangled in transmission, contact me off-list.  If it doesn't work for you, again, contact me off-list and I'll get video to you via another channel.
> 
> If any maintainers read this, I should point out that there seems to be a genuine bug in bounds checking of dates.  Only the year was being changed to reflect the limit of 32-bit unix time, but unix time runs on out 2038-01-19.  In this case, the expiry date in the metadata was 2041-03-17 23:59:00, which was changed to 2038-03-17 23:59:00, so the script bombed because the date was still invalid.  I can post in a separate patch if you prefer.


Dinky, is there a more long term fix you can think of for this? I'm sure this isn't the only time that dates will rear their heads, and it would be great to have a solution for the issue.


Nick





More information about the get_iplayer mailing list