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 [swfinterp] Add more builtins and improve static variables 2014-11-17 07:54:06 +01:00
testdata [InfoExtractor] Support byte range for DASH 2024-02-02 12:36:05 +00:00
__init__.py Add support for single-test tox runs 2013-10-12 13:17:11 -04:00
helper.py [test] Remove redundancy from lambda expected value regex 2023-09-03 01:13:40 +01:00
parameters.json [test:download] Only extract enough videos for playlist_mincount 2022-02-05 02:47:21 +00:00
test_aes.py [netease] Get netease music download url through player api (#31235) 2022-10-11 13:55:09 +01:00
test_age_restriction.py [test] Fix TestAgeRestriction 2023-02-13 03:54:51 +00:00
test_all_urls.py Merge branch 'UP/youtube-dl' into dl/YoutubeSearchURLIE 2022-01-30 01:07:28 +05:30
test_cache.py [cache] Add cache validation by program version, based on yt-dlp 2022-09-01 13:28:30 +01:00
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 Update coding style after pycodestyle 2.1.0 2016-11-17 19:45:42 +08:00
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 [options] Typo 2017-07-23 16:24:18 +08:00
test_postprocessors.py [tests] Fix invalid escape sequences 2018-11-23 00:43:42 +07:00
test_socks.py [test/test_socks] Skip SOCKS tests 2016-05-14 18:48:36 +08:00
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 [update] fix (unexploitable) BB'06 vulnerability in rsa_verify 2016-01-21 20:12:17 +00:00
test_utils.py [utils] Handle user:pass in URLs (#28801) 2024-03-04 01:27:55 +00:00
test_verbose_output.py Update coding style after pycodestyle 2.1.0 2016-11-17 19:45:42 +08:00
test_write_annotations.py [compat] Use compat_open() 2023-07-25 13:19:43 +01:00
test_youtube_lists.py Rework 2c2c2bd with an actual Mix page and realistic playlist size 2022-02-04 04:09:23 +00:00
test_youtube_misc.py [test_youtube_misc] Move YoutubeIE.extract_id test into separate module 2021-04-21 04:45:13 +07:00
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 Add a test for --no-check-certificate 2015-01-30 02:57:37 +01:00
versions.json [update] fix (unexploitable) BB'06 vulnerability in rsa_verify 2016-01-21 20:12:17 +00:00