From 0b41d288db6cf9aace401298f644dc18b0edc427 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 16 Aug 2022 12:19:27 +0700 Subject: [PATCH] fix mkv cover stream extractor --- tubearchivist/home/src/index/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubearchivist/home/src/index/filesystem.py b/tubearchivist/home/src/index/filesystem.py index c307d99f..4477eb19 100644 --- a/tubearchivist/home/src/index/filesystem.py +++ b/tubearchivist/home/src/index/filesystem.py @@ -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):