From 03e33eaf9b1e51a4682cd3a77fb1bcc6312a7660 Mon Sep 17 00:00:00 2001 From: retouching <33735357+retouching@users.noreply.github.com> Date: Mon, 27 May 2024 22:15:11 +0200 Subject: [PATCH 1/2] fix(dl): delete old file after repackage --- devine/core/tracks/track.py | 1 + 1 file changed, 1 insertion(+) diff --git a/devine/core/tracks/track.py b/devine/core/tracks/track.py index 7bc3f34..6ebdec7 100644 --- a/devine/core/tracks/track.py +++ b/devine/core/tracks/track.py @@ -542,6 +542,7 @@ def _ffmpeg(extra_args: list[str] = None): else: raise + self.path.unlink() self.path = output_path From 0542e89ad24ba7b94f4d2d1e4fdc5895a4a7c756 Mon Sep 17 00:00:00 2001 From: retouching <33735357+retouching@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:54:02 +0200 Subject: [PATCH 2/2] fix(dl): using original_path instead of self.path in repackage method --- devine/core/tracks/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/tracks/track.py b/devine/core/tracks/track.py index 6ebdec7..54bab1c 100644 --- a/devine/core/tracks/track.py +++ b/devine/core/tracks/track.py @@ -542,7 +542,7 @@ def _ffmpeg(extra_args: list[str] = None): else: raise - self.path.unlink() + original_path.unlink() self.path = output_path