faeinthebay / playlist-optimizer

Other
0 stars 0 forks source link

Automatically process cookies.txt into ytmusicapi headers_auth.json #1

Open faeinthebay opened 2 years ago

faeinthebay commented 2 years ago

Ytmusicapi requires headers_auth.json to function, and gives instructions on how to extract the that data. But to get a stream URL, yt-dlp needs cookies.txt, which has more specific cookie data. To simplify things for the user, I should instruct them to dump cookies.txt, then create a custom headers_auth.json as described in the ytmusicapi documentation.