Compatibility with Python <3.9, remove CMD window pop-ups on Windows, add missing gaia dll

This commit is contained in:
2025-08-07 20:43:30 -04:00
parent 6bda2d471f
commit a31f2ad341
3 changed files with 35 additions and 27 deletions

View File

@@ -1,5 +1,6 @@
import os
import sys
from typing import List, Tuple
from picard.config import BoolOption, TextOption, IntOption
PLUGIN_NAME = "AcousticBrainz-ng"
@@ -23,7 +24,7 @@ PLUGIN_LICENSE = "GPL-2.0-or-later"
PLUGIN_LICENSE_URL = "https://www.gnu.org/licenses/gpl-2.0.html"
PLUGIN_USER_GUIDE_URL = "https://example.com" # TODO: Update with actual user guide URL
REQUIRED_MODELS: list[tuple[str, str]] = [
REQUIRED_MODELS: List[Tuple[str, str]] = [
("msd-musicnn-1", "msd"),
("mood_acoustic-musicnn-mtt-2", "mood_acoustic"),
("mood_aggressive-musicnn-mtt-2", "mood_aggressive"),
@@ -38,13 +39,13 @@ REQUIRED_MODELS: list[tuple[str, str]] = [
("voice_instrumental-musicnn-msd-2", "voice_instrumental")
]
OPTIONAL_MODELS: list[tuple[str, str]] = [
OPTIONAL_MODELS: List[Tuple[str, str]] = [
("genre_electronic-musicnn-msd-2", "genre_electronic"),
("genre_rosamerica-musicnn-msd-2", "genre_rosamerica"),
("genre_tzanetakis-musicnn-msd-2", "genre_tzanetakis")
]
REQUIRED_BINARIES: list[str] = [
REQUIRED_BINARIES: List[str] = [
"streaming_extractor_music",
"streaming_musicnn_predict",
"streaming_md5",