feat: imports

This commit is contained in:
Hazel 2024-05-23 16:13:47 +02:00
parent aafbba3b1c
commit c683394228

View File

@ -1,37 +1,26 @@
from typing import Tuple, Type, Dict, Set, Optional, List import logging
import re
from collections import defaultdict from collections import defaultdict
from pathlib import Path from pathlib import Path
import re from typing import Dict, List, Optional, Set, Tuple, Type
import logging
from . import FetchOptions, DownloadOptions from ..audio import correct_codec, write_metadata_to_target
from .results import SearchResults from ..objects import Album, Artist, Collection
from ..objects import ( from ..objects import DatabaseObject as DataObject
DatabaseObject as DataObject, from ..objects import Label, Options, Song, Source, Target
Collection, from ..pages import get_pages, scan_for_pages
Target, from ..utils import BColors, output
Source, from ..utils.config import main_settings, youtube_settings
Options, from ..utils.enums import ALL_SOURCE_TYPES, SourceType
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 ..utils.exception import MKMissingNameException from ..utils.exception import MKMissingNameException
from ..utils.exception.download import UrlNotFoundException from ..utils.exception.download import UrlNotFoundException
from ..utils.path_manager import LOCATIONS
from ..utils.shared import DEBUG_PAGES from ..utils.shared import DEBUG_PAGES
from ..utils.string_processing import fit_to_file_system
from ..pages import scan_for_pages, get_pages 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 = { fetch_map = {
Song: "fetch_song", Song: "fetch_song",