1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 04:26:02 +01:00

[InfoExtractor] Use kwarg maxsplit for re.split

* May become kw-only in future Pythons
This commit is contained in:
dirkf 2024-12-12 04:46:33 +00:00
parent c5098961b0
commit f28d7178e4

View File

@ -3170,7 +3170,7 @@ class InfoExtractor(object):
# See com/longtailvideo/jwplayer/media/RTMPMediaProvider.as # See com/longtailvideo/jwplayer/media/RTMPMediaProvider.as
# of jwplayer.flash.swf # of jwplayer.flash.swf
rtmp_url_parts = re.split( rtmp_url_parts = re.split(
r'((?:mp4|mp3|flv):)', source_url, 1) r'((?:mp4|mp3|flv):)', source_url, maxsplit=1)
if len(rtmp_url_parts) == 3: if len(rtmp_url_parts) == 3:
rtmp_url, prefix, play_path = rtmp_url_parts rtmp_url, prefix, play_path = rtmp_url_parts
a_format.update({ a_format.update({