th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
7.8k stars 471 forks source link

Issue with downloading whole playlist #731

Closed ubreathtaking closed 2 years ago

ubreathtaking commented 2 years ago

Hello, i have enabled plugin - download , and i can download one song at a time, yet while i try to download whole list of songs - it gets this message :

image

Araxeus commented 2 years ago

The downloader plugin can only download public playlists that are not auto-generated

You are trying to download a private auto-generated playlist - that's not supported currently

ubreathtaking commented 2 years ago

@Araxeus it's liked music ( i guess - public music )

another workaround - can you select all songs from "liked songs" and transfer them all into specific created playlist. - or the only way is one song at a time?

image

Araxeus commented 2 years ago

Sorry but currently the only way to add to a playlist is one by one...

ubreathtaking commented 2 years ago

@Araxeus understood, than you

Moe1369 commented 2 years ago

I'm sorry for reopening but it is possible to download your liked playlist with youtube-dlp or youtube-dl-gui(the electron one) export your youtube music cookie and then download the playlist. Here's an example guide

https://github.com/jely2002/youtube-dl-gui/wiki/Tutorial:-Private-videos-&-playlists

Araxeus commented 2 years ago

You're actually right, ytdl-core seems to have an option to pass cookies

https://github.com/fent/node-ytdl-core/blob/master/example/cookies.js

Araxeus commented 2 years ago

Progress update:

I've managed to enable downloading private playlists and songs

But! Playlists that are longer than 100 songs requires a second API call which I cannot make work using cookies right now