Formatting

Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
nathom 2021-06-21 10:41:36 -07:00
parent 4f76b7557f
commit f92002d3aa
2 changed files with 5 additions and 3 deletions

View file

@ -26,13 +26,13 @@ from .config import Config
from .constants import ( from .constants import (
CONFIG_PATH, CONFIG_PATH,
DB_PATH, DB_PATH,
DEEZER_DYNAMIC_LINK_REGEX,
LASTFM_URL_REGEX, LASTFM_URL_REGEX,
MEDIA_TYPES, MEDIA_TYPES,
QOBUZ_INTERPRETER_URL_REGEX, QOBUZ_INTERPRETER_URL_REGEX,
SOUNDCLOUD_URL_REGEX, SOUNDCLOUD_URL_REGEX,
URL_REGEX, URL_REGEX,
YOUTUBE_URL_REGEX, YOUTUBE_URL_REGEX,
DEEZER_DYNAMIC_LINK_REGEX,
) )
from .db import MusicDB from .db import MusicDB
from .exceptions import ( from .exceptions import (
@ -43,7 +43,7 @@ from .exceptions import (
ParsingError, ParsingError,
) )
from .tracklists import Album, Artist, Label, Playlist, Tracklist from .tracklists import Album, Artist, Label, Playlist, Tracklist
from .utils import extract_interpreter_url, extract_deezer_dynamic_link from .utils import extract_deezer_dynamic_link, extract_interpreter_url
logger = logging.getLogger("streamrip") logger = logging.getLogger("streamrip")

View file

@ -337,7 +337,9 @@ def extract_interpreter_url(url: str) -> str:
) )
deezer_id_link_regex = re.compile(r"https://www\.deezer\.com/[a-z]{2}/(album|artist|playlist|track)/(\d+)") deezer_id_link_regex = re.compile(
r"https://www\.deezer\.com/[a-z]{2}/(album|artist|playlist|track)/(\d+)"
)
def extract_deezer_dynamic_link(url: str) -> Tuple[str, str]: def extract_deezer_dynamic_link(url: str) -> Tuple[str, str]: