Private GIT

Skip to content
Snippets Groups Projects
Commit 8426a061 authored by miigotu's avatar miigotu
Browse files

Merge pull request #2116 from SiCKRAGETV/fix-subtitle-dir

Fix detection of already downloaded subtitles when using a custom sub…
parents a49006a4 ef3278d7
No related branches found
No related tags found
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