fix: withhold a mister hash only beside a size

An entry that states no size has none to contradict: the hash is written
as before.
This commit is contained in:
Abdessamad Derraz committed 2026-10-21 05:13:46 +02:00
1 parent d48e81861c
commit 4670e0442e
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ class Exporter(BaseExporter):
# no file, and the entry is left as MiSTer wrote it.
continue
size = fe.size()
if md5 != entry.get("hash") and not size:
if md5 != entry.get("hash") and entry.get("size") and not size:
# Downloader refuses an entry without an integer size
# (db_entity.py:187) and compares it after each fetch
# (fetch_file_worker.py:127). The old size beside the new