mirror of
https://github.com/glomatico/votify.git
synced 2026-10-02 05:52:27 +02:00
Update playlist with final path and track
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user