move some files around
This commit is contained in:
parent
36b902e227
commit
5272a3d356
4
main.py
4
main.py
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from musicutil.process_command import ProcessCommand
|
from musicutil.commands.process_command import ProcessCommand
|
||||||
from musicutil.copy_command import CopyCommand
|
from musicutil.commands.copy_command import CopyCommand
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Highly Opinionated Music ')
|
parser = argparse.ArgumentParser(description='Highly Opinionated Music ')
|
||||||
subparsers = parser.add_subparsers(dest="subparser_name")
|
subparsers = parser.add_subparsers(dest="subparser_name")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from .types import File
|
from ..types import File
|
||||||
from .scan_for_music import scan_for_music
|
from ..utils.scan_for_music import scan_for_music
|
||||||
from .load_tag_information import load_tag_information
|
from ..utils.load_tag_information import load_tag_information
|
||||||
|
|
||||||
from os import makedirs as make_directories
|
from os import makedirs as make_directories
|
||||||
from os.path import exists as path_exists
|
from os.path import exists as path_exists
|
|
@ -1,7 +1,7 @@
|
||||||
from .types import File, Tags
|
from ..types import File, Tags
|
||||||
from .scan_for_music import scan_for_music
|
from ..utils.scan_for_music import scan_for_music
|
||||||
from .load_tag_information import load_tag_information
|
from ..utils.load_tag_information import load_tag_information
|
||||||
from .substitutions import reduce_to_ascii_and_substitute
|
from ..utils.substitutions import reduce_to_ascii_and_substitute
|
||||||
|
|
||||||
from copy import deepcopy as deep_copy
|
from copy import deepcopy as deep_copy
|
||||||
from os import rename as rename_file
|
from os import rename as rename_file
|
|
@ -1,4 +1,4 @@
|
||||||
from .types import File, Tags
|
from ..types import File, Tags
|
||||||
|
|
||||||
from mutagen.mp3 import EasyMP3 as MP3
|
from mutagen.mp3 import EasyMP3 as MP3
|
||||||
from mutagen.flac import FLAC
|
from mutagen.flac import FLAC
|
|
@ -1,8 +1,8 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from os.path import relpath
|
from os.path import relpath
|
||||||
|
|
||||||
from .types import File
|
from ..types import File
|
||||||
from .meta import supported_formats
|
from ..meta import supported_formats
|
||||||
|
|
||||||
def scan_for_music(src: str) -> list[File]:
|
def scan_for_music(src: str) -> list[File]:
|
||||||
files: list[File] = []
|
files: list[File] = []
|
|
@ -1,4 +1,4 @@
|
||||||
from .meta import sub_char, substitutions
|
from ..meta import sub_char, substitutions
|
||||||
from fold_to_ascii import fold
|
from fold_to_ascii import fold
|
||||||
|
|
||||||
def reduce_to_ascii_and_substitute(filename: str):
|
def reduce_to_ascii_and_substitute(filename: str):
|
Loading…
Reference in a new issue