fix: system_all_log.html ReferenceError and other updates

This commit is contained in:
2026-01-17 14:06:27 +09:00
parent cf19d79ef8
commit 2681f5a096
24 changed files with 820 additions and 141 deletions

37
test_metadata_search.py Normal file
View File

@@ -0,0 +1,37 @@
import sys
import os
import traceback
# Add dev plugins path to sys.path
dev_path = '/Volumes/WD/Users/Work/python/ff_dev_plugins'
if dev_path not in sys.path:
sys.path.insert(0, dev_path)
# Mocking Logger and F for direct import test
class MockLogger:
def debug(self, msg, *args): print(f"DEBUG: {msg % args if args else msg}")
def info(self, msg, *args): print(f"INFO: {msg % args if args else msg}")
def error(self, msg, *args): print(f"ERROR: {msg % args if args else msg}")
def warning(self, msg, *args): print(f"WARNING: {msg % args if args else msg}")
import logging
logging.basicConfig(level=logging.DEBUG)
# We need to set up the environment so metadata can be imported
os.environ['PYTHONPATH'] = dev_path
try:
# Try importing directly from the plugin
# metadata/mod_ftv.py contains ModuleFtv
from metadata.mod_ftv import ModuleFtv
from support_site import SiteTmdbFtv
print("Searching for '비밀의 아이프리' with year 2024...")
# SiteTmdbFtv.search is a classmethod
result = SiteTmdbFtv.search('비밀의 아이프리', year=2024)
print(f"Result: {result}")
except Exception as e:
print(f"Error: {e}")
traceback.print_exc()