From c00f7adf3860602022544a64f1c2cd1f3ae5696d Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sun, 22 May 2022 15:37:20 +0200 Subject: [PATCH] Ignore empty video URLs. --- bots/sledrun_wikitext_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index ba898e9..3bc293e 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -226,7 +226,7 @@ class SledrunWikiTextToJsonBot( bb = next(bb_iter, None) if bb is not None: video = bb.get('video', None) - if isinstance(video, Parameter): + if isinstance(video, Parameter) and video.value != "": sledrun_json['videos'] = [{'url': str(video.value)}] _button_bar() -- 2.39.5