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:
parent
4638b1de81
commit
d92e7755d3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue