mirror of
https://github.com/nathom/streamrip.git
synced 2025-06-06 09:41:19 -04:00
parent
d3ba6e027a
commit
2d35001793
4 changed files with 9 additions and 4 deletions
|
@ -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