From 01baf66bca729621a4ed0240a239ddd0f78f26b0 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 19 May 2021 09:28:08 +0200 Subject: [PATCH] test meta type for values --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index d81822c..3c203da 100755 --- a/stream.py +++ b/stream.py @@ -206,7 +206,7 @@ class UpstreamHandler(): data_new["og:video:width"] = data_raw.get("width") data_new["og:image:height"] = data_raw.get("thumbnail_height") 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): data_valid = False break