test meta type for values

This commit is contained in:
Roy Olav Purser 2021-05-19 09:28:08 +02:00
parent 13cabf20f0
commit 01baf66bca
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -206,7 +206,7 @@ class UpstreamHandler():
data_new["og:video:width"] = data_raw.get("width") data_new["og:video:width"] = data_raw.get("width")
data_new["og:image:height"] = data_raw.get("thumbnail_height") data_new["og:image:height"] = data_raw.get("thumbnail_height")
data_new["og:image:width"] = data_raw.get("thumbnail_width") data_new["og:image:width"] = data_raw.get("thumbnail_width")
for elem in data_new: for elem in data_new.values():
if not isinstance(elem, str): if not isinstance(elem, str):
data_valid = False data_valid = False
break break