1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-17 06:56:42 +00:00
youtube-dl/test
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
..
swftests
testdata [InfoExtractor] Support byte range for DASH 2024-02-02 12:36:05 +00:00
__init__.py
helper.py [test] Remove redundancy from lambda expected value regex 2023-09-03 01:13:40 +01:00
parameters.json
test_aes.py
test_age_restriction.py [test] Fix TestAgeRestriction 2023-02-13 03:54:51 +00:00
test_all_urls.py
test_cache.py
test_compat.py [compat] Rework compat for method parameter of compat_urllib_request.Request constructor 2024-01-22 11:10:34 +00:00
test_download.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_downloader_external.py [downloader/external] Fix cookie support 2023-07-18 10:50:46 +01:00
test_downloader_http.py [downloader/http] Only check for resumability when actually resuming 2023-03-19 02:15:41 +00:00
test_execution.py [build] Add and use devscripts/utils 2023-07-25 13:19:43 +01:00
test_http.py [utils] Rework URL path munging for ., .. components 2023-07-29 14:27:26 +01:00
test_InfoExtractor.py [InfoExtractor] Support byte range for DASH 2024-02-02 12:36:05 +00:00
test_iqiyi_sdk_interpreter.py
test_jsinterp.py [Misc] Fixes for 2.6 compatibility 2023-07-05 22:58:54 +01:00
test_netrc.py Make sure netrc works for all extractors with login support 2015-03-03 12:59:17 +01:00
test_options.py
test_postprocessors.py
test_socks.py
test_subtitles.py [YouTube] Fix like_count extraction using likeButtonViewModel 2024-01-22 11:10:34 +00:00
test_swfinterp.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_unicode_literals.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_update.py
test_utils.py [utils] Handle user:pass in URLs (#28801) 2024-03-04 01:27:55 +00:00
test_verbose_output.py
test_write_annotations.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_youtube_lists.py
test_youtube_misc.py
test_youtube_signature.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_YoutubeDL.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_YoutubeDLCookieJar.py [core] Process header cookies on loading 2023-07-18 10:50:46 +01:00
testcert.pem
versions.json