[mythtv-users] Upgraded to 29, mythmetadata lookup failing...

Marlon Buchanan mlb.linux at gmail.com
Fri Sep 8 04:00:54 UTC 2017


On Thu, Sep 7, 2017 at 6:49 PM, Marlon Buchanan <mlb.linux at gmail.com> wrote:

>
>
> On Thu, Sep 7, 2017 at 6:26 PM, Marlon Buchanan <mlb.linux at gmail.com>
> wrote:
>
>> I just upgraded from .27 to 29 (on Ubuntu 14.04) and most everything is
>> now working. I have 2 problems. One is with the new images feature and
>> loading pictures into the DB from the storage group doesn't seem to
>> complete, but I'll save that problem for another day. The bigger problem is
>> the TV metadata lookups are failing. In the methadatalookup.log I get:
>>
>>  I CoreContext metadatadownload.cpp:342 (TelevisionGrabberWorks)
>> Television grabber not functional.  Aborting this run.
>>
>>
>> Mythbackend gives me failed with exit status 128
>>
>> When I try to run ttvdb.py commandline I get responses like:
>> marlon:~$ /usr/share/mythtv/metadata/Television/ttvdb.py -B Sanctuary
>>
>> Traceback (most recent call last):
>>   File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2357, in
>> <module>
>>     sys.exit(main())
>>   File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2164, in
>> main
>>     seriesfound=searchseries(t, opts, series_season_ep)
>>   File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 1217, in
>> searchseries
>>     series_data = search_for_series(t, series_name, opts.language)
>>   File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 1203, in
>> search_for_series
>>     return tvdb[sid_or_name]
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 1160, in __getitem__
>>     sid = self._nameToSid(key)
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 1141, in _nameToSid
>>     selected_series = self._getSeries(name)
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 921, in _getSeries
>>     allSeries = self.search(series)
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 901, in search
>>     seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 861, in _getetsrc
>>     src = self._loadUrl(url, language=language)
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 808, in _loadUrl
>>     self.authorize()
>>   File "/usr/lib/python2.7/dist-packages/MythTV/ttvdb/tvdb_api.py", line
>> 848, in authorize
>>     r = self.session.post('https://api.thetvdb.com/login',
>> json=self.config['auth_payload'], headers=self.headers)
>>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line
>> 497, in post
>>     return self.request('POST', url, data=data, **kwargs)
>>   File "/usr/lib/python2.7/dist-packages/requests_cache/core.py", line
>> 128, in request
>>     **kwargs
>>
>> Any ideas on how to fix ttvdb.py? tmdb3.py seems to work fine...
>>
>
>
> I apologize, I cut off one line from running ttvdb.py commandline at the
> end in my cut and paste:
>
> TypeError: request() got an unexpected keyword argument 'json'
>
>
>

>
Okay, some progress. I used pip to install future, requests and
request_cache and now running ttvdb.py commandline works:

$ /usr/share/mythtv/metadata/Television/ttvdb.py -B Sanctuary
Banner:
http://thetvdb.com/banners/graphical/80159-g4.jpg,http://thetvdb.com/banners/graphical/80159-g5.jpg,http://thetvdb.com/banners/graphical/80159-g3.jpg,http://thetvdb.com/banners/graphical/80159-g6.jpg,http://thetvdb.com/banners/graphical/80159-g2.jpg,http://thetvdb.com/banners/graphical/80159-g.jpg,http://thetvdb.com/banners/graphical/80159-g8.jpg

But I still get the error 128 when myth does a metadata lookup for TV
shows. Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170907/5da7f040/attachment.html>


More information about the mythtv-users mailing list