Private GIT

Skip to content
Snippets Groups Projects
Commit ef3278d7 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Fix detection of already downloaded subtitles when using a custom subtitle dir

parent a49006a4
Branches
Tags
No related merge requests found
......@@ -89,6 +89,10 @@ def wantedLanguages(sqlLike = False):
def subtitlesLanguages(video_path):
"""Return a list detected subtitles for the given video file"""
resultList = []
if sickbeard.SUBTITLES_DIR and ek.ek(os.path.exists, sickbeard.SUBTITLES_DIR):
video_path = ek.ek(os.path.join, sickbeard.SUBTITLES_DIR, ek.ek(os.path.basename, video_path))
languages = subliminal.video.scan_subtitle_languages(video_path)
for language in languages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment