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.03k stars 1.56k forks source link

docker container stops immediately on run #1673

Closed Behem07h closed 1 year ago

Behem07h commented 1 year ago

System OS

Docker

Python Version

3.8 (CPython)

Install Source

GitHub

Install version / commit hash

v4.0.5

Expected Behavior vs Actual Behavior

docker container remains running, allowing me to open the docker container's console and run spotdl commands

Steps to reproduce - Ensure to include actual links!

  1. docker-compose or docker build spotdl from the docker-compose.yml and Dockerfile files in the github
  2. run the docker container
  3. docker container immediately exits itself, saying "spotdl: error: the following arguments are required: query"

on checking the docker container's settings i see that it's execution command is "poetry run spotdl" however i have no way to edit this

Traceback

usage: spotdl [-h] [--audio [{youtube,youtube-music} ...]]

              [--lyrics [{genius,musixmatch,azlyrics} ...]] [--config]

              [--search-query SEARCH_QUERY] [--dont-filter-results]

              [--user-auth] [--client-id CLIENT_ID]

              [--client-secret CLIENT_SECRET] [--auth-token AUTH_TOKEN]

              [--cache-path CACHE_PATH] [--no-cache]

              [--cookie-file COOKIE_FILE] [--ffmpeg FFMPEG]

              [--threads THREADS]

              [--bitrate {8k,16k,24k,32k,40k,48k,64k,80k,96k,112k,128k,160k,192k,224k,256k,320k,0,1,2,3,4,5,6,7,8,9}]

              [--ffmpeg-args FFMPEG_ARGS] [--format {mp3,flac,ogg,opus,m4a}]

              [--save-file SAVE_FILE] [--preload] [--output OUTPUT]

              [--m3u [M3U]] [--overwrite {force,metadata,skip}] [--restrict]

              [--print-errors] [--sponsor-block] [--archive ARCHIVE]

              [--playlist-numbering] [--host HOST] [--port PORT]

              [--keep-alive] [--allowed-origins [ALLOWED_ORIGINS ...]]

              [--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}]

              [--simple-tui] [--headless] [--download-ffmpeg]

              [--generate-config] [--check-for-updates] [--profile]

              [--version]

              [{download,save,web,sync,meta}] query [query ...]

spotdl: error: the following arguments are required: query

Other details

No response

xnetcat commented 1 year ago

This is the correct command to use when using docker: docker run --rm -v $(pwd):/music spotdl download [trackUrl]

https://github.com/spotDL/spotify-downloader#other-options