From c07588c45ddc8d89e482d4be99dbfdac8d515ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9r=C3=A9nice=20Batut?= Date: Mon, 30 Sep 2024 15:32:14 +0200 Subject: [PATCH] Add more options for YouTube option --- sources/bin/extract_gtn_tutorials.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/bin/extract_gtn_tutorials.py b/sources/bin/extract_gtn_tutorials.py index 89308ad7..2f43904f 100644 --- a/sources/bin/extract_gtn_tutorials.py +++ b/sources/bin/extract_gtn_tutorials.py @@ -117,7 +117,11 @@ def get_youtube_stats(tuto: dict) -> None: """ tuto["video_versions"] = 0 tuto["video_view"] = 0 - ydl_opts = {"ignoreerrors": True, "quiet": True} + ydl_opts = { + "ignoreerrors": True, + "quiet": True, + "skip_download": True, + } recordings = [] if "recordings" in tuto and tuto["recordings"]: recordings = tuto["recordings"]