aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2024-12-12 04:46:33 +0000
committerdirkf <fieldhouse@gmx.net>2024-12-16 12:38:51 +0000
commitf28d7178e4afb58a94994796cd81c22183ca33c2 (patch)
tree3596615ffae7a56878bdebcb0c7039b783a5b0a6 /youtube_dl/extractor/common.py
parentc5098961b04ce83f4615f2a846c84f803b072639 (diff)
[InfoExtractor] Use kwarg maxsplit for re.split
* May become kw-only in future Pythons
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 9b0016d07..78704b557 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -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({