spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.81k stars 1.62k forks source link

Age restricted videos fail to download. #2244

Open Silverarmor opened 1 week ago

Silverarmor commented 1 week ago

System OS

All

Python Version

3.13 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.10

Steps to reproduce - Ensure to include actual links!

spotdl https://open.spotify.com/track/2QiqwOVUctPRVggO9G1Zs5?si=b12cdfc889444d52 spotdl https://open.spotify.com/track/35D1RA5uVFVhMc1qX80TaQ?si=be09802c127d438d

Traceback

[21:02:40] DEBUG    MainThread - Downloader initialized                                                  downloader.py:239
[21:02:40] INFO     MainThread - Processing query:                                                           search.py:140
                    https://open.spotify.com/track/2QiqwOVUctPRVggO9G1Zs5?si=b12cdfc889444d52
[21:02:41] DEBUG    MainThread - Found 1 songs in 0 lists                                                    search.py:353
[21:02:41] DEBUG    MainThread - Downloading 1 songs                                                     downloader.py:286
[21:02:44] DEBUG    asyncio_0 - Found lyrics for Rage Against The Machine - Wake Up on Genius            downloader.py:411
[21:02:44] DEBUG    asyncio_0 - [2QiqwOVUctPRVggO9G1Zs5] Searching for rage against the machine - wake up      base.py:168
[21:02:45] DEBUG    asyncio_0 - [2QiqwOVUctPRVggO9G1Zs5] Found 4 results for ISRC USSM11205438                 base.py:185
[21:02:45] DEBUG    asyncio_0 - [2QiqwOVUctPRVggO9G1Zs5] Filtered to 1 ISRC results                            base.py:213
[21:02:45] DEBUG    asyncio_0 - [2QiqwOVUctPRVggO9G1Zs5] Best ISRC result is                                   base.py:222
                    https://music.youtube.com/watch?v=gFNPzbWROFc with score 93.75
[21:02:45] DEBUG    asyncio_0 - Downloading Rage Against The Machine - Wake Up using                     downloader.py:690
                    https://music.youtube.com/watch?v=gFNPzbWROFc
[21:02:47] DEBUG    asyncio_0 - ERROR: [youtube] gFNPzbWROFc: Sign in to confirm your age. This video may be   base.py:395
                    inappropriate for some users
...

raise AudioProviderError(msg)
     spotdl.providers.audio.base.AudioProviderError: ERROR:  gFNPzbWROFc: Sign in to confirm your age. This video may be inappropriate for some users

...
ExtractorError: [youtube] gFNPzbWROFc: Sign in to confirm your age. This video may be inappropriate for some users.

Other details

Occuring over wide range of countries - NZ, AUS, US, Canada, Netherlands

Error reporting was not helpful for web UI etc. Had to run with log-level debug.

image image

Silverarmor commented 1 week ago

@xnetcat This is appearing quite often in support threads. Any ideas? Seems yt-dlp is failing to download them... Occuring over wide range of countries - NZ, AUS, US, Canada, Netherlands

xnetcat commented 1 week ago

@xnetcat This is appearing quite often in support threads. Any ideas? Seems yt-dlp is failing to download them...

Occuring over wide range of countries - NZ, AUS, US, Canada, Netherlands

If yt-dlp cant bypass this the only way around is to use cookies from the browser