mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 19:47:54 +01:00
Support uncommon DigitallySpeaking case
This commit is contained in:
parent
a277dd33eb
commit
3f6a8ef4f9
@ -84,7 +84,8 @@ class DigitallySpeakingIE(InfoExtractor):
|
|||||||
'vcodec': 'none',
|
'vcodec': 'none',
|
||||||
'format_id': audio.get('code'),
|
'format_id': audio.get('code'),
|
||||||
})
|
})
|
||||||
slide_video_path = xpath_text(metadata, './slideVideo', fatal=True)
|
slide_video_path = xpath_text(metadata, './slideVideo')
|
||||||
|
if slide_video_path:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': 'rtmp://%s/ondemand?ovpfv=1.1' % akamai_url,
|
'url': 'rtmp://%s/ondemand?ovpfv=1.1' % akamai_url,
|
||||||
'play_path': remove_end(slide_video_path, '.flv'),
|
'play_path': remove_end(slide_video_path, '.flv'),
|
||||||
@ -94,7 +95,8 @@ class DigitallySpeakingIE(InfoExtractor):
|
|||||||
'preference': -2,
|
'preference': -2,
|
||||||
'format_id': 'slides',
|
'format_id': 'slides',
|
||||||
})
|
})
|
||||||
speaker_video_path = xpath_text(metadata, './speakerVideo', fatal=True)
|
speaker_video_path = xpath_text(metadata, './speakerVideo')
|
||||||
|
if speaker_video_path:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': 'rtmp://%s/ondemand?ovpfv=1.1' % akamai_url,
|
'url': 'rtmp://%s/ondemand?ovpfv=1.1' % akamai_url,
|
||||||
'play_path': remove_end(speaker_video_path, '.flv'),
|
'play_path': remove_end(speaker_video_path, '.flv'),
|
||||||
|
Loading…
Reference in New Issue
Block a user