Closed yoshakami closed 2 months ago
upon further investigation, I found that the problem relies in
the get_tags
function :
ytmusic_album["audioPlaylistId"]
is None
here's a dump of ytmusic_album : data.json
(in case you're against downloading files)
Thanks for identifying the issue. I'll work in a fix for these cases.
I managed to get playlists link download working on my own fork, but it still doesn't list premium albums, and still can't download premium musics (only playlists for now)
and now I got premium musics working too
my fix basically relies on a workaround, since the user provided the playlist id : I saved it in the class attributes. there is no need to get it from the youtube music api (which returns the "None" string for premium albums)
I have no idea how to list premium albums and premium singles though if the user provides a channel link, premium content is hidden (that's the only issue that I can't fix)
found a way to list premium albums :)
people need to run ytmusicapi oauth
in the terminal.
source: <https://ytmusicapi.readthedocs.io/en/latest/setup/oauth.html>
now I need to find a way to download premium albums using a channel link since the premium api doesn't return the same dict with the same keys
I got it working completely on my fork. if you're okay with it, I'll be making a pull request with some new cli options
I got it working completely on my fork. if you're okay with it, I'll be making a pull request with some new cli options
i got a better workaround, but thanks
I tried to get albums that are not listed upon running this command (because they are premium albums), but that are listed on yt music anyways (I have a premium subscription in the cookies)
gytmdl -c "C:\yt.txt" https://music.youtube.com/channel/UCNats-h_Vr0pEh5OtZo6eVw
first attempt was to put the playlist link to an albumgytmdl -i 774 --cover-size 2048 -s -c "C:\yt.txt" https://music.youtube.com/playlist?list=OLAK5uy_n1rux8cx7zHxJc_OjD-b6WIUAgEUziQAE
which outputs this:second attempt was to use aria2c. same output, it uses ytdlp anyways.
gytmdl -i 774 --download-mode aria2c --cover-size 2048 -s -c "C:\yt.txt" --aria2c-path "C:\aria2c.exe" https://music.youtube.com/playlist?list=OLAK5uy_n1rux8cx7zHxJc_OjD-b6WIUAgEUziQAE
this is weird. because if I try with ytdlp, it works (but without metadata in the files)
ytdlp --cookies "C:\yt.txt" https://music.youtube.com/playlist?list=OLAK5uy_n1rux8cx7zHxJc_OjD-b6WIUAgEUziQAE
which outputs this