You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
youtube-dl/youtube_dl
Hubert Hirtz f0812d7848
[utils] Handle user:pass in URLs (#28801)
* Handle user:pass in URLs

Fixes "nonnumeric port" errors when youtube-dl is given URLs with
usernames and passwords such as:

    http://username:password@example.com/myvideo.mp4

Refs:
- https://en.wikipedia.org/wiki/Basic_access_authentication
- https://tools.ietf.org/html/rfc1738#section-3.1
- https://docs.python.org/3.8/library/urllib.parse.html#urllib.parse.urlsplit

Fixes #18276 (point 4)
Fixes #20258
Fixes #26211 (see comment)

* Align code with yt-dlp

---------

Co-authored-by: dirkf <fieldhouse@gmx.net>
11 months ago
..
downloader [downloader/external] Fix WgetFD proxy (rev 2) 12 months ago
extractor [caffeine.tv] Add new extractor (#32514) 12 months ago
postprocessor [compat] Use `compat_open()` 2 years ago
YoutubeDL.py [core] Fix format string injection for metadata JSON filename message. 1 year ago
__init__.py [workflows/ci.yml] Restore test support for Py 3.2 2 years ago
__main__.py
aes.py [netease] Get netease music download url through player api (#31235) 2 years ago
cache.py [compat] Use `compat_open()` 2 years ago
casefold.py [compat] Fix casefold import __all__ syntax in a19855f 2 years ago
compat.py [compat] Rework compat for `method` parameter of `compat_urllib_request.Request` constructor 1 year ago
jsinterp.py [test] Fixes for old Pythons 2 years ago
options.py [doc] Warn against setting cookies with --add-header 2 years ago
socks.py
swfinterp.py [utils] Avoid comparing `type(var)`, etc, to pass new Linter rules 2 years ago
update.py [build] Extend use of `devscripts/utils` 2 years ago
utils.py [utils] Handle user:pass in URLs (#28801) 11 months ago
version.py release 2021.12.17 3 years ago