mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-17 08:35:08 -04:00
Formatting
This commit is contained in:
parent
4d12d4141f
commit
bb919b8cb0
2 changed files with 13 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
|||
import concurrent.futures
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import concurrent.futures
|
||||
from getpass import getpass
|
||||
from hashlib import md5
|
||||
from string import Formatter
|
||||
|
@ -12,6 +12,7 @@ import click
|
|||
import requests
|
||||
from tqdm import tqdm
|
||||
|
||||
from .bases import Track, Video
|
||||
from .clients import DeezerClient, QobuzClient, SoundCloudClient, TidalClient
|
||||
from .config import Config
|
||||
from .constants import (
|
||||
|
@ -24,14 +25,13 @@ from .constants import (
|
|||
URL_REGEX,
|
||||
)
|
||||
from .db import MusicDB
|
||||
from .bases import Track, Video
|
||||
from .tracklists import Album, Artist, Label, Playlist, Tracklist
|
||||
from .exceptions import (
|
||||
AuthenticationError,
|
||||
NonStreamable,
|
||||
NoResultsFound,
|
||||
ParsingError,
|
||||
)
|
||||
from .tracklists import Album, Artist, Label, Playlist, Tracklist
|
||||
from .utils import extract_interpreter_url
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -306,7 +306,9 @@ class MusicDL(list):
|
|||
]
|
||||
# only for the progress bar
|
||||
for f in tqdm(
|
||||
concurrent.futures.as_completed(futures), total=len(futures), desc='Searching'
|
||||
concurrent.futures.as_completed(futures),
|
||||
total=len(futures),
|
||||
desc="Searching",
|
||||
):
|
||||
pass
|
||||
|
||||
|
|
|
@ -18,7 +18,13 @@ from .constants import ALBUM_KEYS, FLAC_MAX_BLOCKSIZE, FOLDER_FORMAT
|
|||
from .db import MusicDB
|
||||
from .exceptions import InvalidSourceError, NonStreamable
|
||||
from .metadata import TrackMetadata
|
||||
from .utils import clean_format, safe_get, tidal_cover_url, tqdm_download, get_container
|
||||
from .utils import (
|
||||
clean_format,
|
||||
get_container,
|
||||
safe_get,
|
||||
tidal_cover_url,
|
||||
tqdm_download,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue