From cda1dc6a7ae7fafa0ed74254f9d098892230226e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Dudzi=C5=84ski?= <56404247+oskvr37@users.noreply.github.com> Date: Sat, 11 Apr 2026 17:04:17 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20missing=20metadata=20whe?= =?UTF-8?q?n=20downloading=20a=20single=20track?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tiddl/cli/commands/download/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tiddl/cli/commands/download/__init__.py b/tiddl/cli/commands/download/__init__.py index 6cc1c66..995d49f 100644 --- a/tiddl/cli/commands/download/__init__.py +++ b/tiddl/cli/commands/download/__init__.py @@ -386,6 +386,12 @@ def download_callback( track = ctx.obj.api.get_track(resource.id) album = ctx.obj.api.get_album(track.album.id) + cover: Cover | None = None + save_cover = ("track" in CONFIG.cover.allowed) and CONFIG.cover.save + + if album.cover and (CONFIG.metadata.cover or save_cover): + cover = Cover(album.cover, size=CONFIG.cover.size) + await handle_item( item=track, file_path=format_template( @@ -394,6 +400,12 @@ def download_callback( album=album, quality=get_item_quality(track), ), + track_metadata=Metadata( + cover=cover, + date=str(album.releaseDate), + artist=album.artist.name if album.artist else "", + # credits are missing + ), ) if (