Commit Graph

151 Commits (9c6534da81e485b2325b3489ee4128943e6d3e4b)

Author SHA1 Message Date
bashonly 54a63e80af
[test:download] Raise on network errors ()
Authored by: bashonly, seproDev
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
sepro add96eb9f8
[cleanup] Add more ruff rules ()
Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
bashonly 661c9a1d02
[test:download] Test for `expected_exception`
Authored by: at-wat

Co-authored-by: Atsushi Watanabe <atsushi.w@ieee.org>
coletdjnz 3d2623a898
[compat, networking] Deprecate old functions ()
Authored by: coletdjnz, pukkandan
coletdjnz 227bf1a33b
[networking] Rewrite architecture ()
New networking interface consists of a `RequestDirector` that directs
each `Request` to appropriate `RequestHandler` and returns the
`Response` or raises `RequestError`. The handlers define adapters to
transform its internal Request/Response/Errors to our interfaces.

User-facing changes:
- Fix issues with per request proxies on redirects for urllib
- Support for `ALL_PROXY` environment variable for proxy setting
- Support for `socks5h` proxy
   - Closes https://github.com/yt-dlp/yt-dlp/issues/6325, https://github.com/ytdl-org/youtube-dl/issues/22618, https://github.com/ytdl-org/youtube-dl/pull/28093
- Raise error when using `https` proxy instead of silently converting it to `http`

Authored by: coletdjnz
pukkandan 495322b95b
[test] Allow `extract_flat` in download tests
Authored by: coletdjnz, pukkandan
Alex Karabanov c9bd65185c
[extractor/zenyandex] Fix extractors (, )
Closes 
Authored by:  lksj, puc9, pukkandan

Co-authored-by: puc9 <51006296+puc9@users.noreply.github.com>
pukkandan d711839760
Update to ytdl-commit-e6a836d
[core] Make `--max-downloads ...` stop immediately on reaching the limit
e6a836d54c
pukkandan f2e8dbcc00 [extractor, test] Basic framework for embed tests ()
and split download tests so they can be more easily run in CI

Authored by: coletdjnz
pukkandan ae61d108dd
[cleanup] Misc cleanup
pukkandan 14f25df2b6
[compat] Remove deprecated functions from core code
pukkandan 54007a45f1
[cleanup] Consistent style for file heads
pukkandan ac66811112
[compat] Remove more functions
Removing any more will require changes to a large number of extractors
pukkandan f0500bd1e4
[test] Fix `FakeYDL` signatures
Authored by: coletdjnz
pukkandan 6d1b34896e
Update to ytdl-commit-8a158a9
[NHK] Use new API URL
6508688e88

Closes , Closes 
pukkandan f82711587c
[cleanup] Sort imports
Using https://github.com/PyCQA/isort

    isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
pukkandan 86e5f3ed2e
[cleanup] Upgrade syntax
Using https://github.com/asottile/pyupgrade

1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`

Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
pukkandan f46e2f9d92
Add key `requested_downloads` in the root `info_dict`
animelover1984 abafce59a1
[Niconico] Add Search extractors ()
Authored by: animelover1984, pukkandan
pukkandan ad3dc496bb Misc fixes - See desc
* Remove unnecessary uses of _list_from_options_callback
* Fix download tests - Bug from 6e84b21559
* Rename ExecAfterDownloadPP to ExecPP and refactor its tests
* Ensure _write_ytdl_file closes file handle on error - Potential fix for 
pukkandan 243c57cfe8 [tests:download] Add batch testing for extractors
Use `test_YourExtractor_all` to invoke them
pukkandan 0855702f3f
[test:download] Support testing with `ignore_no_formats_error`
pukkandan 060ac76257
[test] Use `pytest` instead of `nosetests` ()
`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099
and will stop working in py 3.10 as can be seen in 
felix cc52de4356
[cleanup] Point all shebang to `python3` ()
Authored by: fstirlitz
pukkandan 6911e11edd
[test:download] Only extract enough videos for `playlist_mincount`
Pccode66 7a5c1cfe93
Completely change project name to yt-dlp ()
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account

Co-authored-by: Pccode66
Co-authored-by: pukkandan
Unknown cefecac12c [skip travis] renaming
to avoid using same folder when using pip install for example
squibbysquibby 655c410063 [test_download] Fix download tests for lazy extractors (closes , closes )
Tithen-Firion 374560f018 [test_download] Fix order when testing file's md5
Sergey M․ 364a69e8c6
[test_download] Fix testing playlists with single video and add comments
Sergey M․ 60e5016199
[test_download] Remove unused import
Sergey M․ 80b2fdf9ac
[test_download] Match info dicts against tests before matching info file
John Hawkinson 3bef10a50c [test_download] typo in comment
John Hawkinson a84da06f49 [test_download] Improve diagnostic on wrong 'id'
John Hawkinson c6c22e984d [test_download] Print additional IEs in summary output
Yen Chi Hsuan 8936f68a0b
[travis] Run tests in parallel
[test_download] Print test names in case of network errors

[test_download] Add comments for nose parameters

[test_download] Modify outtmpl to prevent info JSON filename conflicts

Thanks @jaimeMF for the idea.

[travis] Only download tests should be run in parallel
Yen Chi Hsuan 582be35847
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See https://github.com/PyCQA/pycodestyle/issues/400

See also ; thanks @stepshal for first mentioning this issue and
initial patches
Jaime Marquínez Ferrándiz 65d49afa48 [test/test_download] Use extract_flat = 'in_playlist' for playlist items
Some playlist extractors return a 'url' result, which wouldn't be resolved.
Sergey M․ 308cfe0ab3 [test_downloader] Respect --force-generic-extractor
Yen Chi Hsuan 880ee801cf [tests] Allow multi_video to be tested as playlists
Philipp Hagemeister 4e980275b5 [test_download] Remove references to "file" in test definitions
Sergey M․ f74b341dde expect_info_dict actual-expected argument consistency
Philipp Hagemeister e075a44afb [tests] Remove useless u prefixes
Jouke Waleson 5f6a1245ff PEP8 applied
Philipp Hagemeister a0f59cdcb4 [tests] Modernize
Jaime Marquínez Ferrándiz ac35c26686 [tests] Don't auto init YoutubeDL
It would print the debug headers for each test.
And nose uses a StringIO object for stdout, which in python 2.x doesn't have the 'encoding' attribute.
Philipp Hagemeister 42f7d2f588 [test_download] Fix import
Philipp Hagemeister f744c0f398 [test_download] Improve error message
Philipp Hagemeister 70b7e3fbb6 [generic] Add a test case for direct links with broken HEAD ()
Philipp Hagemeister d6e6a42256 [vimeo:likes] Add new extractor (Fixes )