summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-12-31 11:14:09 -0500
committermorpheus65535 <[email protected]>2022-12-31 11:14:09 -0500
commite57a99d39eb6f6095568a11642f80b42c4512095 (patch)
tree31156843706afb0dbcd31c26da497c0664e3f285
parent5d36b80c0753cff951d3198a197cf709f43efca2 (diff)
downloadbazarr-e57a99d39eb6f6095568a11642f80b42c4512095.tar.gz
bazarr-e57a99d39eb6f6095568a11642f80b42c4512095.zip
Fixed yifysubtitles provider. #2029v1.1.4
-rw-r--r--libs/subliminal_patch/providers/yifysubtitles.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/subliminal_patch/providers/yifysubtitles.py b/libs/subliminal_patch/providers/yifysubtitles.py
index 5e5216b72..d8b0e88d3 100644
--- a/libs/subliminal_patch/providers/yifysubtitles.py
+++ b/libs/subliminal_patch/providers/yifysubtitles.py
@@ -29,7 +29,7 @@ class YifySubtitle(Subtitle):
super(YifySubtitle, self).__init__(language)
self.page_link = page_link
self.hearing_impaired = hi
- self.release_info = release
+ self.release_info = release.replace('\n', ', ')
self.uploader = uploader
self.rating = rating
@@ -116,8 +116,8 @@ class YifySubtitlesProvider(Provider):
td = row.findAll('td')
rating = int(td[0].text)
sub_lang = td[1].text
- release = re.sub(r'^subtitle ', '', td[2].text)
- page_link = server_url + td[2].find('a').get('href')
+ release = re.sub(r'^\nsubtitle ', '', td[2].text)
+ page_link = td[2].find('a').get('href')
hi = True if td[3].find('span', {'class': 'hi-subtitle'}) else False
uploader = td[4].text