mirror of https://github.com/morpheus65535/bazarr
Merge pull request #450 from ngosang/feature/subdivx2
Improve score in Subdivx provider
This commit is contained in:
commit
4c864ff58e
|
@ -38,30 +38,13 @@ class SubdivxSubtitle(Subtitle):
|
||||||
|
|
||||||
# episode
|
# episode
|
||||||
if isinstance(video, Episode):
|
if isinstance(video, Episode):
|
||||||
|
# already matched in search query
|
||||||
# title / series
|
matches.update(['title', 'series', 'season', 'episode', 'year'])
|
||||||
if video.series:
|
|
||||||
matches.add('title')
|
|
||||||
matches.add('series')
|
|
||||||
|
|
||||||
# season
|
|
||||||
if video.season:
|
|
||||||
matches.add('season')
|
|
||||||
|
|
||||||
# episode
|
|
||||||
if video.episode:
|
|
||||||
matches.add('episode')
|
|
||||||
|
|
||||||
# movie
|
# movie
|
||||||
elif isinstance(video, Movie):
|
elif isinstance(video, Movie):
|
||||||
|
# already matched in search query
|
||||||
# title
|
matches.update(['title', 'year'])
|
||||||
if video.title:
|
|
||||||
matches.add('title')
|
|
||||||
|
|
||||||
# year
|
|
||||||
if video.year:
|
|
||||||
matches.add('year')
|
|
||||||
|
|
||||||
# release_group
|
# release_group
|
||||||
if video.release_group and video.release_group.lower() in self.description:
|
if video.release_group and video.release_group.lower() in self.description:
|
||||||
|
|
Loading…
Reference in New Issue