mirror of
https://github.com/xhongc/music-tag-web.git
synced 2026-05-11 10:41:08 +08:00
13 lines
250 B
Python
13 lines
250 B
Python
import os
|
|
|
|
from django.conf import settings
|
|
|
|
os.environ["FPCALC"] = os.path.join(settings.BASE_DIR, "component", "mz", "fpcalc")
|
|
from component.mz import acoustid
|
|
|
|
apikey = "cSpUJKpD"
|
|
|
|
|
|
def get_acoustid(path):
|
|
return acoustid.match(apikey, path)
|