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

Unrecognized arguments: --path-template #1647

Closed Airblox closed 1 year ago

Airblox commented 1 year ago

System OS

Windows

Python Version

3.10 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.0.1

Expected Behavior vs Actual Behavior

The python version is actually 3.11! The option was not available.

Code ran

spotdl download https://open.spotify.com/track/48kpWTPYYy5Edp3CHwrrOj?si=c32cafdebd99426a --path-template "1234567890 {artist} {title}"

Result:

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}] [--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]    
              [--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: unrecognized arguments: --path-template 910870552439312414 {artist} {title}

Steps to reproduce - Ensure to include actual links!

  1. Run spotdl download https://open.spotify.com/track/48kpWTPYYy5Edp3CHwrrOj?si=c32cafdebd99426a --path-template "1234567890 {artist} {title}"
  2. Error!

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}] [--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]    
              [--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: unrecognized arguments: --path-template 910870552439312414 {artist} {title}
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}] [--ffmpeg-args FFMPEG_ARGS] [--format {mp3,flac,ogg,opus,m4a}]       
              [--save-file SAVE_FILE] [--preload] [--output OUTPUT] [--m3u M3U] [--overwrite {skip,force,metadata}] [--restrict] [--print-errors] [--sponsor-block] [--archive ARCHIVE]    
              [--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: unrecognized arguments: --path-template 1234567890 {artist} {title}.{ext}

Other details

The python version is 3.11!

lerev commented 1 year ago

Where you saw "--path-template" parameter? Read docs, PLS. You must use "--output".

xnetcat commented 1 year ago

@lerev is correct, use --output and check docs next time

Airblox commented 1 year ago

@lerev Ah, ok - guess I was blind and the discord bot is outdated. Thanks!