From b07d62b29f8fa61ba6256c5e3a02e0dba91f4299 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:53:29 -0300 Subject: [PATCH] adjust path cleanup function --- votify/downloader_music_video.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/votify/downloader_music_video.py b/votify/downloader_music_video.py index dc3dd0d..7c23658 100644 --- a/votify/downloader_music_video.py +++ b/votify/downloader_music_video.py @@ -128,9 +128,7 @@ class DownloaderMusicVideo(DownloaderVideo): try: self._download(*args, **kwargs) finally: - if self.downloader.temp_path.exists(): - logger.debug(f'Cleaning up "{self.downloader.temp_path}"') - self.downloader.cleanup_temp_path() + self.downloader.cleanup_temp_path() def _download( self,