Closed AndreyMZ closed 4 years ago
Got it. I'll probably implement a feature to define a track name using predefined variables for available info (such as title, name, etc).
Feature is implemented.
For now 3 placeholders are available: #number, #artist, #title
Now the feature works for albums and tracks, but unfortunately it does not work for playlists:
C:\Music>docker run --rm -v "%CD%":/root -it yandex-music-downloader --dir /root --pattern "#number. #artist - #title" --url https://music.yandex.ru/users/strangeislandwithnumbers/playlists/1111 --cookie "<...>"
[INFO] Checking Yandex.Music availability
[OK] Yandex.Music is available
[INFO] Fetching playlist info: 1111 [strangeislandwithnumbers]
[INFO] Playlist title: LOST OST additional
[INFO] Tracks total: 23
Use of uninitialized value within %mp3_tags in substitution iterator at /src/ya.pl line 919.
Use of uninitialized value within %mp3_tags in substitution iterator at /src/ya.pl line 919.
<...>
Use of uninitialized value within %mp3_tags in substitution iterator at /src/ya.pl line 919.
[INFO] Trying to fetch track: . Garry Schyman - Excessum Alighiero
[OK] Temporary saved track at /root/YAAaVMMBEE
[INFO] MP3 tags added for /root/YAAaVMMBEE
[INFO] /root/YAAaVMMBEE -> /root/. Garry Schyman - Excessum Alighiero.mp3
[INFO] Waiting for 5 seconds
[INFO] Trying to fetch track: . Rayden, KimI - Devil Trigger (from -Devil May Cry 5-)
[OK] Temporary saved track at /root/OYDN8gvs2n
[INFO] MP3 tags added for /root/OYDN8gvs2n
[INFO] /root/OYDN8gvs2n -> /root/. Rayden, KimI - Devil Trigger (from -Devil May Cry 5-).mp3
[INFO] Waiting for 5 seconds
<...>
Also, track number in an album and index number in a playlist may differ. I would like to be able to use the latter one when I download a playlist.
Please, try current version
Now it works, for playlists. Thank you!
Tracks in a playlist have an order. When a playlist is downloaded, this order is lost. I suggest to (optionally) save this order by adding a track number in the filename of the track.
For example:
01. Example author - Example title.mp3
instead of justExample author - Example title.mp3