Fix for new show searches

This commit is contained in:
echel0n 2014-05-29 07:00:41 -07:00
parent e1ee01579d
commit 00f38a7157
2 changed files with 4 additions and 0 deletions

View file

@ -683,6 +683,8 @@ class Tvdb:
BaseUI is used to select the first result. BaseUI is used to select the first result.
""" """
allSeries = self.search(series) allSeries = self.search(series)
if not isinstance(allSeries, list):
allSeries = [allSeries]
if len(allSeries) == 0: if len(allSeries) == 0:
log().debug('Series result returned zero') log().debug('Series result returned zero')

View file

@ -548,6 +548,8 @@ class TVRage:
BaseUI is used to select the first result. BaseUI is used to select the first result.
""" """
allSeries = self.search(series) allSeries = self.search(series)
if not isinstance(allSeries, list):
allSeries = [allSeries]
if len(allSeries) == 0: if len(allSeries) == 0:
log().debug('Series result returned zero') log().debug('Series result returned zero')