feat: 修复插件市场空白和API缓存 (#6253)

This commit is contained in:
jxxghp
2026-08-08 21:40:06 +08:00
committed by GitHub
parent 173b8608e9
commit 4570a7b74a
10 changed files with 431 additions and 50 deletions

View File

@@ -165,6 +165,7 @@ class ListenBrainzModule(_ModuleBase):
)
@classmethod
@cached(maxsize=settings.CONF.listenbrainz, ttl=settings.CONF.meta, skip_none=True)
def _request_json(
cls,
path: str,

View File

@@ -2,6 +2,7 @@ import threading
import time
from typing import Any, Optional, Tuple, Union
from app.core.cache import cached
from app.core.config import settings
from app.core.music import (
MUSIC_ENTITY_ALBUM,
@@ -582,6 +583,7 @@ class MusicBrainzModule(_ModuleBase):
cls._last_request_at = time.monotonic()
@classmethod
@cached(maxsize=settings.CONF.musicbrainz, ttl=settings.CONF.meta, skip_none=True)
def _request_json(
cls,
path: str,