Fixed issue when whisper returns more than one subtitle for language profiles with more than one language #2758

pull/2765/head v1.4.6-beta.17
JayZed 5 months ago committed by GitHub
parent 62f345bffe
commit d67477aded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -207,7 +207,10 @@ class WhisperAISubtitle(Subtitle):
@property
def id(self):
return self.video.original_name
# Construct unique id otherwise provider pool will think
# subtitles are all the same and drop all except the first one
# This is important for language profiles with more than one language
return f"{self.video.original_name}_{self.task}_{str(self.language)}"
def get_matches(self, video):
matches = set()

Loading…
Cancel
Save