mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-17 16:45:13 -04:00
parent
d3ba6e027a
commit
2d35001793
4 changed files with 9 additions and 4 deletions
|
@ -130,10 +130,13 @@ can be accessed with `rip config --open`.
|
|||
```yaml
|
||||
qobuz:
|
||||
quality: '1: 320kbps MP3, 2: 16/44.1, 3: 24/<=96, 4: 24/>=96'
|
||||
download_booklets: 'This will download booklet pdfs that are included with some albums'
|
||||
password: 'This is an md5 hash of the plaintext password'
|
||||
app_id: 'Do not change'
|
||||
secrets: 'Do not change'
|
||||
tidal:
|
||||
quality: '0, 1, 2, or 3'
|
||||
quality: '0: 256kbps AAC, 1: 320kbps AAC, 2: 16/44.1 "HiFi" FLAC, 3: 24/44.1 "MQA" FLAC'
|
||||
download_videos: 'This will download videos included in Video Albums.'
|
||||
user_id: 'Do not change any of the fields below'
|
||||
token_expiry: 'Tokens last 1 week after refresh. This is the Unix timestamp of the expiration time.'
|
||||
deezer: "Deezer doesn't require login"
|
||||
|
@ -163,6 +166,7 @@ qobuz:
|
|||
lastfm: 'Last.fm playlists are downloaded by searching for the titles of the tracks'
|
||||
source: 'The source on which to search for the tracks.'
|
||||
concurrent_downloads: 'Download (and convert) tracks all at once, instead of sequentially. If you are converting the tracks, and/or have fast internet, this will substantially improve processing speed.'
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ from .constants import (
|
|||
AGENT,
|
||||
AVAILABLE_QUALITY_IDS,
|
||||
DEEZER_BASE,
|
||||
DEEZER_DL,
|
||||
DEEZER_MAX_Q,
|
||||
QOBUZ_BASE,
|
||||
QOBUZ_FEATURED_KEYS,
|
||||
|
|
|
@ -3,7 +3,6 @@ import copy
|
|||
import logging
|
||||
import os
|
||||
import re
|
||||
from functools import cache
|
||||
from pprint import pformat
|
||||
|
||||
from ruamel.yaml import YAML
|
||||
|
@ -310,7 +309,6 @@ class ConfigDocumentation:
|
|||
# key, doc pairs are unique
|
||||
self.docs.remove(to_remove)
|
||||
|
||||
@cache
|
||||
def _get_key_regex(self, spaces, key):
|
||||
regex = rf"{spaces}{key}:(?:$|\s+?(.+))"
|
||||
return re.compile(regex)
|
||||
|
|
|
@ -333,6 +333,8 @@ class TrackMetadata:
|
|||
if self.__source == "qobuz":
|
||||
genres = re.findall(r"([^\u2192\/]+)", "/".join(self._genres))
|
||||
genres = set(genres)
|
||||
elif self.__source == 'deezer':
|
||||
genres = ', '.join(g['name'] for g in self._genres)
|
||||
|
||||
return ", ".join(genres)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue