diff --git a/libs/subliminal_patch/providers/subtitulamostv.py b/libs/subliminal_patch/providers/subtitulamostv.py index 065e4563d..789ecd51e 100644 --- a/libs/subliminal_patch/providers/subtitulamostv.py +++ b/libs/subliminal_patch/providers/subtitulamostv.py @@ -28,18 +28,19 @@ class SubtitulamosTVSubtitle(Subtitle): def __init__(self, language, page_link, download_link, description, title, matches, release_info): super(SubtitulamosTVSubtitle, self).__init__(language, hearing_impaired=False, - page_link=page_link, release_info=release_info, encoding="windows-1252") + page_link=page_link, encoding="windows-1252") self.download_link = download_link self.description = description.lower() self.title = title - self.matches = matches + self.release_info = release_info + self.found_matches = matches @property def id(self): return self.download_link def get_matches(self, video): - matches = self.matches + matches = self.found_matches # release_group if video.release_group and video.release_group.lower() in self.description: @@ -92,7 +93,6 @@ class SubtitulamosTVProvider(Provider): def query(self, languages, video): # query the server result = None - matches = set() year = (" (%d)" % video.year) if video.year else "" q = "%s%s %dx%02d" % (video.series, year, video.season, video.episode) logger.debug('Searching subtitles "%s"', q) @@ -117,7 +117,7 @@ class SubtitulamosTVProvider(Provider): logger.debug('Found subtitles in "%s" language.', language) for subt_m in re.finditer(r"