Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Set arguments in the commandline like this: `-ie False` or `--codec mp3`. Wrap c
| Encoding Options | Command Line Config Flag | Description | Default Value |
|------------------------------|-------------------------------------|------------------------------------------------------------------------------------------|---------------|
| `DOWNLOAD_FORMAT` | `--codec`, `--download-format` | Audio codec of downloads, copy avoids remuxing (aac, fdk_aac, mp3, ogg, opus, vorbis) | copy |
| `DOWNLOAD_QUALITY` | `-q`, `--download-quality` | Audio quality of downloads, auto selects highest available (normal, high, very_high*) | auto |
| `DOWNLOAD_QUALITY` | `-q`, `--download-quality` | Audio quality of downloads, auto selects highest available (normal, high, very_high*, lossless*) | auto |
| `TRANSCODE_BITRATE` | `-b`, `--bitrate` | Overwrite the bitrate for FFMPEG encoding (not recommended) | |

| Archive Options | Command Line Config Flag | Description | Default Value |
Expand Down Expand Up @@ -194,7 +194,7 @@ Set arguments in the commandline like this: `-ie False` or `--codec mp3`. Wrap c
| `PRINT_API_ERRORS` | `--print-api-errors` | Show API errors | True |
| `FFMPEG_LOG_LEVEL` | `--ffmpeg-log-level` | FFMPEG's logged level of detail when completing a transcoded download | error |

\* very_high (320k) is limited to Premium accounts only
\* very_high (320k) and lossless is limited to Premium accounts only

</details>

Expand Down
9 changes: 5 additions & 4 deletions zotify/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,11 @@ def client(args: Namespace) -> None:
Printer.splash()

quality_options = {
'auto': AudioQuality.VERY_HIGH if Zotify.check_premium() else AudioQuality.HIGH,
'normal': AudioQuality.NORMAL,
'high': AudioQuality.HIGH,
'very_high': AudioQuality.VERY_HIGH
"auto": AudioQuality.VERY_HIGH if Zotify.check_premium() else AudioQuality.HIGH,
"normal": AudioQuality.NORMAL,
"high": AudioQuality.HIGH,
"very_high": AudioQuality.VERY_HIGH,
"lossless": AudioQuality.LOSSLESS,
}
Zotify.DOWNLOAD_QUALITY = quality_options.get(Zotify.CONFIG.get_download_quality(),
quality_options["auto"])
Expand Down