mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-24 14:57:16 +08:00
Prevent overwriting season and episode number guessed from file name with db values unless they haven't been properly guessed. #2284
This commit is contained in:
parent
452f8c12c9
commit
b87aef8763
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue