mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
Fix grouping
This commit is contained in:
parent
ed4d9a40c1
commit
1508588107
1 changed files with 2 additions and 2 deletions
|
@ -285,8 +285,8 @@ class MediasiteIE(InfoExtractor):
|
||||||
subtitles.setdefault(lang_code, []).append(t)
|
subtitles.setdefault(lang_code, []).append(t)
|
||||||
if transcript_url := presentation.get('TranscriptUrl'):
|
if transcript_url := presentation.get('TranscriptUrl'):
|
||||||
if determine_ext(transcript_url) != 'txt':
|
if determine_ext(transcript_url) != 'txt':
|
||||||
if len(transcripts) == 1 and captions:
|
if len(transcripts) == 1:
|
||||||
captions.setdefault(lang_code, []).append({
|
(captions or subtitles).setdefault(lang_code, []).append({
|
||||||
'url': transcript_url,
|
'url': transcript_url,
|
||||||
'name': lang_name,
|
'name': lang_name,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue