fix mkv cover stream extractor

This commit is contained in:
simon 2022-08-16 12:19:27 +07:00
parent 21f3ee88b9
commit 0b41d288db
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ class ImportFolderScanner:
new_path = False
if ext == ".mkv":
idx, thumb_type = self._get_mkv_thumb_stream(media_path)
if idx:
if idx is not None:
new_path = self.dump_mpv_thumb(media_path, idx, thumb_type)
elif ext == ".mp4":
@ -340,7 +340,7 @@ class ImportFolderScanner:
_, ext = os.path.splitext(tags["filename"])
return idx, ext
return False, False
return None, None
@staticmethod
def dump_mpv_thumb(media_path, idx, thumb_type):