mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
* A download records the sha256 of its files in the wrolpi section A video download writes `wrolpi.sha256` into its .info.json; an archive download writes it into its .readability.json. Sums are keyed by suffix, so a rename or Reorganize keeps them valid, and the metadata JSON holding them is not hashed. Large files are hashed in execute_download (in a thread, without the DB session). Finalize reuses those sums while a file's mtime is unchanged and hashes only files finalize created or changed (a converted poster, the ffprobe json). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * A video download hashes only for an info json, and finalize never suspends Finalize holds the write session; awaiting the hash let the loop run a switch whose write waited on that session, stalling the loop for the busy timeout. Finalize now hashes inline: the large files were hashed in execute_download. A download that writes no info json has nowhere to keep the sums, so it no longer reads its files to hash them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| archive | ||
| docs | ||
| flasher | ||
| inventory | ||
| map | ||
| repos | ||
| videos | ||
| zim | ||
| __init__.py | ||