mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-25 15:25:57 +08:00
Fix for #1113
This commit is contained in:
parent
2709e884ec
commit
86cf9aa9cc
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,10 @@ class ZimukuSubtitle(Subtitle):
|
||||||
info = guessit(self.version, {"type": "episode"})
|
info = guessit(self.version, {"type": "episode"})
|
||||||
# other properties
|
# other properties
|
||||||
matches |= guess_matches(video, info, partial=True)
|
matches |= guess_matches(video, info, partial=True)
|
||||||
|
|
||||||
|
# add year to matches if video doesn't have a year but series, season and episode are matched
|
||||||
|
if not video.year and all(item in matches for item in ['series', 'season', 'episode']):
|
||||||
|
matches |= {'year'}
|
||||||
# movie
|
# movie
|
||||||
elif isinstance(video, Movie):
|
elif isinstance(video, Movie):
|
||||||
# other properties
|
# other properties
|
||||||
|
|
Loading…
Reference in a new issue