Browse Source

Fixing error where casting .lower on non string

pull/7207/head
Kris Nova 8 years ago
parent
commit
ad69757b37
  1. 1
      couchpotato/core/media/movie/providers/info/omdbapi.py

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

@ -88,6 +88,7 @@ class OMDBAPI(MovieProvider):
tmp_movie = movie.copy()
for key in tmp_movie:
if type(tmp_movie.get(key)) is string:
if tmp_movie.get(key).lower() == 'n/a':
del movie[key]

Loading…
Cancel
Save