Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies Not Working for High-Quality Audio Downloads in Spotdl; PO Tokens Required in YTDLP #2279

Open
Substancelib opened this issue Jan 18, 2025 · 2 comments · May be fixed by #2285
Open
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@Substancelib
Copy link

System OS

Windows

Python Version

3.13 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.11

Expected Behavior vs Actual Behavior

Since yesterday, when I use cookies to download music in high quality, the music still downloads in the same standard quality. I investigated and tried using a command in ytdlp to download audio with cookies, but it also didn't work. Upon further investigation, I found that ytdlp now requires PO tokens to download high-quality audio from YouTube using my premium account cookies. I’m not sure if the issue is specific to my setup, but when I use PO tokens together with cookies in ytdlp, I can download high-quality music without any issues. However, I haven’t found any information on how to use PO tokens with spotdl.

Steps to reproduce - Ensure to include actual links!

https://github.com/yt-dlp/yt-dlp/wiki/Extractors#po-token-guide
This command worked well for me on ytdlp --extractor-args "youtube:player_client=web_music,default;po_token=web_music+TOKENGOESHERE" the only hard part is to get po token.

Traceback

C:\Users\Documents\xxx>spotdl --cookie-file "C:\Users\Documents\xxx" "https://spotifyt.com/playlist/xxxxxx"
Processing query: https://spotifyt.com/playlist/xxxxx
Found 10 songs in Playlist Name (Playlist)
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=1gAd54gVyH4
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=DW0PTHJE0ao
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=yOOwcvl3u9Y
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=AyJM7N39tBU
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=p7pQf0WETEk
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=pb57CTmOFF0
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=_uG2bjb4mLs
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=cAqWW_HBmTM
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=mcE0NO7s7RE
AudioProviderError: YT-DLP download error - https://youtubexx.com/watch?v=LRcfqKqzxL

C:\Users\Documents\xxx>
C:\Users\Documents\xxx>spotdl "https://spotifyt.com/playlist/xxxx"
Processing query: https://spotifyt.com/playlist/xxxxx
Found 10 songs in Playlist Name (Playlist)
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=p7pQf0WETEk
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=DW0PTHJE0ao
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=yOOwcvl3u9Y
Total                                   3/10 complete      ---------------- ------------------------------  36% 0:00:29
Song Name - Track Title            Processing         -----------------------------------------------   0% -:--:--
Song Name - Track Title                Converting         --------------------------- -------------------  59% 0:ToToToToT
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=1gAd54gVyH4
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=LRcfqKqzxL0
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=mcE0NO7s7RE
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=AyJM7N39tBU
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=_uG2bjb4mLs
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=cAqWW_HBmTM
Downloaded "Song Name - Track Title": https://youtubexx.com/watch?v=pb57CTmOFF0

Other details

No response

@Substancelib Substancelib added the Bug Unexpected problem or unintended behavior that needs to be fixed label Jan 18, 2025
@Eurodocsis
Copy link

Not working for me too bitrate stays on 128kb

@Kyrluckechuck
Copy link

Unfortunately running into this issue as well, and the annoying part is there is no indication that it is failing or ability to stop it from downloading a lesser-quality file. Would be nice if when this is resolved to also add a config option to "fail" if premium quality isn't available

@Kyrluckechuck Kyrluckechuck linked a pull request Jan 24, 2025 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants