fix: don't try to encode cache with encoding none
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-04-26 18:42:39 +02:00
parent 1b0749a962
commit 2bf362c696
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ class Artwork:
return min(self._variant_mapping.values(), key=lambda x: x["deviation"])
def get_variant_name(self, variant: ArtworkVariant) -> str:
return f"artwork_{variant['width']}x{variant['height']}_{hash_url(variant['url'])}"
return f"artwork_{variant['width']}x{variant['height']}_{hash_url(variant['url']).replace('/', '_')}"
def __merge__(self, other: Artwork, override: bool = False) -> None:
for key, value in other._variant_mapping.items():