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

Alec Leamas leamas.alec at gmail.com
Sat Dec 9 11:50:20 UTC 2017


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?


Cheers!

--alec


More information about the mythtv-users mailing list