Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
Rename project to Spotify Web Downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
glomatico committed Mar 19, 2024
1 parent e3cc0a2 commit 4123ecd
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
__pycache__
!spotify_aac_downloader
!spotify_web_downloader
!.gitignore
!pyproject.toml
!README.md
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Spotify AAC Downloader
# Spotify Web Downloader
A Python script to download songs/albums/playlists directly from Spotify in 256kbps/128kbps AAC.

## Features
Expand All @@ -10,32 +10,32 @@ A Python script to download songs/albums/playlists directly from Spotify in 256k
1. Install Python 3.7 or higher
2. Add [FFmpeg](https://ffmpeg.org/download.html) to PATH
* Older versions of FFmpeg may not work
3. Place your cookies in the same folder that you will run spotify-aac-downloader as `cookies.txt`
3. Place your cookies in the same folder that you will run spotify-web-downloader as `cookies.txt`
* You can export your cookies by using this Google Chrome extension on Spotify website: https://chrome.google.com/webstore/detail/open-cookiestxt/gdocmgbfkjnnpapoeobnolbbkoibbcif. Make sure to be logged in.
4. Install spotify-aac-downloader using pip
4. Install spotify-web-downloader using pip
```bash
pip install spotify-aac-downloader
pip install spotify-web-downloader
```

## Examples
* Download a song
```bash
spotify-aac-downloader "https://open.spotify.com/track/18gqCQzqYb0zvurQPlRkpo"
spotify-web-downloader "https://open.spotify.com/track/18gqCQzqYb0zvurQPlRkpo"
```
* Download an album
```bash
spotify-aac-downloader "https://open.spotify.com/album/0r8D5N674HbTXlR3zNxeU1"
spotify-web-downloader "https://open.spotify.com/album/0r8D5N674HbTXlR3zNxeU1"
```

## Configuration
spotify-aac-downloader can be configured using the command line arguments or the config file. The config file is created automatically when you run spotify-aac-downloader for the first time at `~/.spotify-aac-downloader/config.json` on Linux and `%USERPROFILE%\.spotify-aac-downloader\config.json` on Windows. Config file values can be overridden using command line arguments.
spotify-web-downloader can be configured using the command line arguments or the config file. The config file is created automatically when you run spotify-web-downloader for the first time at `~/.spotify-web-downloader/config.json` on Linux and `%USERPROFILE%\.spotify-web-downloader\config.json` on Windows. Config file values can be overridden using command line arguments.
| Command line argument / Config file key | Description | Default value |
| --------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------- |
| `-f`, `--final-path` / `final_path` | Path where the downloaded files will be saved. | `./Spotify` |
| `-t`, `--temp-path` / `temp_path` | Path where the temporary files will be saved. | `./temp` |
| `-c`, `--cookies-location` / `cookies_location` | Location of the cookies file. | `./cookies.txt` |
| `-w`, `--wvd-location` / `wvd_location` | Location of the .wvd file. | `null` |
| `--config-location` / - | Location of the config file. | `<home_folder>/.spotify-aac-downloader/config.json` |
| `--config-location` / - | Location of the config file. | `<home_folder>/.spotify-web-downloader/config.json` |
| `--ffmpeg-location` / `ffmpeg_location` | Location of the FFmpeg binary. | `ffmpeg` |
| `--aria2c-location` / `aria2c_location` | Location of the aria2c binary. | `aria2c` |
| `--template-folder-album` / `template_folder_album` | Template of the album folders as a format string. | `{album_artist}/{album}` |
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "spotify-aac-downloader"
name = "spotify-web-downloader"
description = "Download songs/albums/playlists directly from Spotify in AAC"
requires-python = ">=3.7"
authors = [{ name = "glomatico" }]
Expand All @@ -8,11 +8,11 @@ readme = "README.md"
dynamic = ["version"]

[project.urls]
repository = "https://github.com/glomatico/spotify-aac-downloader"
repository = "https://github.com/glomatico/spotify-web-downloader"

[build-system]
requires = ["flit_core"]
build-backend = "flit_core.buildapi"

[project.scripts]
spotify-aac-downloader = "spotify_aac_downloader.cli:main"
spotify-web-downloader = "spotify_web_downloader.cli:main"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def no_config_callback(
@click.option(
"--config-location",
type=Path,
default=Path.home() / ".spotify-aac-downloader" / "config.json",
default=Path.home() / ".spotify-web-downloader" / "config.json",
help="Location of the config file.",
)
@click.option(
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4123ecd

Please sign in to comment.