1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-26 18:57:42 +00:00

[prosiebensat1] Add rtmpe support

This commit is contained in:
Sergey M. 2014-02-27 17:52:52 +07:00
parent 0c7214c404
commit 8a44ef6868

View file

@ -263,8 +263,9 @@ class ProSiebenSat1IE(InfoExtractor):
return bitrate / 1000 if bitrate % 1000 == 0 else bitrate
for source in urls_sources:
if source['protocol'] == 'rtmp':
mobj = re.search(r'^(?P<url>rtmp://[^/]+/(?P<app>[^/]+))/(?P<playpath>.+)$', source['url'])
protocol = source['protocol']
if protocol == 'rtmp' or protocol == 'rtmpe':
mobj = re.search(r'^(?P<url>rtmpe?://[^/]+/(?P<app>[^/]+))/(?P<playpath>.+)$', source['url'])
if not mobj:
continue
formats.append({