mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 01:07:36 +08:00
Improve score in Subdivx provider
This commit is contained in:
parent
412dfd4d21
commit
561f5495fb
1 changed files with 4 additions and 21 deletions
|
@ -38,30 +38,13 @@ class SubdivxSubtitle(Subtitle):
|
|||
|
||||
# episode
|
||||
if isinstance(video, Episode):
|
||||
|
||||
# title / series
|
||||
if video.series:
|
||||
matches.add('title')
|
||||
matches.add('series')
|
||||
|
||||
# season
|
||||
if video.season:
|
||||
matches.add('season')
|
||||
|
||||
# episode
|
||||
if video.episode:
|
||||
matches.add('episode')
|
||||
# already matched in search query
|
||||
matches.update(['title', 'series', 'season', 'episode', 'year'])
|
||||
|
||||
# movie
|
||||
elif isinstance(video, Movie):
|
||||
|
||||
# title
|
||||
if video.title:
|
||||
matches.add('title')
|
||||
|
||||
# year
|
||||
if video.year:
|
||||
matches.add('year')
|
||||
# already matched in search query
|
||||
matches.update(['title', 'year'])
|
||||
|
||||
# release_group
|
||||
if video.release_group and video.release_group.lower() in self.description:
|
||||
|
|
Loading…
Reference in a new issue