mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-03 19:53:56 +08:00
feat: fix search, poster serving, and add hover overlay UI for cards
- Fix search store exports to match component expectations (inputValue, bangumiList, onSearch) and transform data to SearchResult format - Fix poster endpoint path check that incorrectly blocked all requests - Add resolvePosterUrl utility to handle both external URLs and local paths - Move tags into hover overlay on homepage cards and calendar cards - Show title and tags on poster hover with dark semi-transparent styling - Add downloader API, store, and page - Update backend to async patterns and uv migration changes - Remove .claude/settings.local.json from tracking Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,8 +31,8 @@ class TitleParser:
|
||||
logger.warning(f"Cannot parse {torrent_path} with error {e}")
|
||||
|
||||
@staticmethod
|
||||
def tmdb_parser(title: str, season: int, language: str):
|
||||
tmdb_info = tmdb_parser(title, language)
|
||||
async def tmdb_parser(title: str, season: int, language: str):
|
||||
tmdb_info = await tmdb_parser(title, language)
|
||||
if tmdb_info:
|
||||
logger.debug(f"TMDB Matched, official title is {tmdb_info.title}")
|
||||
tmdb_season = tmdb_info.last_season if tmdb_info.last_season else season
|
||||
@@ -43,8 +43,8 @@ class TitleParser:
|
||||
return title, season, None, None
|
||||
|
||||
@staticmethod
|
||||
def tmdb_poster_parser(bangumi: Bangumi):
|
||||
tmdb_info = tmdb_parser(bangumi.official_title, settings.rss_parser.language)
|
||||
async def tmdb_poster_parser(bangumi: Bangumi):
|
||||
tmdb_info = await tmdb_parser(bangumi.official_title, settings.rss_parser.language)
|
||||
if tmdb_info:
|
||||
logger.debug(f"TMDB Matched, official title is {tmdb_info.title}")
|
||||
bangumi.poster_link = tmdb_info.poster_link
|
||||
@@ -104,5 +104,5 @@ class TitleParser:
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def mikan_parser(homepage: str) -> tuple[str, str]:
|
||||
return mikan_parser(homepage)
|
||||
async def mikan_parser(homepage: str) -> tuple[str, str]:
|
||||
return await mikan_parser(homepage)
|
||||
|
||||
Reference in New Issue
Block a user