diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-03-13 06:48:11 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-03-13 06:48:11 +0100 |
| commit | e3a8588324328ee27edd4ff7dcab65d9dda7d31a (patch) | |
| tree | 2738fb2bb4e5b8c7c3c009d5527162bfa06202f6 /tidal_dl_ng/download.py | |
| parent | f4365e879b869e508d1e8cc5e94157c30950d799 (diff) | |
| parent | bbb6051fdd34fabf7565df480df66c128ffa4ef5 (diff) | |
| download | tidal-dl-ng-e3a8588324328ee27edd4ff7dcab65d9dda7d31a.tar.gz | |
Merge branch '41-request-song-organization'
* 41-request-song-organization:
✨ Track media items will be re-created with album information. Path format refactored.
♻️ Refactored format_str method to one `format_str_media` method.
# Conflicts:
# tidal_dl_ng/download.py
# tidal_dl_ng/gui.py
Diffstat (limited to 'tidal_dl_ng/download.py')
| -rw-r--r-- | tidal_dl_ng/download.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index e4904b6..4d752cb 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -166,6 +166,8 @@ class Download: # If no media instance is provided, we need to create the media instance. if media_id and media_type: media = instantiate_media(self.session, media_type, media_id) + elif isinstance(media, Track): + media = self.session.track(media.id, with_album=True) elif not media: raise MediaMissing |
