mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[prosiebensat1] Add rtmpe support
This commit is contained in:
parent
0c7214c404
commit
8a44ef6868
1 changed files with 3 additions and 2 deletions
|
@ -263,8 +263,9 @@ def fix_bitrate(bitrate):
|
||||||
return bitrate / 1000 if bitrate % 1000 == 0 else bitrate
|
return bitrate / 1000 if bitrate % 1000 == 0 else bitrate
|
||||||
|
|
||||||
for source in urls_sources:
|
for source in urls_sources:
|
||||||
if source['protocol'] == 'rtmp':
|
protocol = source['protocol']
|
||||||
mobj = re.search(r'^(?P<url>rtmp://[^/]+/(?P<app>[^/]+))/(?P<playpath>.+)$', source['url'])
|
if protocol == 'rtmp' or protocol == 'rtmpe':
|
||||||
|
mobj = re.search(r'^(?P<url>rtmpe?://[^/]+/(?P<app>[^/]+))/(?P<playpath>.+)$', source['url'])
|
||||||
if not mobj:
|
if not mobj:
|
||||||
continue
|
continue
|
||||||
formats.append({
|
formats.append({
|
||||||
|
|
Loading…
Reference in a new issue