mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 13:18:28 +03:00
Pass media to storage cdn_call
This commit is contained in:
@@ -65,7 +65,7 @@ class Media:
|
||||
|
||||
def is_stored(self, in_storage) -> bool:
|
||||
# checks if the media is already stored in the given storage
|
||||
return len(self.urls) > 0 and any([u for u in self.urls if in_storage.get_cdn_url() in u])
|
||||
return len(self.urls) > 0 and any([u for u in self.urls if in_storage.get_cdn_url(self) in u])
|
||||
|
||||
def set(self, key: str, value: Any) -> Media:
|
||||
self.properties[key] = value
|
||||
|
||||
Reference in New Issue
Block a user