feat: thumbnails added

This commit is contained in:
kodi
2026-03-12 12:27:47 +01:00
parent 76f5ed3e98
commit 3b376fa8ff
30 changed files with 955 additions and 3 deletions
@@ -147,6 +147,14 @@ class FilesystemAdapter:
remaining -= len(chunk)
yield chunk
async def stream_file(self, path: Path, chunk_size: int = 1024 * 1024):
with path.open("rb") as handle:
while True:
chunk = handle.read(chunk_size)
if not chunk:
break
yield chunk
@staticmethod
def modified_iso(path: Path) -> str:
stat = path.stat()