Fix grouping

This commit is contained in:
kclauhk 2024-12-24 17:14:51 +08:00
parent ed4d9a40c1
commit 1508588107

View file

@ -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,
})