To access your YouTube Music data, you need to provide authentication cookies from your browser.
Go to music.youtube.com and sign in to your account.
Press F12
or right-click and select "Inspect Element" to open browser developer tools.
Click on the "Network" tab in the developer tools.
Refresh the page or navigate around YouTube Music. Look for any request to music.youtube.com
in the network list.
Click on one of the requests, go to the "Headers" tab, and find the Cookie
header. Copy the entire value.
Add the cookie value to your .env
file:
YOUTUBE_MUSIC_COOKIE=your_copied_cookie_here
Restart the application for the changes to take effect, then try connecting again.