Browse Source

Convert movie attribute to string before checking it equals 'n/a'

This is failing when the attribute is a list. Error messages of 'list does not have lower() attribute.
pull/7205/head
saghassy 8 years ago
committed by GitHub
parent
commit
3cd6693701
  1. 2
      couchpotato/core/media/movie/providers/info/omdbapi.py

2
couchpotato/core/media/movie/providers/info/omdbapi.py

@ -88,7 +88,7 @@ class OMDBAPI(MovieProvider):
tmp_movie = movie.copy()
for key in tmp_movie:
if tmp_movie.get(key).lower() == 'n/a':
if repr(tmp_movie.get(key)).lower() == 'n/a':
del movie[key]
year = tryInt(movie.get('Year', ''))

Loading…
Cancel
Save