Proxy media that aren't cached

This commit is contained in:
Thomas Sileo
2019-08-18 11:40:57 +02:00
parent 9746508dab
commit 5e4f57a8b3
2 changed files with 21 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ def _get_file_url(url, size, kind) -> str:
# MEDIA_CACHE.cache(url, kind)
_logger.error(f"cache not available for {url}/{size}/{kind}")
return url
return f"/p/{url}"
@filters.app_template_filter()