WIP: feature/cleanup_programming_interface #40
@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user