@Dezzorex wrote:
I keep getting the following error when doing tbdb lookups. Running the newest version of flexget 1.2.500
This is what I get from the errorlogs:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/utils/lazy_dict.py", line 36, in getitem
func(self.store)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/metainfo/thetvdb_lookup.py", line 115, in lazy_series_poster_lookup
return self.series_lookup(entry, self.series_poster_map)
File "/usr/local/lib/python2.7/dist-packages/flexget/utils/database.py", line 30, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/metainfo/thetvdb_lookup.py", line 102, in series_lookup
tvdb_id=entry.get('tvdb_id', eval_lazy=False), session=session)
File "/usr/local/lib/python2.7/dist-packages/flexget/utils/database.py", line 27, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_tvdb.py", line 422, in lookup_series
series.update()
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_tvdb.py", line 154, in update
series = TVDBRequest().get('series/%s' % self.id)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_tvdb.py", line 74, in get
result = self._request('get', endpoint, **params)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_tvdb.py", line 57, in _request
headers = {'Authorization': 'Bearer %s' % self.get_auth_token()}
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/api_tvdb.py", line 51, in get_auth_token
tokens[self.auth_key] = requests.post(TVDBRequest.BASE_URL + 'login', json=data).json().get('token')
File "/usr/local/lib/python2.7/dist-packages/flexget/utils/requests.py", line 277, in post
return request('post', url, data=data, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flexget/utils/requests.py", line 247, in request
return s.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flexget/utils/requests.py", line 232, in request
result = requests.Session.request(self, method, url, *args, **kwargs)
TypeError: request() got an unexpected keyword argument 'json'
Posts: 3
Participants: 2