From e57a99d39eb6f6095568a11642f80b42c4512095 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sat, 31 Dec 2022 11:14:09 -0500 Subject: [PATCH] Fixed yifysubtitles provider. #2029 --- libs/subliminal_patch/providers/yifysubtitles.py | 6 +++--- 1 file 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