Skip to content

Commit

Permalink
Fixed bug when stumble upon a unknown language
Browse files Browse the repository at this point in the history
  • Loading branch information
appelgran committed Jul 22, 2019
1 parent 6e7efa4 commit 8123b67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,10 @@ def getallsubs(url, allowed_languages, filename="", episode=""):
language_info = None
if languagefound in subscene_languages:
language_info = subscene_languages[languagefound]
log(__name__, "language_info: %s, allowed_languages: %s" % (language_info, allowed_languages))
else:
log(__name__, "languagefound: %s, is not available in subscene_languages list" % (languagefound))

log(__name__, "language_info: %s, language_info['3let']: %s, allowed_languages: %s" % (language_info, language_info['3let'], allowed_languages))
if language_info is not None and language_info['3let'] in allowed_languages:
link = main_url + matches.group('link')
subtitle_name = string.strip(matches.group('filename'))
Expand Down

0 comments on commit 8123b67

Please sign in to comment.