Pass media to storage cdn_call

This commit is contained in:
erinhmclark
2025-02-06 22:01:55 +00:00
parent 266c7a14e6
commit e9ad1e1b85
3 changed files with 49 additions and 113 deletions

View File

@@ -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