SpotTube is a tool for downloading Spotify Artists/Albums/Tracks/Playlists via yt-dlp.
services:
spottube:
image: thewicklowwolf/spottube:latest
container_name: spottube
environment:
- PUID=1000
- PGID=1000
- spotify_client_id=abc
- spotify_client_secret=123
- thread_limit=1
- artist_track_selection=all
volumes:
- /path/to/config:/spottube/config
- /data/media/spottube:/spottube/downloads
- /etc/localtime:/etc/localtime:ro
ports:
- 5000:5000
restart: unless-stopped
Certain values can be set via environment variables:
- PUID: The user ID to run the app with. Defaults to
1000
. - PGID: The group ID to run the app with. Defaults to
1000
. - thread_limit: Max number of threads to use. Defaults to
1
. - artist_track_selection: Select which tracks to download for an artist, options are
all
ortop
. Defaults toall
.
To utilize a cookies file with yt-dlp, follow these steps:
-
Generate Cookies File: Open your web browser and use a suitable extension (e.g. cookies.txt for Firefox) to extract cookies for a user on YT.
-
Save Cookies File: Save the obtained cookies into a file named
cookies.txt
and put it into the config folder.