From d24ef1ff21ba26fb53f23f0186d80e2cd3d872c0 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Feb 2026 20:29:57 -0300 Subject: [PATCH] Update playlist with final path and track --- votify/downloader/downloader.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/votify/downloader/downloader.py b/votify/downloader/downloader.py index e865fd3..63f65a5 100644 --- a/votify/downloader/downloader.py +++ b/votify/downloader/downloader.py @@ -160,6 +160,13 @@ class SpotifyDownloader: if self.skip_processing: return + if item.playlist_file_path and item.final_path and self.save_playlist_file: + self.base.update_playlist_file( + item.playlist_file_path, + item.final_path, + item.media.playlist_tags.track, + ) + if item.cover_path and self.save_cover_file: cover_bytes = await self.base.get_cover_bytes( item.media.cover_url, @@ -194,11 +201,6 @@ class SpotifyDownloader: item.staged_path, item.final_path, ) - if item.playlist_file_path and self.save_playlist_file: - self.base.update_playlist_file( - item.playlist_file_path, - item.media.playlist_tags, - ) def _write_cover_file(self, cover_path: str, cover_bytes: bytes) -> None: logger.debug(f"Writing cover: {cover_path}")