Private GIT

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

Fix adding non-english shows with no english equivalent

parent 10dc6c8f
Branches
Tags
No related merge requests found
...@@ -199,7 +199,11 @@ class QueueItemAdd(ShowQueueItem): ...@@ -199,7 +199,11 @@ class QueueItemAdd(ShowQueueItem):
try: try:
# make sure the tvdb ids are valid # make sure the tvdb ids are valid
try: try:
t = tvdb_api.Tvdb(search_all_languages=True, **sickbeard.TVDB_API_PARMS) ltvdb_api_parms = sickbeard.TVDB_API_PARMS.copy()
if self.lang:
ltvdb_api_parms['language'] = self.lang
t = tvdb_api.Tvdb(**ltvdb_api_parms)
s = t[self.tvdb_id] s = t[self.tvdb_id]
if not s or not s['seriesname']: if not s or not s['seriesname']:
ui.flash.error("Unable to add show", "Show in "+str(self.showDir)+" has no name on TVDB, probably the wrong language. Delete .nfo and add manually in the correct language.") ui.flash.error("Unable to add show", "Show in "+str(self.showDir)+" has no name on TVDB, probably the wrong language. Delete .nfo and add manually in the correct language.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment