A yt-dlp extractor plugin for downloading Spotify Canvas videos.
Requires yt-dlp 2023.01.02
or above.
You can install this package with pip:
python3 -m pip install -U https://github.com/qbnu/yt-dlp-SpotifyCanvas/archive/master.zip
See installing yt-dlp plugins for the other methods this plugin package can be installed.
IMPORTANT: Downloading will NOT work anymore unless you specify your sp_dc
cookie. See How do I pass cookies to yt-dlp?.
You can either use --cookies-from-browser
or --cookies
with a cookie file like this:
# Netscape HTTP Cookie File
.spotify.com TRUE / TRUE 2147483647 sp_dc <your cookie value>
Download the Canvas for a song:
yt-dlp --cookies spotify-cookies.txt https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV
Write the song info in yt-dlp format without downloading:
yt-dlp --write-info --skip-download --ignore-no-formats-error https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV
Note: if you download a static Canvas (JPEG) with --write-thumbnail
set then the thumbnail will overwrite the Canvas
Thanks to Canvas Downloader for help with figuring out what cookies need to be sent.
My Spotify Canvas
librespot-java
Spotify Canvas Downloader
Spicetify Canvas