[mythtv-users] find_orphans.py broken on 32 bit x86?
Will Dormann
wdormann at gmail.com
Wed Oct 31 19:30:58 UTC 2018
On 10/31/18 2:56 PM, Tom Dexter wrote:
> obj = super(datetime, cls).fromtimestamp(float(timestamp), tz)
> ValueError: timestamp out of range for platform time_t
>
> I'm pretty sure that the limit for that time_t may be 2147483647 on
> x86 and 67768036191676795 on 64 bit systems(?). Has anyone here ever
> used that option on a 32 bit system?
I don't suspect that this is a 32-bit vs. 64-bit thing. A 32-bit
system can handle any timestamp that may be associated with a recording.
It's possible that you have a recording with an invalid timestamp.
I'd replace line 129:
rec.delete(True, True)
With:
try:
rec.delete(True, True)
except ValueError:
print('Error deleting %s' % rec)
And perhaps report back here if there's a single (or few) problematic
recording, of if it's for all of them.
-WD
More information about the mythtv-users
mailing list