bug fix: missing filename on url download

This commit is contained in:
msramalho
2026-03-02 17:01:16 +00:00
parent 5d6c5ac2b1
commit e9a92272c5
12 changed files with 331 additions and 21 deletions

View File

@@ -181,6 +181,9 @@ class Metadata:
media_hashes = set()
new_media = []
for m in self.media:
if not m.filename:
new_media.append(m)
continue
h = m.get("hash")
if not h:
h = calculate_hash_in_chunks(hashlib.sha256(), int(1.6e7), m.filename)