Closed (won't fix)
Project:
Views RSS: iTunes Elements
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2012 at 02:15 UTC
Updated:
19 Apr 2012 at 04:36 UTC
Hi,
I discovered a podcast no validating due to it's duration.
The duration of the cast was 39:59 (MM:SS), but the output becomes 39:60 .
This rounds up the result to 59.6 and causes it to display incorrectly.
I'm going to try and use the hooks to correct it but thought to explain the issue.
Best,
Ben.
Comments
Comment #1
Bensbury commentedTurns out the issue is in the getID3() library.
On line 444 of getid3/lib.php the play time logic rounds the seconds, making it possible to return 60 as seconds.
This doesn't validate.
We've changed the function and floored the value to prevent the problem and leaving it here in case other people come across it for iTune feeds.
We've also told the people at getID3() in case there is a reason for rounding instead of floor.
Comment #1.0
Bensbury commentedMistake with code example - wrong module but problem is same