[ruutu] Extract streams from AudioMediaFile tag (closes #20473)

Enables podcast downloads from supla.fi.
This commit is contained in:
Teemu Ikonen 2019-04-03 13:24:47 +03:00
parent 4f7db46887
commit 53539a3264

View File

@ -96,7 +96,9 @@ class RuutuIE(InfoExtractor):
video_url, video_id, mpd_id='dash', fatal=False)) video_url, video_id, mpd_id='dash', fatal=False))
else: else:
proto = compat_urllib_parse_urlparse(video_url).scheme proto = compat_urllib_parse_urlparse(video_url).scheme
if not child.tag.startswith('HTTP') and proto != 'rtmp': if (not child.tag.startswith('HTTP') and
not child.tag == 'AudioMediaFile' and
proto != 'rtmp'):
continue continue
preference = -1 if proto == 'rtmp' else 1 preference = -1 if proto == 'rtmp' else 1
label = child.get('label') label = child.get('label')