From 59e547fac38827c2132855d0ce69b1e01b14a1b5 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sun, 29 Mar 2015 15:24:47 +0100 Subject: [PATCH] Fix loading shows from the DB that have NULL IMDb id. --- CHANGES.md | 1 + sickbeard/tv.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 891a7aba..e70d72f3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -119,6 +119,7 @@ * Fix display IMDb indexer with correct IMDb id on the displayShow page only when IMDb data exists * Fix correctly display show runtime when available on the displayShow page * Fix correctly initialise IMDb id loaded from db +* Fix loading shows from the DB that have NULL IMDb id ### 0.7.2 (2015-03-10 17:05:00 UTC) diff --git a/sickbeard/tv.py b/sickbeard/tv.py index 5f338682..8f242c73 100644 --- a/sickbeard/tv.py +++ b/sickbeard/tv.py @@ -829,7 +829,7 @@ class TVShow(object): self.rls_require_words = sqlResults[0]['rls_require_words'] if not self.imdbid: - imdbid = sqlResults[0]['imdb_id'] + imdbid = sqlResults[0]['imdb_id'] or '' self.imdbid = ('', imdbid)[2 < len(imdbid)] if self.is_anime: