test meta type for values
This commit is contained in:
parent
13cabf20f0
commit
01baf66bca
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user