Skip to content

Commit

Permalink
Add True to video metadata if recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Dec 5, 2024
1 parent 4c6044e commit 1a5119a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sources/bin/extract_gtn_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}"
Expand Down

0 comments on commit 1a5119a

Please sign in to comment.