Browse Source

Fix potential issue parsing IMDb response.

Normalize IMDb library response to '' instead of type None.
tags/release_0.18.8^2
Prinz23 6 years ago
committed by JackDandy
parent
commit
af7cefb397
  1. 2
      sickbeard/tv.py

2
sickbeard/tv.py

@ -1000,7 +1000,7 @@ class TVShow(object):
sqlResults = myDB.select('SELECT * FROM imdb_info WHERE indexer_id = ?', [self.indexerid])
if 0 < len(sqlResults):
self.imdb_info = dict(zip(sqlResults[0].keys(), sqlResults[0]))
self.imdb_info = dict(zip(sqlResults[0].keys(), [(r, '')[None is r] for r in sqlResults[0]]))
elif sickbeard.USE_IMDB_INFO:
logger.log('%s: The next show update will attempt to find IMDb info for [%s]' %
(self.indexerid, self.name), logger.DEBUG)

Loading…
Cancel
Save