mirror of
https://github.com/xhongc/music-tag-web.git
synced 2026-04-26 03:31:26 +08:00
feature:支持音乐指纹识别,即使没有元数据也可以识别音乐
This commit is contained in:
BIN
component/mz/fpcalc_linux
Executable file
BIN
component/mz/fpcalc_linux
Executable file
Binary file not shown.
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user