From: Philipp Spitzer Date: Mon, 6 Jun 2022 20:20:21 +0000 (+0200) Subject: Parse webcams. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/c8ac1a3d98ca748a48083527d82d7e35e5b8ee8f Parse webcams. --- 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()