feature:支持音乐指纹识别,即使没有元数据也可以识别音乐

This commit is contained in:
charlesxie
2023-07-14 16:30:47 +08:00
parent 745a9b1d12
commit c1e90fe4d3
2 changed files with 6 additions and 1 deletions

BIN
component/mz/fpcalc_linux Executable file

Binary file not shown.

View File

@@ -1,8 +1,13 @@
import os
import sys
from django.conf import settings
os.environ["FPCALC"] = os.path.join(settings.BASE_DIR, "component", "mz", "fpcalc")
if sys.platform == 'darwin':
os.environ["FPCALC"] = os.path.join(settings.BASE_DIR, "component", "mz", "fpcalc")
else:
os.environ["FPCALC"] = os.path.join(settings.BASE_DIR, "component", "mz", "fpcalc_linux")
from component.mz import acoustid
apikey = "cSpUJKpD"