From c8ac1a3d98ca748a48083527d82d7e35e5b8ee8f Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Mon, 6 Jun 2022 22:20:21 +0200 Subject: [PATCH] Parse webcams. --- bots/sledrun_wikitext_to_json.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index 4ec4377..9ce3b20 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -205,6 +205,9 @@ class SledrunWikiTextToJsonBot( video = bb.get('video', None) if isinstance(video, Parameter) and video.value.strip() != "": sledrun_json['videos'] = [{'url': str(video.value.strip())}] + webcam = bb.get('webcam', None) + if isinstance(webcam, Parameter) and webcam.value.strip() != "": + sledrun_json['webcams'] = [{'url': str(webcam.value.strip())}] correction = bb.get('Korrektur_To', None) if isinstance(correction, Parameter) and correction.value.strip() != "": sledrun_json['correction_email'] = correction.value.strip() -- 2.39.5