From 561f5495fb3a0ba87d8b84113ff7963bcff91087 Mon Sep 17 00:00:00 2001 From: ngosang Date: Sat, 25 May 2019 19:35:13 +0200 Subject: [PATCH] Improve score in Subdivx provider --- libs/subliminal_patch/providers/subdivx.py | 25 ++++------------------ 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/libs/subliminal_patch/providers/subdivx.py b/libs/subliminal_patch/providers/subdivx.py index cdb8a8251..fb4e268f0 100644 --- a/libs/subliminal_patch/providers/subdivx.py +++ b/libs/subliminal_patch/providers/subdivx.py @@ -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: