diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2024-05-26 23:37:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 21:37:49 +0000 |
commit | 5c019f6328ad40d66561eac3c4de0b3cd070d0f6 (patch) | |
tree | 8e536fe085452ddf354fae4ee9d353204be6eb70 /yt_dlp/utils/_utils.py | |
parent | 5a2eebc76770fca91ffabeff658d560f716fec80 (diff) |
[misc] Cleanup (#9765)
Closes #9763
Authored by: bashonly, seproDev, Grub4K
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Diffstat (limited to 'yt_dlp/utils/_utils.py')
-rw-r--r-- | yt_dlp/utils/_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py index 5f458ea45..42803bb6d 100644 --- a/yt_dlp/utils/_utils.py +++ b/yt_dlp/utils/_utils.py @@ -2525,7 +2525,7 @@ def read_batch_urls(batch_fd): return False # "#" cannot be stripped out since it is part of the URI # However, it can be safely stripped out if following a whitespace - return re.split(r'\s#', url, 1)[0].rstrip() + return re.split(r'\s#', url, maxsplit=1)[0].rstrip() with contextlib.closing(batch_fd) as fd: return [url for url in map(fixup, fd) if url] |