Skip to content

Commit

Permalink
Release v4.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat authored Dec 10, 2022
2 parents 8f7cb2a + 0af0337 commit 49abfa2
Show file tree
Hide file tree
Showing 49 changed files with 55,108 additions and 57,360 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
poetry env use ${{ matrix.python-version }}
poetry install
- uses: FedericoCarboni/setup-ffmpeg@v1
- uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests
run: |
poetry run pytest -vvv --ignore tests/test_matching.py
poetry run pytest -vvv --ignore tests/test_matching.py --ignore tests/utils/test_ffmpeg.py --ignore tests/utils/test_metadata.py
env:
PLATFORM: ${{ matrix.platform }}

Expand Down Expand Up @@ -72,6 +72,6 @@ jobs:

- name: Run tests
run: |
poetry run pytest -vvv --disable-vcr --vcr-record=none --ignore tests/providers/lyrics --ignore tests/utils/test_github.py
poetry run pytest -vvv --disable-vcr --vcr-record=none --ignore tests/providers/lyrics --ignore tests/utils/test_github.py --ignore tests/utils/test_ffmpeg.py --ignore tests/utils/test_metadata.py
env:
PLATFORM: ${{ matrix.platform }}
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ ______________________________________________________________________

## Contributing

Interested in contributing? Check out our [CONTRIBUTING.md](docs/CONTRIBUTING.md) to find
Interested in contributing? Check out our [CONTRIBUTING.md](CONTRIBUTING) to find
resources around contributing along with a guide on how to set up a development environment.

## License

This project is Licensed under the [MIT](/LICENSE) License.
This project is Licensed under the [MIT](https://github.com/spotDL/spotify-downloader/blob/master/LICENSE) License.
27 changes: 16 additions & 11 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ spotdl web
The config file is located at `C:\Users\user\.spotdl\config.json`
or `~/.spotdl/config.json` under linux

> Note: If you want to use XDG_DATA_HOME directory, run `mkdir $XDG_DATA_HOME/spotdl`, next time you run spotdl it will be automatically used.
### Generate a config file

To generate a config file, run
Expand Down Expand Up @@ -250,15 +252,16 @@ Main options:
web: Starts a web interface to simplify the download process.
sync: Removes songs that are no longer present, downloads new ones
meta: Update your audio files with metadata
query Spotify URL for a song/playlist/album/artist/etc. to download.For manual audio matching, you can use the format 'YouTubeURL|SpotifyURL'
query Spotify URL for a song/playlist/album/artist/etc. to download. For album searching, include 'album:' and optional 'artist:' tags (ie. 'album:the album name' or 'artist:the artist album: the album').
For manual audio matching, you can use the format 'YouTubeURL|SpotifyURL'
--audio [{youtube,youtube-music} ...]
The audio provider to use. You can provide more than one for fallback.
--lyrics [{genius,musixmatch,azlyrics} ...]
The lyrics provider to use. You can provide more than one for fallback.
--config Use the config file to download songs. It's located under C:\Users\user\.spotdl\config.json or ~/.spotdl/config.json under linux
--search-query SEARCH_QUERY
The search query to use, available variables: {title}, {artists}, {artist}, {album}, {album-artist}, {genre}, {disc-number}, {disc-count}, {duration}, {year},
{original-date}, {track-number}, {tracks-count}, {isrc}, {track-id}, {publisher}, {list-length}, {list-position}, {list-name}, {output-ext}
The search query to use, available variables: {title}, {artists}, {artist}, {album}, {album-artist}, {genre}, {disc-number}, {disc-count}, {duration}, {year}, {original-date}, {track-number},
{tracks-count}, {isrc}, {track-id}, {publisher}, {list-length}, {list-position}, {list-name}, {output-ext}
--dont-filter-results
Disable filtering results.
Expand All @@ -279,28 +282,30 @@ Spotify options:
FFmpeg options:
--ffmpeg FFMPEG The ffmpeg executable to use.
--threads THREADS The number of threads to use when downloading songs.
--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,0}
The constant/variable bitrate to use for the output file.
--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}
The constant/variable bitrate to use for the output file. Values from 0 to 9 are variable bitrates.
--ffmpeg-args FFMPEG_ARGS
Additional ffmpeg arguments passed as a string.
--preserve-original-audio
Preserve the original audio stream in case of m4a and opus files. This option might overwrite the bitrate option. Adding additional ffmpeg arguments might make this option useless.
Output options:
--format {mp3,flac,ogg,opus,m4a}
The format to download the song in.
--save-file SAVE_FILE
The file to save/load the songs data from/to. It has to end with .spotdl. If combined with the download operation, it will save the songs data to the file.
Required for save/preload/sync
The file to save/load the songs data from/to. It has to end with .spotdl. If combined with the download operation, it will save the songs data to the file. Required for save/preload/sync
--preload Preload the download url to speed up the download process.
--output OUTPUT Specify the downloaded file name format, available variables: {title}, {artists}, {artist}, {album}, {album-artist}, {genre}, {disc-number}, {disc-count},
{duration}, {year}, {original-date}, {track-number}, {tracks-count}, {isrc}, {track-id}, {publisher}, {list-length}, {list-position}, {list-name}, {output-ext}
--m3u M3U Name of the m3u file to save the songs to.
--output OUTPUT Specify the downloaded file name format, available variables: {title}, {artists}, {artist}, {album}, {album-artist}, {genre}, {disc-number}, {disc-count}, {duration}, {year}, {original-date}, {track-
number}, {tracks-count}, {isrc}, {track-id}, {publisher}, {list-length}, {list-position}, {list-name}, {output-ext}
--m3u [M3U] Name of the m3u file to save the songs to. Defaults to {list[0]}.m3u If you want to generate a m3u for each list in the query use {list-name}, If you want to generate a m3u file based on the first
list in the query use {list[0]}, (0 is the first list in the query, 1 is the second, etc. songs don't count towards the list number)
--overwrite {skip,metadata,force}
Overwrite existing files.
--restrict Restrict filenames to ASCII only
--print-errors Print errors (wrong songs, failed downloads etc) on exit, useful for long playlist
--sponsor-block Use the sponsor block to download songs from yt/ytm.
--archive ARCHIVE Specify the file name for an archive of already downloaded songs
--playlist-numbering When downloading a playlist, convert all tracks into a single album, using the playlist icon as the album art.
--playlist-numbering Sets each track in a playlist to have the playlist's name as its album, and album art as the playlist's icon
Web options:
--host HOST The host to use for the web server.
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ theme:
name: Switch to light mode

plugins:
- search
- gen-files:
scripts:
- scripts/docs/gen_ref_nav.py
- search
- literate-nav:
nav_file: SUMMARY.md
- section-index
Expand Down
Loading

0 comments on commit 49abfa2

Please sign in to comment.