shuffling of stufflings

This commit is contained in:
Lynne Megido 2021-01-18 22:24:31 +10:00
parent 55034017f7
commit 4f862879e2
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
3 changed files with 7 additions and 7 deletions

View file

@ -24,3 +24,4 @@ fully_supported: List[str] = ["ogg", "flac", "mp3", "m4a", "wav", "aiff"]
MutagenFile = Union[MP3, FLAC, OggVorbis, mutagen.FileType] MutagenFile = Union[MP3, FLAC, OggVorbis, mutagen.FileType]
MutagenTags = Union[ID3Tags, Tags, mutagen.oggvorbis.OggVCommentDict] MutagenTags = Union[ID3Tags, Tags, mutagen.oggvorbis.OggVCommentDict]
sanitisation_regex = re.compile(r"[?\\/:|*\"<>]") sanitisation_regex = re.compile(r"[?\\/:|*\"<>]")

View file

@ -5,12 +5,7 @@
# input: a .zip from bandcamp # input: a .zip from bandcamp
# output: it organises it, adds cover art, puts it in the right place... # output: it organises it, adds cover art, puts it in the right place...
# pycharm tells me some of these classes shouldn't be imported because they're not declared in __all__. from bcao import *
# however, the mutagen docs show example code where someone creates a mutagen.flac.Picture by referring to it as
# Picture(), implying that they had imported mutagen.flac.Picture, and therefore i'm right and the computer is WRONG
# https://mutagen.readthedocs.io/en/latest/api/flac.html#mutagen.Picture.data
from . import *
from bcao.song_info import SongInfo from bcao.song_info import SongInfo
import argparse import argparse

View file

@ -1,4 +1,4 @@
from . import * from bcao import *
import re import re
from os import path from os import path
@ -6,6 +6,10 @@ from typing import Union, List, Dict
from pathlib import Path from pathlib import Path
from base64 import b64encode from base64 import b64encode
# pycharm tells me some of these classes shouldn't be imported because they're not declared in __all__.
# however, the mutagen docs show example code where someone creates a mutagen.flac.Picture by referring to it as
# Picture(), implying that they had imported mutagen.flac.Picture, and therefore i'm right and the computer is WRONG
# https://mutagen.readthedocs.io/en/latest/api/flac.html#mutagen.Picture.data
import mutagen import mutagen
# noinspection PyProtectedMember # noinspection PyProtectedMember
from mutagen.flac import Picture from mutagen.flac import Picture