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

Peter Bennett pb.mythtv at gmail.com
Sat Dec 9 15:04:57 UTC 2017



On 12/09/2017 09:20 AM, Alec Leamas wrote:
>
> On 09/12/17 15:02, Roger Siddons wrote:
>> On Sat, 9 Dec 2017 12:50:20 +0100
>> Alec Leamas <leamas.alec at gmail.com> wrote:
>>
>>> Any hint out there?
>>>
>>>
>> Maybe you could test the fix:
>> https://code.mythtv.org/trac/ticket/13188
>>
> Thanks! That seems to fix that one, but here is the next (using one of
> the usage examples listed by -u)
>
>
>   /usr/share/mythtv/metadata/Television/ttvdb.py  -B "Sanctuary"
> 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 2271, in main
>      seriesfound=searchseries(t, opts, series_season_ep)
>    File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 1324, in
> searchseries
>      series_data = search_for_series(t, series_name, opts.language)
>    File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 1310, in
> search_for_series
>      return tvdb[sid_or_name]
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 1163, in __getitem__
>      sid = self._nameToSid(key)
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 1144, in _nameToSid
>      selected_series = self._getSeries(name)
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 921, in _getSeries
>      allSeries = self.search(series)
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 901, in search
>      seriesEt = self._getetsrc(self.config['url_getSeries'] % (series))
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 861, in _getetsrc
>      src = self._loadUrl(url, language=language)
>    File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 808, in _loadUrl
>      self.authorize()
>    File "/usr/lib/python2.7/site-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/site-packages/requests/sessions.py", line
> 518, in post
>      return self.request('POST', url, data=data, json=json, **kwargs)
> TypeError: request() got an unexpected keyword argument 'json'
>
>
>
> Is there perhaps a fix also for this? Will update the github pull request.
>
> Cheers!
>
> --alec
>

Did you check that you have the correct versions of python modules? See 
the Troubleshooting section of the article below.

https://www.mythtv.org/wiki/TheTVDB_API_v2




More information about the mythtv-users mailing list