mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:39:18 +00:00
fix mkv cover stream extractor
This commit is contained in:
@@ -316,7 +316,7 @@ class ImportFolderScanner:
|
|||||||
new_path = False
|
new_path = False
|
||||||
if ext == ".mkv":
|
if ext == ".mkv":
|
||||||
idx, thumb_type = self._get_mkv_thumb_stream(media_path)
|
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)
|
new_path = self.dump_mpv_thumb(media_path, idx, thumb_type)
|
||||||
|
|
||||||
elif ext == ".mp4":
|
elif ext == ".mp4":
|
||||||
@@ -340,7 +340,7 @@ class ImportFolderScanner:
|
|||||||
_, ext = os.path.splitext(tags["filename"])
|
_, ext = os.path.splitext(tags["filename"])
|
||||||
return idx, ext
|
return idx, ext
|
||||||
|
|
||||||
return False, False
|
return None, None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def dump_mpv_thumb(media_path, idx, thumb_type):
|
def dump_mpv_thumb(media_path, idx, thumb_type):
|
||||||
|
|||||||
Reference in New Issue
Block a user