aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests for 989a01c2610832193c268d072ada8814bfd4c00dpukkandan2022-08-051-5/+5
|
* Determine merge container better (See desc) (#1482)Lauren N. Liberda2022-08-041-0/+26
| | | | | | | | * 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
* [extractor/rai] Add raisudtirol extractor (#4524)nixxo2022-08-021-0/+1
| | | | Closes #4206 Authored by: nixxo
* Fix a904a7f8c6edc42046f0a78fb279739d500d4887pukkandan2022-07-151-14/+6
|
* Allow users to specify encoding in each config files (#4357)Lesmiscore2022-07-151-0/+28
| | | Authored by: Lesmiscore
* [cleanup] Minor fixespukkandan2022-07-111-1/+1
|
* [cleanup] Consistent style for file headspukkandan2022-06-251-2/+2
|
* [compat] Remove more functionspukkandan2022-06-251-10/+7
| | | | Removing any more will require changes to a large number of extractors
* [cleanup] Minor fixes (See desc)pukkandan2022-05-091-1/+1
| | | | | | | | | | * [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
* [cleanup] Misc cleanup and refactor (#2173)pukkandan2022-04-181-8/+14
|
* [cleanup] Sort importspukkandan2022-04-121-47/+48
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-13/+8
| | | | | | | | | | 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
* [cleanup] Remove unused code paths (#2173)felix2022-04-121-3/+0
| | | | | | | | | | | | | | | | | | | 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
* [test] Add `test_locked_file`pukkandan2022-04-071-0/+31
|
* [youtube:tab] Fix duration extraction for shorts (#3171)coletdev2022-03-281-0/+2
| | | | Related: https://github.com/TeamNewPipe/NewPipe/issues/8034 Authored-by: coletdjnz
* [outtmpl] Limit changes during sanitizationpukkandan2022-03-271-2/+4
| | | | Closes #2761
* [utils] `format_decimal_suffix`: Fix for very large numbers (#3109)s0u1h2022-03-181-0/+1
| | | Authored by: s0u1h
* Release 2022.02.03pukkandan2022-02-031-1/+1
|
* [utils] Handle `ss:xxx` in `parse_duration`pukkandan2022-01-191-0/+2
| | | | Closes #2388
* [utils] Improve `get_elements_text_and_html_by_attribute` regex (#2280)Zenon Mousmoulas2022-01-091-3/+3
| | | Authored by: zmousm, pukkandan
* [utils] Improve parsing for nested HTML elements (#2129)Zenon Mousmoulas2022-01-061-15/+92
| | | | | and add functions to return the HTML of elements Authored by: zmousm
* Allow multiple and nested configuration filespukkandan2022-01-041-0/+10
|
* [utils] Fix `format_bytes` output for Bytes (#2132)Pierre Mdawar2021-12-281-0/+13
| | | | Authored by: pukkandan, mdawar
* [utils] Improve `parse_count`pukkandan2021-12-251-0/+7
|
* [utils] Fix error when copying `LazyList`pukkandan2021-11-201-5/+5
|
* [utils] Allow alignment in `render_table`pukkandan2021-11-201-1/+38
| | | | and add tests
* [microsoftstream] Add extractor (#1201)Damiano Amatruda2021-10-221-2/+5
| | | | | 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
* [utils] Standardize timestamp formatting codepukkandan2021-10-191-4/+4
| | | | Closes #1285
* Add HDR information to formatspukkandan2021-10-181-0/+22
|
* [utils] Allow duration strings in filterpukkandan2021-10-171-0/+1
| | | | Closes #1309
* [utils] Add `parse_qs`pukkandan2021-08-231-24/+21
|
* Let `--match-filter` reject entries earlypukkandan2021-08-171-3/+9
| | | | Makes redundant: `--match-title`, `--reject-title`, `--min-views`, `--max-views`
* Add regex to `--match-filter`pukkandan2021-08-051-12/+42
| | | | | | | | 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
* Add all format filtering operators also to `--match-filter`Max Teegen2021-08-051-1/+11
| | | | | | PR: https://github.com/ytdl-org/youtube-dl/pull/27361 Authored by: max-te
* [utils] Fix slicing of reversed `LazyList`pukkandan2021-08-011-0/+4
| | | | Closes #589
* [utils] Improve `js_to_json` comment regexfelix2021-07-141-0/+3
| | | | | | Capture the newline character as part of a single-line comment From #497, Authored by: fstirlitz
* Some minor fixes and refactoring (see desc)pukkandan2021-07-021-4/+4
| | | | | | * [utils] Fix issues with reversal * check_formats should catch `DownloadError`, not `ExtractorError` * Simplify format selectors with `LazyList` and `yield from`
* [utils] Improve `LazyList`pukkandan2021-06-131-0/+43
| | | | | | * 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
* Fix `%d` and empty default in outtmplpukkandan2021-06-091-0/+1
| | | | Closes #388
* [cleanup] Point all shebang to `python3` (#372)felix2021-06-061-1/+1
| | | | Authored by: fstirlitz
* [utils] Escape URLs in `sanitized_Request`, not `sanitize_url`pukkandan2021-06-011-0/+1
| | | | | d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a added escaping of URLs while sanitizing. However, `sanitize_url` may not always receive an actual URL. Eg: When using `yt-dlp "search query" --default-search ytsearch`, `search query` gets escaped to `search%20query` before being prefixed with `ytsearch:` which is not the intended behavior. So the escaping is moved to `sanitized_Request` instead.
* Handle Basic Auth `user:pass` in URLsHubert Hirtz2021-05-241-0/+10
| | | | | Fixes https://github.com/ytdl-org/youtube-dl/issues/20258, https://github.com/ytdl-org/youtube-dl/issues/26211 Authored by: hhirtz, pukkandan
* [utils] Add `datetime_from_str` to parse relative time (#221)colethedj2021-04-071-2/+13
| | | | | | and `datetime_add_months` to accurately add/subtract months Authored by: colethedj
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-7/+7
| | | | | | | | | * 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
* Update to ytdl-2021.01.08pukkandan2021-01-081-0/+5
|
* Update to ytdl-2021.01.03pukkandan2021-01-051-0/+5
|
* Add --write-*-link by h-h-h-hpukkandan2020-12-131-0/+27
| | | | Authored-by: h-h-h-h
* Merge 'ytdl-org/youtube-dl/master' release 2020.11.19pukkandan2020-11-201-0/+28
| | | | | | | | | | | | | | | | | | | | | | Old Extractors left behind: VLivePlaylistIE YoutubeSearchURLIE YoutubeShowIE YoutubeFavouritesIE If removing old extractors, make corresponding changes in docs/supportedsites.md youtube_dlc/extractor/extractors.py Not merged: .github/ISSUE_TEMPLATE/1_broken_site.md .github/ISSUE_TEMPLATE/2_site_support_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md .github/ISSUE_TEMPLATE/4_bug_report.md .github/ISSUE_TEMPLATE/5_feature_request.md test/test_all_urls.py youtube_dlc/version.py Changelog
* Merge branch 'ytdl-org-master'Unknown2020-09-121-0/+2
|
* rot47 capital letters.Unknown2020-09-021-1/+1
|