mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Index unsynced caption frames
This commit is contained in:
@@ -115,6 +115,13 @@ def _ensure_frame_caption_columns(con: sqlite3.Connection) -> None:
|
|||||||
for name, sql_type in additions.items():
|
for name, sql_type in additions.items():
|
||||||
if name not in columns:
|
if name not in columns:
|
||||||
con.execute(f"ALTER TABLE frames ADD COLUMN {name} {sql_type}")
|
con.execute(f"ALTER TABLE frames ADD COLUMN {name} {sql_type}")
|
||||||
|
con.execute(
|
||||||
|
"""
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_frames_unsynced_caption
|
||||||
|
ON frames(meili_synced_at)
|
||||||
|
WHERE caption IS NOT NULL
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def init_db(path: Path) -> None:
|
def init_db(path: Path) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user