aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
AgeCommit message (Collapse)Author
2023-02-10[utils] `traverse_obj`: Fix more bugsSimon Sawicki
and cleanup uses of `default=[]` Continued from b1bde57bef878478e3503ab07190fd207914ade9
2023-02-08[utils] `traverse_obj`: Fix several behavioral problemsSimon Sawicki
See #6180 for further info Authored by: Grub4K
2023-02-02[utils] `traverse_obj`: Various improvementsSimon Sawicki
- Add `set` key for transformations/filters - Add `re.Match` group names - Fix behavior for `expected_type` with `dict` key - Raise for filter function signature mismatch in debug Authored by: Grub4K
2022-12-30Add `weba` to known extensionspukkandan
2022-12-30[utils] js_to_json: Fix bug in f55523c (#5771)ChillingPepper
Authored by: ChillingPepper, pukkandan
2022-10-13[utils] `js_to_json`: Improve escape handling (#5217)Simon Sawicki
Authored by: Grub4K
2022-10-09[extractor/wordpress:mb.miniAudioPlayer] Add embed extractor (#5087)Matthew
Closes https://github.com/yt-dlp/yt-dlp/issues/4994 Authored by: coletdjnz
2022-10-09[utils] `traverse_obj`: Allow `re.Match` objects (#5174)Simon Sawicki
Authored by: Grub4K
2022-10-09[utils] `traverse_obj`: Always return list when branching (#5170)Simon Sawicki
Fixes #5162 Authored by: Grub4K
2022-09-26[utils] `traverse_obj`: Rewrite, document and add tests (#5024)Simon Sawicki
Authored by: Grub4K
2022-09-04[utils] `base_url`: URL paths can contain `&` (#4841)Elyse
Authored by: elyse0 Closes #4187
2022-08-14[jsinterp] Handle new youtube signature functionspukkandan
Closes #4635
2022-08-05Fix tests for 989a01c2610832193c268d072ada8814bfd4c00dpukkandan
2022-08-04Determine merge container better (See desc) (#1482)Lauren N. Liberda
* Determine the container early. Closes #4069 * Use codecs instead of just file extensions * Obey `--prefer-free-formats` * Allow fallbacks in `--merge-output` Authored by: pukkandan, selfisekai
2022-08-02[extractor/rai] Add raisudtirol extractor (#4524)nixxo
Closes #4206 Authored by: nixxo
2022-07-15Fix a904a7f8c6edc42046f0a78fb279739d500d4887pukkandan
2022-07-15Allow users to specify encoding in each config files (#4357)Lesmiscore
Authored by: Lesmiscore
2022-07-11[cleanup] Minor fixespukkandan
2022-06-25[cleanup] Consistent style for file headspukkandan
2022-06-25[compat] Remove more functionspukkandan
Removing any more will require changes to a large number of extractors
2022-05-09[cleanup] Minor fixes (See desc)pukkandan
* [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
2022-04-18[cleanup] Misc cleanup and refactor (#2173)pukkandan
2022-04-12[cleanup] Sort importspukkandan
Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
2022-04-12[cleanup] Upgrade syntaxpukkandan
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
2022-04-12[cleanup] Remove unused code paths (#2173)felix
Notes: * `_windows_write_string`: Fixed in 3.6 * https://bugs.python.org/issue1602 * PEP: https://www.python.org/dev/peps/pep-0528 * Windows UTF-8 fix: Fixed in 3.3 * https://bugs.python.org/issue13216 * `__loader__`: is always present in 3.3+ * https://bugs.python.org/issue14646 * `workaround_optparse_bug9161`: Fixed in 2.7 * https://bugs.python.org/issue9161 Authored by: fstirlitz
2022-04-07[test] Add `test_locked_file`pukkandan
2022-03-28[youtube:tab] Fix duration extraction for shorts (#3171)coletdev
Related: https://github.com/TeamNewPipe/NewPipe/issues/8034 Authored-by: coletdjnz
2022-03-27[outtmpl] Limit changes during sanitizationpukkandan
Closes #2761
2022-03-18[utils] `format_decimal_suffix`: Fix for very large numbers (#3109)s0u1h
Authored by: s0u1h
2022-02-03Release 2022.02.03pukkandan
2022-01-19[utils] Handle `ss:xxx` in `parse_duration`pukkandan
Closes #2388
2022-01-09[utils] Improve `get_elements_text_and_html_by_attribute` regex (#2280)Zenon Mousmoulas
Authored by: zmousm, pukkandan
2022-01-06[utils] Improve parsing for nested HTML elements (#2129)Zenon Mousmoulas
and add functions to return the HTML of elements Authored by: zmousm
2022-01-04Allow multiple and nested configuration filespukkandan
2021-12-28[utils] Fix `format_bytes` output for Bytes (#2132)Pierre Mdawar
Authored by: pukkandan, mdawar
2021-12-25[utils] Improve `parse_count`pukkandan
2021-11-20[utils] Fix error when copying `LazyList`pukkandan
2021-11-20[utils] Allow alignment in `render_table`pukkandan
and add tests
2021-10-22[microsoftstream] Add extractor (#1201)Damiano Amatruda
Based on: https://github.com/ytdl-org/youtube-dl/pull/24649 Fixes: https://github.com/ytdl-org/youtube-dl/issues/24440 Authored by: damianoamatruda, nixklai
2021-10-19[utils] Standardize timestamp formatting codepukkandan
Closes #1285
2021-10-18Add HDR information to formatspukkandan
2021-10-17[utils] Allow duration strings in filterpukkandan
Closes #1309
2021-08-23[utils] Add `parse_qs`pukkandan
2021-08-17Let `--match-filter` reject entries earlypukkandan
Makes redundant: `--match-title`, `--reject-title`, `--min-views`, `--max-views`
2021-08-05Add regex to `--match-filter`pukkandan
This does not fully deprecate `--match-title`/`--reject-title` since `--match-filter` is only checked after the extraction is complete, while `--match-title` can often be checked from the flat playlist. Fixes: https://github.com/ytdl-org/youtube-dl/issues/9092, https://github.com/ytdl-org/youtube-dl/issues/23035
2021-08-05Add all format filtering operators also to `--match-filter`Max Teegen
PR: https://github.com/ytdl-org/youtube-dl/pull/27361 Authored by: max-te
2021-08-01[utils] Fix slicing of reversed `LazyList`pukkandan
Closes #589
2021-07-14[utils] Improve `js_to_json` comment regexfelix
Capture the newline character as part of a single-line comment From #497, Authored by: fstirlitz
2021-07-02Some minor fixes and refactoring (see desc)pukkandan
* [utils] Fix issues with reversal * check_formats should catch `DownloadError`, not `ExtractorError` * Simplify format selectors with `LazyList` and `yield from`
2021-06-13[utils] Improve `LazyList`pukkandan
* Add `repr` and `str` that mimics `list` * Add `reversed`. Unlike `[::-1]`, reversed does not exhaust the iterable and modifies the `LazyList` in-place * Add tests