mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-21 08:17:40 +00:00
[InfoExtractor] Use kwarg maxsplit for re.split
* May become kw-only in future Pythons
This commit is contained in:
parent
c5098961b0
commit
f28d7178e4
1 changed files with 1 additions and 1 deletions
|
@ -3170,7 +3170,7 @@ class InfoExtractor(object):
|
|||
# See com/longtailvideo/jwplayer/media/RTMPMediaProvider.as
|
||||
# of jwplayer.flash.swf
|
||||
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:
|
||||
rtmp_url, prefix, play_path = rtmp_url_parts
|
||||
a_format.update({
|
||||
|
|
Loading…
Reference in a new issue