From c683394228633ac9c152b16dc33bac946c48c643 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 23 May 2024 16:13:47 +0200 Subject: [PATCH] feat: imports --- music_kraken/download/page_attributes.py | 45 +++++++++--------------- 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/music_kraken/download/page_attributes.py b/music_kraken/download/page_attributes.py index c897cfe..0622bf1 100644 --- a/music_kraken/download/page_attributes.py +++ b/music_kraken/download/page_attributes.py @@ -1,37 +1,26 @@ -from typing import Tuple, Type, Dict, Set, Optional, List +import logging +import re from collections import defaultdict from pathlib import Path -import re -import logging +from typing import Dict, List, Optional, Set, Tuple, Type -from . import FetchOptions, DownloadOptions -from .results import SearchResults -from ..objects import ( - DatabaseObject as DataObject, - Collection, - Target, - Source, - Options, - Song, - Album, - Artist, - Label, -) -from ..audio import write_metadata_to_target, correct_codec -from ..utils import output, BColors -from ..utils.string_processing import fit_to_file_system -from ..utils.config import youtube_settings, main_settings -from ..utils.path_manager import LOCATIONS -from ..utils.enums import SourceType, ALL_SOURCE_TYPES -from ..utils.support_classes.download_result import DownloadResult -from ..utils.support_classes.query import Query -from ..utils.support_classes.download_result import DownloadResult +from ..audio import correct_codec, write_metadata_to_target +from ..objects import Album, Artist, Collection +from ..objects import DatabaseObject as DataObject +from ..objects import Label, Options, Song, Source, Target +from ..pages import get_pages, scan_for_pages +from ..utils import BColors, output +from ..utils.config import main_settings, youtube_settings +from ..utils.enums import ALL_SOURCE_TYPES, SourceType from ..utils.exception import MKMissingNameException from ..utils.exception.download import UrlNotFoundException +from ..utils.path_manager import LOCATIONS from ..utils.shared import DEBUG_PAGES - -from ..pages import scan_for_pages, get_pages - +from ..utils.string_processing import fit_to_file_system +from ..utils.support_classes.download_result import DownloadResult +from ..utils.support_classes.query import Query +from . import DownloadOptions, FetchOptions +from .results import SearchResults fetch_map = { Song: "fetch_song",