From 1508588107e5003b917f95316bb795d618c9ffb5 Mon Sep 17 00:00:00 2001 From: kclauhk <78251477+kclauhk@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:14:51 +0800 Subject: [PATCH] Fix grouping --- yt_dlp/extractor/mediasite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/mediasite.py b/yt_dlp/extractor/mediasite.py index a7bbaa5344..8b7040c2b4 100644 --- a/yt_dlp/extractor/mediasite.py +++ b/yt_dlp/extractor/mediasite.py @@ -285,8 +285,8 @@ class MediasiteIE(InfoExtractor): subtitles.setdefault(lang_code, []).append(t) if transcript_url := presentation.get('TranscriptUrl'): if determine_ext(transcript_url) != 'txt': - if len(transcripts) == 1 and captions: - captions.setdefault(lang_code, []).append({ + if len(transcripts) == 1: + (captions or subtitles).setdefault(lang_code, []).append({ 'url': transcript_url, 'name': lang_name, })