mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-12 03:43:45 +00:00
Fix grouping
This commit is contained in:
parent
ed4d9a40c1
commit
1508588107
@ -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,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user