aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-11-16 09:07:25 -0500
committermorpheus65535 <[email protected]>2018-11-16 09:07:25 -0500
commit954a10f817ff06bdbc21c5cef9e845bd3a17906f (patch)
tree64c01a49b9b09efda0d9d3c3c517ee2102cdf7d1
parenta025ae40de38176236bdb271e4f11170d014d7c4 (diff)
downloadbazarr-954a10f817ff06bdbc21c5cef9e845bd3a17906f.tar.gz
bazarr-954a10f817ff06bdbc21c5cef9e845bd3a17906f.zip
Fix for #222 where manual download for movies is broken
-rw-r--r--bazarr/get_subtitle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py
index b996b90d7..2fc3aba61 100644
--- a/bazarr/get_subtitle.py
+++ b/bazarr/get_subtitle.py
@@ -235,7 +235,7 @@ def manual_search(path, language, hi, providers, providers_auth, sceneName, medi
if type(s) is LegendasTVSubtitle:
# The pickle doesn't work very well with RAR (rarfile.RarFile) or ZIP (zipfile.ZipFile)
s.archive.content = None
- subtitles_list.append(dict(score=round((compute_score(s, video, hearing_impaired=hi) / max_score * 100), 2), language=alpha2_from_alpha3(s.language.alpha3), hearing_impaired=str(s.hearing_impaired), provider=s.provider_name, subtitle=codecs.encode(pickle.dumps(s), "base64").decode(), url=s.page_link, matches=list(matched), dont_matches=list(not_matched)))
+ subtitles_list.append(dict(score=round((compute_score(s, video, hearing_impaired=hi) / max_score * 100), 2), language=alpha2_from_alpha3(s.language.alpha3), hearing_impaired=str(s.hearing_impaired), provider=s.provider_name, subtitle=codecs.encode(pickle.dumps(s), "base64").decode(), url=s.page_link, matches=list(matched), dont_matches=list(not_matched)))
subtitles_dict = {}
subtitles_dict = sorted(subtitles_list, key=lambda x: x['score'], reverse=True)
logging.debug('BAZARR ' + str(len(subtitles_dict)) + " subtitles have been found for this file: " + path)