From f6249c1fe32bd62aac959ddf68da37f25ac4dad7 Mon Sep 17 00:00:00 2001 From: acgnhik Date: Sun, 6 Nov 2022 13:17:36 +0800 Subject: [PATCH] fix: `meta.json` files not been removed --- src/blrec/postprocess/postprocessor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blrec/postprocess/postprocessor.py b/src/blrec/postprocess/postprocessor.py index 8ef31bb..f7c84a4 100644 --- a/src/blrec/postprocess/postprocessor.py +++ b/src/blrec/postprocess/postprocessor.py @@ -155,9 +155,6 @@ class Postprocessor( remuxing_result, ) = await self._remux_video_to_mp4(video_path) if not self._debug: - await discard_file( - extra_metadata_path(video_path), 'DEBUG' - ) if self._should_delete_source_files(remuxing_result): await discard_file(video_path) elif self.inject_extra_metadata: @@ -165,6 +162,8 @@ class Postprocessor( result_path = await self._inject_extra_metadata(video_path) else: result_path = video_path + if not self._debug: + await discard_file(extra_metadata_path(video_path), 'DEBUG') elif video_path.endswith('.m3u8'): if self.remux_to_mp4: