[mythtv-users] TheTVdb lookups failing since v29 upgrade

Mike Holden mikeholden99+mythtv at gmail.com
Sat Dec 9 06:05:39 UTC 2017

Hi All,

system is Fedora on versions 25 and 26, the same issue is happening on
various frontends. BE is on Fedora 25.

[mike at hagrid]$ mythfrontend --version
Please attach all output as a file in bug reports.
MythTV Version : v29.0-v29.0-57-gd743ef49a8
MythTV Branch : fixes/29.0
Network Protocol : 91
Library API : 29.20170212-1
QT Version : 5.7.1
Options compiled in:
 linux debug use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bdjava using_bindings_perl
using_bindings_python using_bindings_php using_crystalhd using_dvb
using_firewire using_frontend using_hdhomerun using_vbox using_ceton
using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto
using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg
using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit
using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr
using_xv using_debugtype using_systemd_notify using_systemd_journal
using_bdjava using_bindings_perl using_bindings_python using_bindings_php
using_fontconfig using_freetype2 using_mythtranscode using_opengl
using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass
using_libxml2 using_libmp3lame

Since the upgrade to 29, lookups from thetvdb are failing.

Here's an extract from the frontend log at the lookup time:
2017-12-09 16:35:22.676245 I  Running Grabber:
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -a GB -D 221630 4 10
2017-12-09 16:35:23.224814 I  Running Grabber:
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -a GB -C 221630
2017-12-09 16:35:23.726700 I  Running Grabber:
/usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a GB -D 221630
2017-12-09 16:35:25.178679 I  Metadata Lookup Failed: No Results Scorpion 4
2017-12-09 16:35:25.194461 I  No results found for Scorpion 4 10

Running the lookup query from the commandline:

[mike at hagrid ~]$ /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a GB
-C 221630
Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2464, in
  File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2169, in main
  File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
693, in __init__
line 40, in remove_expired_responses
    self.cache.remove_old_entries(datetime.utcnow() -
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'int'

The relevant section of code at that location is:

    def remove_expired_responses(self):
        """ Removes expired responses from storage
        if not self._cache_expire_after:
        self.cache.remove_old_entries(datetime.utcnow() -

The issue seems to be the subtraction of time (seconds?) from "now", giving
a type mismatch.

Grabber version is:
[mike at hagrid ~]$ /usr/share/mythtv/metadata/Television/ttvdb.py --version
  <description>Search and metadata downloads for thetvdb.com</description>

Anyone else having this issue? Not seen it mentioned on here before.

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171209/e488677f/attachment.html>

More information about the mythtv-users mailing list