diff options
-rw-r--r-- | bazarr/subtitles/refiners/database.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bazarr/subtitles/refiners/database.py b/bazarr/subtitles/refiners/database.py index 218e22c69..aa18cdfa1 100644 --- a/bazarr/subtitles/refiners/database.py +++ b/bazarr/subtitles/refiners/database.py @@ -38,8 +38,10 @@ def refine_from_db(path, video): if data: video.series = _TITLE_RE.sub('', data.seriesTitle) - video.season = int(data.season) - video.episode = int(data.episode) + if not video.season and data.season: + video.season = int(data.season) + if not video.episode and data.episode: + video.episode = int(data.episode) video.title = data.episodeTitle # Only refine year as a fallback |