diff --git a/lib/tvdb_api/tvdb_api.py b/lib/tvdb_api/tvdb_api.py index 08bea4da..d9f6f550 100644 --- a/lib/tvdb_api/tvdb_api.py +++ b/lib/tvdb_api/tvdb_api.py @@ -683,6 +683,8 @@ class Tvdb: BaseUI is used to select the first result. """ allSeries = self.search(series) + if not isinstance(allSeries, list): + allSeries = [allSeries] if len(allSeries) == 0: log().debug('Series result returned zero') diff --git a/lib/tvrage_api/tvrage_api.py b/lib/tvrage_api/tvrage_api.py index d62cbb89..1993aa0f 100644 --- a/lib/tvrage_api/tvrage_api.py +++ b/lib/tvrage_api/tvrage_api.py @@ -548,6 +548,8 @@ class TVRage: BaseUI is used to select the first result. """ allSeries = self.search(series) + if not isinstance(allSeries, list): + allSeries = [allSeries] if len(allSeries) == 0: log().debug('Series result returned zero')