mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-11 04:38:29 +03:00
fix: excluding screenshots
This commit is contained in:
@@ -28,7 +28,7 @@ class PdqHashEnricher(Enricher):
|
||||
|
||||
for m in to_enrich.media:
|
||||
for media in m.all_inner_media(True):
|
||||
if media.is_image() and media.key != "screenshot":
|
||||
if media.is_image() and media.get("id") != "screenshot":
|
||||
if len(hd := self.calculate_pdq_hash(media.filename)):
|
||||
media.set("pdq_hash", hd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user