mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
[utils] base_url
: URL paths can contain &
(#4841)
Authored by: elyse0 Closes #4187
This commit is contained in:
parent
07a1250e0e
commit
7657ec7ed6
2 changed files with 2 additions and 1 deletions
|
@ -2479,7 +2479,7 @@ def url_basename(url):
|
|||
|
||||
|
||||
def base_url(url):
|
||||
return re.match(r'https?://[^?#&]+/', url).group()
|
||||
return re.match(r'https?://[^?#]+/', url).group()
|
||||
|
||||
|
||||
def urljoin(base, path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue