summaryrefslogtreecommitdiff
path: root/overnight_transcoder.py
diff options
context:
space:
mode:
authorTom Flux <tom@tomflux.xyz>2026-07-07 11:30:54 +0100
committerTom Flux <tom@tomflux.xyz>2026-07-07 11:30:54 +0100
commit4fff74a6378faa771cf5898d7cd1e43cfdb83039 (patch)
tree772de0c51192654b4e5f578defa6cd83ca29d649 /overnight_transcoder.py
parent7e446fe491a0acdad2b808f23938581a149c8d4c (diff)
dont crash
Diffstat (limited to 'overnight_transcoder.py')
-rwxr-xr-xovernight_transcoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/overnight_transcoder.py b/overnight_transcoder.py
index 6c38724..28048f9 100755
--- a/overnight_transcoder.py
+++ b/overnight_transcoder.py
@@ -354,7 +354,7 @@ def pick_audio_settings(info: dict) -> dict:
}
-
+def get_cached_file(conn: sqlite3.Connection, filepath: str, size: int, mtime: float) -> Optional[dict]:
"""Get cached file info if file hasn't changed. Returns dict or None."""
cursor = conn.execute(
"""SELECT video_codec, audio_codec, is_hevc, status