Fix loading shows from the DB that have NULL IMDb id.

This commit is contained in:
JackDandy 2015-03-29 15:24:47 +01:00
parent eaa2560a99
commit 59e547fac3
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -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: