thumbnail_url can be None

This commit is contained in:
Andrea Spacca 2021-09-04 13:13:50 +02:00
parent ed7aa55ef0
commit cd36ca68d5

View File

@ -948,7 +948,10 @@ class ProxyDaemon:
):
try:
content["url"] = await self._decrypt_uri(content["url"], client)
if "info" in content and "thumbnail_url" in content["info"]:
if (
"info" in content and "thumbnail_url" in content["info"]
and not content["info"]["thumbnail_url"] == None
):
content["info"]["thumbnail_url"] = await self._decrypt_uri(
content["info"]["thumbnail_url"], client
)