[mythtv-users] ttvdb.py: Crash on Fedora, mythtv 29.0-4

Bill Meek keemllib at gmail.com
Sat Dec 9 15:48:44 UTC 2017


On 12/09/2017 05:50 AM, Alec Leamas wrote:
> Hi all,
> 
> 
> Trying to retrieve details for recorded shows, this fails. Digging into
> it I test the ttvdb.py script on the command line where it consistently
> crashes like (using a single word as a test...):
> 
> 
> $ /usr/share/mythtv/metadata/Television/ttvdb.py 2001
> Traceback (most recent call last):
>    File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2464, in
> <module>
>      sys.exit(main())
>    File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2169, in main
>      userkey=tvdb_account.account_identifier)
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 693, in __init__
>      self.session.remove_expired_responses()
>    File
> "/usr/lib/python2.7/site-packages/MythTV/ttvdb/requests_cache_compatability.py",
> line 40, in remove_expired_responses
>      self.cache.remove_old_entries(datetime.utcnow() -
> self._cache_expire_after)
> TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'int'
> 
> $ cat /etc/fedora-release
> Fedora release 25 (Twenty Five)
> $ rpm -q mythtv
> mythtv-29.0-4.fc25.x86_64
> 
> 
> Any hint out there?

Hi,

If you haven't, start here: https://www.mythtv.org/wiki/TheTVDB_API_v2

-- 
Bill


More information about the mythtv-users mailing list