2024-05-24 13:46:42 +00:00
|
|
|
import logging
|
2024-05-23 12:24:20 +00:00
|
|
|
from collections import defaultdict
|
2024-05-24 13:46:42 +00:00
|
|
|
from pathlib import Path
|
2024-05-23 15:27:24 +00:00
|
|
|
from typing import Dict, Generator, List, Set, Type
|
2024-05-23 12:24:20 +00:00
|
|
|
|
2024-05-24 13:46:42 +00:00
|
|
|
"""
|
2024-05-23 15:27:24 +00:00
|
|
|
from ._bandcamp import Bandcamp
|
2024-05-23 12:24:20 +00:00
|
|
|
from ._encyclopaedia_metallum import EncyclopaediaMetallum
|
2024-05-23 15:27:24 +00:00
|
|
|
from ._genius import Genius
|
2024-05-23 12:24:20 +00:00
|
|
|
from ._musify import Musify
|
|
|
|
from ._youtube import YouTube
|
|
|
|
from ._youtube_music import YoutubeMusic
|
2024-05-24 13:46:42 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
_page_directory = Path(__file__).parent
|
|
|
|
_stem_blacklist = set(["__pycache__", "__init__"])
|
|
|
|
|
|
|
|
for _file in _page_directory.iterdir():
|
|
|
|
if _file.stem in _stem_blacklist:
|
|
|
|
continue
|
|
|
|
|
|
|
|
logging.debug(f"importing {_file.absolute()}")
|
|
|
|
exec(f"from . import {_file.stem}")
|