v0.4.13: Fix Ohli24 CSS side effects and improve metadata sync

This commit is contained in:
2026-01-02 21:40:22 +09:00
parent 15a81cc344
commit 44f8ee54d0
12 changed files with 406 additions and 1019 deletions

View File

@@ -150,7 +150,13 @@ class AnimeQueueEntity(FfmpegQueueEntity):
# Anilife uses _id
if hasattr(model_class, 'get_by_anilife_id') and info.get('_id'):
db_entity = model_class.get_by_anilife_id(info['_id'])
# Linkkf/Ohli24 might use different identifiers
# Ohli24 uses _id (via get_by_ohli24_id)
elif hasattr(model_class, 'get_by_ohli24_id') and info.get('_id'):
db_entity = model_class.get_by_ohli24_id(info['_id'])
# Linkkf uses _id (via get_by_linkkf_id)
elif hasattr(model_class, 'get_by_linkkf_id') and info.get('_id'):
db_entity = model_class.get_by_linkkf_id(info['_id'])
# Other modules might use get_by_id with db_id
elif hasattr(model_class, 'get_by_id') and info.get('db_id'):
db_entity = model_class.get_by_id(info['db_id'])
elif hasattr(model_class, 'get_by_content_code') and info.get('content_code'):