From 1a5119a43df29e26770016fc63a14ae6d816ca36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9r=C3=A9nice=20Batut?= Date: Thu, 5 Dec 2024 12:33:04 +0100 Subject: [PATCH] Add True to video metadata if recordings --- sources/bin/extract_gtn_tutorials.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/bin/extract_gtn_tutorials.py b/sources/bin/extract_gtn_tutorials.py index 0c66e486..07f71077 100644 --- a/sources/bin/extract_gtn_tutorials.py +++ b/sources/bin/extract_gtn_tutorials.py @@ -116,8 +116,10 @@ def get_youtube_stats(tuto: dict) -> None: recordings = [] if "recordings" in tuto and tuto["recordings"]: recordings = tuto["recordings"] + tuto["video"] = True elif "slides_recordings" in tuto and tuto["slides_recordings"]: recordings = tuto["slides_recordings"] + tuto["video"] = True tuto["video_versions"] = len(recordings) for v in recordings: url = f"https://www.youtube.com/watch?v={v['youtube_id']}"