Private GIT

Skip to content
Snippets Groups Projects
Commit d5a06d49 authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Fix adding show from existing nfos

parent 3172f464
Branches
Tags
No related merge requests found
...@@ -63,7 +63,7 @@ def getTVDBIDFromNFO(dir): ...@@ -63,7 +63,7 @@ def getTVDBIDFromNFO(dir):
try: try:
t = tvdb_api.Tvdb(search_all_languages=True, **sickbeard.TVDB_API_PARMS) t = tvdb_api.Tvdb(search_all_languages=True, **sickbeard.TVDB_API_PARMS)
s = t[int(tvdb_id)] s = t[int(tvdb_id)]
if not s or 'name' not in s or not s['name']: if not s or not s['seriesname']:
raise exceptions.NoNFOException("Show has no name on TVDB, probably the wrong language") raise exceptions.NoNFOException("Show has no name on TVDB, probably the wrong language")
except tvdb_exceptions.tvdb_exception, e: except tvdb_exceptions.tvdb_exception, e:
raise exceptions.NoNFOException("Unable to look up the show on TVDB, not using the NFO") raise exceptions.NoNFOException("Unable to look up the show on TVDB, not using the NFO")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment