Private GIT

Skip to content
Snippets Groups Projects
Commit 4fe9f9e4 authored by Ruud's avatar Ruud
Browse files

Log subtitle search

parent 71b22345
Branches
Tags
No related merge requests found
...@@ -49,6 +49,7 @@ class Subtitle(Plugin): ...@@ -49,6 +49,7 @@ class Subtitle(Plugin):
available_languages = sum(group['subtitle_language'].itervalues(), []) available_languages = sum(group['subtitle_language'].itervalues(), [])
downloaded = [] downloaded = []
files = [toUnicode(x) for x in group['files']['movie']] files = [toUnicode(x) for x in group['files']['movie']]
log.debug('Searching for subtitles for: %s', files)
for lang in self.getLanguages(): for lang in self.getLanguages():
if lang not in available_languages: if lang not in available_languages:
...@@ -57,6 +58,7 @@ class Subtitle(Plugin): ...@@ -57,6 +58,7 @@ class Subtitle(Plugin):
downloaded.extend(download[subtitle]) downloaded.extend(download[subtitle])
for d_sub in downloaded: for d_sub in downloaded:
log.info('Found subtitle (%s): %s', (d_sub.language.alpha2, files))
group['files']['subtitle'].add(d_sub.path) group['files']['subtitle'].add(d_sub.path)
group['subtitle_language'][d_sub.path] = [d_sub.language.alpha2] group['subtitle_language'][d_sub.path] = [d_sub.language.alpha2]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment