refactor(serverlibrary): move suffixes to library
move audio/video suffixes to serverlibrary remove from audiobooks_library, ffmpeg_handling
This commit is contained in:
1 parent
bfe50a7fe8
commit
28767945e8
3 files changed
+3
-16
No files matched your search
@@ -6,15 +6,6 @@ import subprocess
|
||||
from pathlib import Path
|
||||
from difflib import SequenceMatcher
|
||||
|
||||
AUDIO_EXTENSIONS = {
|
||||
".mp3",
|
||||
".m4b",
|
||||
".m4a",
|
||||
}
|
||||
|
||||
RED = "\033[31m"
|
||||
GREEN = "\033[32m"
|
||||
RESET = "\033[0m"
|
||||
USE_KID3 = True
|
||||
def normalize(text: str) -> str:
|
||||
return re.sub(r"[^a-z0-9]", "", text.lower())
|
||||
|
||||
Reference in new issue
Block a user