mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-14 07:04:51 -04:00
Run isort and other cleanup
This commit is contained in:
parent
ca67173162
commit
8d0dc7fb7f
12 changed files with 86 additions and 95 deletions
22
rip/cli.py
22
rip/cli.py
|
@ -1,6 +1,8 @@
|
|||
"""The streamrip command line interface."""
|
||||
import click
|
||||
import logging
|
||||
|
||||
import click
|
||||
|
||||
from streamrip import __version__
|
||||
|
||||
logging.basicConfig(level="WARNING")
|
||||
|
@ -303,12 +305,14 @@ def lastfm(ctx, source, url):
|
|||
@click.pass_context
|
||||
def config(ctx, **kwargs):
|
||||
"""Manage the streamrip configuration file."""
|
||||
from streamrip.clients import TidalClient
|
||||
from .constants import CONFIG_PATH
|
||||
from hashlib import md5
|
||||
from getpass import getpass
|
||||
import shutil
|
||||
import os
|
||||
import shutil
|
||||
from getpass import getpass
|
||||
from hashlib import md5
|
||||
|
||||
from streamrip.clients import TidalClient
|
||||
|
||||
from .constants import CONFIG_PATH
|
||||
|
||||
global config
|
||||
if kwargs["reset"]:
|
||||
|
@ -398,11 +402,13 @@ def convert(ctx, **kwargs):
|
|||
$ rip convert ALAC --sampling-rate 48000 /my/music
|
||||
|
||||
"""
|
||||
from streamrip import converter
|
||||
import concurrent.futures
|
||||
from tqdm import tqdm
|
||||
import os
|
||||
|
||||
from tqdm import tqdm
|
||||
|
||||
from streamrip import converter
|
||||
|
||||
codec_map = {
|
||||
"FLAC": converter.FLAC,
|
||||
"ALAC": converter.ALAC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue