mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix TVDb search issue when only 1 result is returned.
This commit is contained in:
parent
3ffefb9f0f
commit
44241a61a2
2 changed files with 3 additions and 0 deletions
|
@ -221,6 +221,7 @@
|
||||||
* Fix "error trying to retrieve image" from tvdb due to there is no image to fetch
|
* Fix "error trying to retrieve image" from tvdb due to there is no image to fetch
|
||||||
* Fix PiSexy for vip user class
|
* Fix PiSexy for vip user class
|
||||||
* Change retry sleep timeout for Trakt searches to prevent issues when Trakt is down
|
* Change retry sleep timeout for Trakt searches to prevent issues when Trakt is down
|
||||||
|
* Fix TVDb search issue when only 1 result is returned
|
||||||
|
|
||||||
|
|
||||||
### 0.11.16 (2016-10-16 17:30:00 UTC)
|
### 0.11.16 (2016-10-16 17:30:00 UTC)
|
||||||
|
|
|
@ -649,6 +649,8 @@ class Tvdb:
|
||||||
try:
|
try:
|
||||||
series_found = self._getetsrc(self.config['url_get_series'], self.config['params_get_series'])
|
series_found = self._getetsrc(self.config['url_get_series'], self.config['params_get_series'])
|
||||||
if series_found:
|
if series_found:
|
||||||
|
if not isinstance(series_found['Series'], list):
|
||||||
|
series_found['Series'] = [series_found['Series']]
|
||||||
series_found['Series'] = [{k.lower(): v for k, v in s.iteritems()} for s in series_found['Series']]
|
series_found['Series'] = [{k.lower(): v for k, v in s.iteritems()} for s in series_found['Series']]
|
||||||
return series_found.values()[0]
|
return series_found.values()[0]
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue