1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-03-03 10:06:24 +00:00

Fix for SubtitulamosTv in Python3.

This commit is contained in:
Louis Vézina 2019-11-07 19:37:56 -05:00
parent 4638b1de81
commit d92e7755d3

View file

@ -120,7 +120,7 @@ class SubtitulamosTVProvider(Provider):
if video.alternative_series is None:
if video.series.lower() == s['name'].lower():
matches.add('series')
elif s['name'].lower() in [video.series.lower()]+map(lambda name: name.lower(), video.alternative_series):
elif s['name'].lower() in [video.series.lower()]+list(map(lambda name: name.lower(), video.alternative_series)):
matches.add('series')
if video.season == e['season']:
matches.add('season')
@ -153,7 +153,7 @@ class SubtitulamosTVProvider(Provider):
r.raise_for_status()
r.encoding = "ISO-8859-1"
subtitle_content = r.text
subtitle_content = r.content
if subtitle_content:
subtitle.content = fix_line_ending(subtitle_content)