[mythtv-users] jamu does not understand my TV series

Mitko Haralanov voidtrance at comcast.net
Tue Nov 17 23:15:51 UTC 2009


On Mon, 16 Nov 2009 13:19:36 -0800
Mitko Haralanov <voidtrance at comcast.net> wrote:

> Well, the website is still down so I haven't been able to test my
> changes put I wanted to post the patch so people could start reviewing
> it.

Well, the TVDB website is back up and I am trying to use jamu.py to get
the metadata for my shows.

I am using a modified version of jamu which looks at the full pathname
of the files and gets info that way (and judging from the logs it is
working) but I get a jamu crash.

Below is the full log for the crash:

[mythtv at mythtv scripts]$ ./jamu.py -l en -bMIVN
opts {'flags_options': False, 'mythtv_guess': False, 'examples': False, 'download': False, 'user_config': '', 'overwrite': False, 'toprated': False, 'version': False, 'usage': False, 'mythtv_watched': False, 'update': False, 'mythtvdir': False, 'mythtvjanitor': False, 'language': 'en', 'mythtv_inetref': True, 'selected_data': None, 'maximum': None, 'simulation': False, 'nokeys': False, 'ret_filename': False, 'debug': True, 'mythtv_verbose': True, 'mythtvmeta': True, 'mythtvNFS': True, 'interactive': False}

args []
2009-11-17 15:15:32,680) DEBUG Checking for a valid video filename extension
2009-11-17 15:15:32,681) DEBUG matched reg:^.+?/(?P<seriesname>[^/]+)/Season\ (?P<seasno>[0-9]+)/(?P<epno>[0-9]+).+$
Mythtv video database maintenance start: 2009-11-17 15:15

Now processing video file (01 Pilot)(1)(1)


Entry exists in MythDB but category is 0 and year is 1895 (default values).
Updating (01 Pilot).
2009-11-17 15:15:32,712) DEBUG Checking for series(The Sopranos), sid(None), season(1), episode(1), episode name(None)
2009-11-17 15:15:32,713) DEBUG Getting show the sopranos
2009-11-17 15:15:32,714) DEBUG Searching for show the%20sopranos
2009-11-17 15:15:32,714) DEBUG Retrieving URL http://www.thetvdb.com/api/GetSeries.php?seriesname=the%20sopranos&language=en
2009-11-17 15:15:32,730) DEBUG URL http://www.thetvdb.com/api/GetSeries.php?seriesname=the%20sopranos&language=en was cached in /tmp/tvdb_api_500/76641defeb03d915dcd89e6d36faa744.body
2009-11-17 15:15:32,731) DEBUG Found series The Sopranos (id: 75299)
2009-11-17 15:15:32,731) DEBUG Using custom UI <class __main__.jamu_ConsoleUI at 0x184c2f0>
2009-11-17 15:15:32,732) DEBUG Got The Sopranos, sid 75299
2009-11-17 15:15:32,732) DEBUG Getting all series data for 75299
2009-11-17 15:15:32,732) DEBUG Retrieving URL http://www.thetvdb.com/api/0BB856A59C51D607/series/75299/en.xml

! Warning: Error contacting www.thetvdb.com:
Could not connect to server: HTTP Error 404: Not Found
tvdb Series not found(01 Pilot) meta data dictionary cannot be returned
2009-11-17 15:15:34,249) DEBUG Checking for series(The Sopranos), sid(None), season(1), episode(1), episode name(None)
2009-11-17 15:15:34,249) DEBUG Correcting the sopranos to 75299
2009-11-17 15:15:34,249) DEBUG Got series id 75299
Traceback (most recent call last):
  File "./jamu.py", line 6165, in <module>
    main()
  File "./jamu.py", line 6150, in main
    process.processMythTvMetaData()
  File "./jamu.py", line 5383, in processMythTvMetaData
    tmp_subtitle = self._getSubtitle(cfile)
  File "./jamu.py", line 3009, in _getSubtitle
    self.verifySeriesExists()
  File "./jamu.py", line 1948, in verifySeriesExists
    seriesfound=self._searchforSeries(series_name)[int(season)][int(episode)]
  File "./jamu.py", line 1892, in _searchforSeries
    show = self.config['tvdb_api'][sid_or_name]
  File "/usr/share/mythtv/mythvideo/scripts/ttvdb/tvdb_api.py", line 717, in __getitem__
    return self.shows[sid]
KeyError: '75299'


I know that there was an error getting the information from TVDB and it
seems like the data for that particular SID is missing. Does anyone
know what is going on there?

Is anybody else getting similar errors from missing TV series?

-- 


More information about the mythtv-users mailing list