mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-22 07:42:32 +00:00
Fixed subdivx provider when there's a year in series directory name but not on the provider website. #1454
This commit is contained in:
parent
9b3e91eee2
commit
4a78f3b6b8
1 changed files with 5 additions and 3 deletions
|
@ -178,9 +178,11 @@ class SubdivxSubtitlesProvider(Provider):
|
|||
title_soup, body_soup = title_soups[subtitle], body_soups[subtitle]
|
||||
# title
|
||||
title = self._clean_title(title_soup.find("a").text)
|
||||
# filter by year
|
||||
if video.year and str(video.year) not in title:
|
||||
continue
|
||||
# discard subtitles if a year between parenthesis is present in title and doesn't match the one provided
|
||||
# in video object
|
||||
if re.match(r'(\(\d{4}\))', title):
|
||||
if video.year and str(video.year) not in title:
|
||||
continue
|
||||
|
||||
# Data
|
||||
datos = body_soup.find("div", {"id": "buscador_detalle_sub_datos"}).text
|
||||
|
|
Loading…
Reference in a new issue