Browse Source

Don't assume imdb key. fixes #1819

pull/1607/merge
Ruud 12 years ago
parent
commit
15ab745bd0
  1. 4
      couchpotato/core/plugins/scanner/main.py

4
couchpotato/core/plugins/scanner/main.py

@ -582,7 +582,7 @@ class Scanner(Plugin):
movie = fireEvent('movie.by_hash', file = cur_file, merge = True)
if len(movie) > 0:
imdb_id = movie[0]['imdb']
imdb_id = movie[0].get('imdb')
if imdb_id:
log.debug('Found movie via OpenSubtitleHash: %s', cur_file)
break
@ -600,7 +600,7 @@ class Scanner(Plugin):
movie = fireEvent('movie.search', q = '%(name)s %(year)s' % name_year, merge = True, limit = 1)
if len(movie) > 0:
imdb_id = movie[0]['imdb']
imdb_id = movie[0].get('imdb')
log.debug('Found movie via search: %s', cur_file)
if imdb_id: break
else:

Loading…
Cancel
Save