Formatting

This commit is contained in:
nathom 2021-04-19 16:57:57 -07:00
parent 4d12d4141f
commit bb919b8cb0
2 changed files with 13 additions and 5 deletions

View file

@ -1,8 +1,8 @@
import concurrent.futures
import logging import logging
import os import os
import re import re
import sys import sys
import concurrent.futures
from getpass import getpass from getpass import getpass
from hashlib import md5 from hashlib import md5
from string import Formatter from string import Formatter
@ -12,6 +12,7 @@ import click
import requests import requests
from tqdm import tqdm from tqdm import tqdm
from .bases import Track, Video
from .clients import DeezerClient, QobuzClient, SoundCloudClient, TidalClient from .clients import DeezerClient, QobuzClient, SoundCloudClient, TidalClient
from .config import Config from .config import Config
from .constants import ( from .constants import (
@ -24,14 +25,13 @@ from .constants import (
URL_REGEX, URL_REGEX,
) )
from .db import MusicDB from .db import MusicDB
from .bases import Track, Video
from .tracklists import Album, Artist, Label, Playlist, Tracklist
from .exceptions import ( from .exceptions import (
AuthenticationError, AuthenticationError,
NonStreamable, NonStreamable,
NoResultsFound, NoResultsFound,
ParsingError, ParsingError,
) )
from .tracklists import Album, Artist, Label, Playlist, Tracklist
from .utils import extract_interpreter_url from .utils import extract_interpreter_url
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -306,7 +306,9 @@ class MusicDL(list):
] ]
# only for the progress bar # only for the progress bar
for f in tqdm( 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 pass

View file

@ -18,7 +18,13 @@ from .constants import ALBUM_KEYS, FLAC_MAX_BLOCKSIZE, FOLDER_FORMAT
from .db import MusicDB from .db import MusicDB
from .exceptions import InvalidSourceError, NonStreamable from .exceptions import InvalidSourceError, NonStreamable
from .metadata import TrackMetadata 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__) logger = logging.getLogger(__name__)