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>
2024-03-04 01:27:55 +00:00
..
downloader [downloader/external] Fix WgetFD proxy (rev 2) 2024-02-21 16:29:08 +00:00
extractor [caffeine.tv] Add new extractor (#32514) 2024-02-22 12:54:07 +00:00
postprocessor [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
__init__.py [workflows/ci.yml] Restore test support for Py 3.2 2023-07-05 22:51:15 +01:00
__main__.py
aes.py [netease] Get netease music download url through player api (#31235) 2022-10-11 13:55:09 +01:00
cache.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
casefold.py [compat] Fix casefold import __all__ syntax in a19855f 2023-05-23 17:11:22 +01:00
compat.py [compat] Rework compat for method parameter of compat_urllib_request.Request constructor 2024-01-22 11:10:34 +00:00
jsinterp.py [test] Fixes for old Pythons 2023-07-18 10:50:46 +01:00
options.py [doc] Warn against setting cookies with --add-header 2023-07-18 10:50:46 +01:00
socks.py
swfinterp.py [utils] Avoid comparing type(var), etc, to pass new Linter rules 2023-08-01 01:05:09 +01:00
update.py [build] Extend use of devscripts/utils 2023-07-25 13:19:43 +01:00
utils.py [utils] Handle user:pass in URLs (#28801) 2024-03-04 01:27:55 +00:00
version.py
YoutubeDL.py [core] Fix format string injection for metadata JSON filename message. 2023-12-06 02:45:41 +00:00