mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-23 11:37:08 -04:00
Sort imports
Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
parent
f8e186fb60
commit
7fdc07b448
5 changed files with 6 additions and 5 deletions
|
@ -23,7 +23,7 @@ from pathvalidate import sanitize_filepath
|
||||||
|
|
||||||
from . import converter
|
from . import converter
|
||||||
from .clients import Client
|
from .clients import Client
|
||||||
from .constants import FLAC_MAX_BLOCKSIZE, TRACK_FORMAT, FOLDER_FORMAT
|
from .constants import FLAC_MAX_BLOCKSIZE, FOLDER_FORMAT, TRACK_FORMAT
|
||||||
from .exceptions import (
|
from .exceptions import (
|
||||||
InvalidQuality,
|
InvalidQuality,
|
||||||
InvalidSourceError,
|
InvalidSourceError,
|
||||||
|
|
|
@ -31,8 +31,8 @@ from .exceptions import (
|
||||||
IneligibleError,
|
IneligibleError,
|
||||||
InvalidAppIdError,
|
InvalidAppIdError,
|
||||||
InvalidAppSecretError,
|
InvalidAppSecretError,
|
||||||
MissingCredentials,
|
|
||||||
InvalidQuality,
|
InvalidQuality,
|
||||||
|
MissingCredentials,
|
||||||
)
|
)
|
||||||
from .spoofbuz import Spoofer
|
from .spoofbuz import Spoofer
|
||||||
from .utils import gen_threadsafe_session, get_quality
|
from .utils import gen_threadsafe_session, get_quality
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
import click
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
from pprint import pformat
|
from pprint import pformat
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
|
import click
|
||||||
import tomlkit
|
import tomlkit
|
||||||
|
|
||||||
from .constants import CONFIG_DIR, CONFIG_PATH
|
|
||||||
from . import __version__
|
from . import __version__
|
||||||
|
from .constants import CONFIG_DIR, CONFIG_PATH
|
||||||
from .exceptions import InvalidSourceError
|
from .exceptions import InvalidSourceError
|
||||||
|
|
||||||
logger = logging.getLogger("streamrip")
|
logger = logging.getLogger("streamrip")
|
||||||
|
|
|
@ -8,6 +8,7 @@ from collections import OrderedDict
|
||||||
from typing import Generator, Hashable, Iterable, Optional, Union
|
from typing import Generator, Hashable, Iterable, Optional, Union
|
||||||
|
|
||||||
from .constants import (
|
from .constants import (
|
||||||
|
ALBUM_KEYS,
|
||||||
COPYRIGHT,
|
COPYRIGHT,
|
||||||
COVER_SIZES,
|
COVER_SIZES,
|
||||||
FLAC_KEY,
|
FLAC_KEY,
|
||||||
|
@ -16,7 +17,6 @@ from .constants import (
|
||||||
PHON_COPYRIGHT,
|
PHON_COPYRIGHT,
|
||||||
TIDAL_Q_MAP,
|
TIDAL_Q_MAP,
|
||||||
TRACK_KEYS,
|
TRACK_KEYS,
|
||||||
ALBUM_KEYS,
|
|
||||||
)
|
)
|
||||||
from .exceptions import InvalidContainerError, InvalidSourceError
|
from .exceptions import InvalidContainerError, InvalidSourceError
|
||||||
from .utils import get_quality_id, safe_get, tidal_cover_url
|
from .utils import get_quality_id, safe_get, tidal_cover_url
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""Miscellaneous utility functions."""
|
"""Miscellaneous utility functions."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue