Prevent overwriting season and episode number guessed from file name with db values unless they haven't been properly guessed. #2284

pull/2292/head v1.3.2-beta.10
morpheus65535 1 year ago
parent 452f8c12c9
commit b87aef8763

@ -38,8 +38,10 @@ def refine_from_db(path, video):
if data: if data:
video.series = _TITLE_RE.sub('', data.seriesTitle) video.series = _TITLE_RE.sub('', data.seriesTitle)
video.season = int(data.season) if not video.season and data.season:
video.episode = int(data.episode) video.season = int(data.season)
if not video.episode and data.episode:
video.episode = int(data.episode)
video.title = data.episodeTitle video.title = data.episodeTitle
# Only refine year as a fallback # Only refine year as a fallback

Loading…
Cancel
Save