ytdl-nightly/youtube_dl
Hubert Hirtz b8bc0dd266 [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:42:21 +00:00
..
downloader [downloader/external] Fix WgetFD proxy (rev 2) 2024-02-22 01:35:40 +00:00
extractor [caffeine.tv] Add new extractor (#32514) 2024-02-23 01:35:34 +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-23 01:46:30 +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-09-24 01:40:59 +00:00
update.py [update] Use this repo for updates 2023-07-26 19:51:21 +01:00
utils.py [utils] Handle user:pass in URLs (#28801) 2024-03-04 01:42:21 +00:00
version.py Release (nightly) 2024-02-23 01:35:57 +00:00
YoutubeDL.py [core] Fix format string injection for metadata JSON filename message. 2023-12-07 01:43:52 +00:00