aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_YoutubeDL.py
Commit message (Collapse)AuthorAgeFilesLines
* [cleanup] Miscpukkandan2023-07-301-0/+1
|
* [cleanup] Misc fixespukkandan2023-07-221-2/+1
| | | | Closes #7528
* [outtmpl] Fix replacement for `playlist_index`pukkandan2023-07-221-0/+1
|
* [core] Fix HTTP headers and cookie handlingbashonly2023-07-151-8/+77
| | | | | | | | | | - Remove `Cookie` header from `http_headers` immediately after loading into cookiejar - Restore compat for `--load-info-json` cookies - Add more tests - Fix improper passing of Cookie header by `MailRu` extractor Closes #7558 Authored by: bashonly, pukkandan
* [core] Change how `Cookie` headers are handledSimon Sawicki2023-07-061-0/+56
| | | | | | | | | | Cookies are now saved and loaded under `cookies` key in the info dict instead of `http_headers.Cookie`. Cookies passed in headers are auto-scoped to the input URLs with a warning. Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj Authored by: Grub4K
* [outtmpl] Pad `playlist_index` etc even when with internal formattingpukkandan2023-07-061-1/+1
| | | | Closes #7501
* Bugfix for ebe1b4e34f43c3acad30e4bcb8484681a030c114pukkandan2023-06-211-0/+2
|
* [cleanup] Miscpukkandan2023-06-211-7/+9
| | | | | Closes #6288, Closes #7197, Closes #7265, Closes #7353, Closes #5773 Authored by: mikf, freezboltz, pukkandan
* [outtmpl] Fix some minor bugspukkandan2023-06-211-1/+1
| | | | Closes #7164
* [core] Improve HTTP redirect handling (#7094)coletdjnz2023-05-271-6/+0
| | | | | | | Aligns HTTP redirect handling with what browsers commonly do and RFC standards. Fixes issues https://github.com/yt-dlp/yt-dlp/commit/afac4caa7db30804bebac33e53c3cb0237958224 missed. Authored by: coletdjnz
* [cleanup] Miscpukkandan2023-05-201-4/+4
| | | | Closes #7030, closes #6967
* [outtmpl] Support `str.format` syntax inside replacementspukkandan2023-04-241-1/+4
| | | | Closes #6843
* [outtmpl] Allow `\n` in replacements and default.pukkandan2023-04-241-0/+1
| | | | | Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510055357 Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510363645
* [extractor] Deprecate `_sort_formats`pukkandan2022-11-171-32/+17
|
* [outtmpl] Curly braces to filter keyspukkandan2022-09-031-1/+12
|
* [cleanup] Miscpukkandan2022-09-011-1/+1
| | | | | Closes #4710, Closes #4754, Closes #4723 Authored by: pukkandan, MrRawes, DavidH-2022
* Fix tests for 989a01c2610832193c268d072ada8814bfd4c00dpukkandan2022-08-051-9/+9
|
* [cleanup] Misc cleanuppukkandan2022-07-091-0/+1
|
* [compat] Remove deprecated functions from core codepukkandan2022-06-251-2/+2
|
* [cleanup] Consistent style for file headspukkandan2022-06-251-0/+2
|
* [compat] Remove more functionspukkandan2022-06-251-11/+7
| | | | Removing any more will require changes to a large number of extractors
* [test] Fix `FakeYDL` signaturespukkandan2022-06-211-1/+1
| | | | Authored by: coletdjnz
* Add option `--lazy-playlist` to process entries as they are receivedpukkandan2022-06-171-1/+1
|
* Add slicing notation to `--playlist-items`pukkandan2022-06-171-32/+93
| | | | | | | | * Adds support for negative indices and step * Add `-I` as alias for `--playlist-index` * Deprecates `--playlist-start`, `--playlist-end`, `--playlist-reverse`, `--no-playlist-reverse` Closes #2951, Closes #2853
* Improve `--clean-infojson`pukkandan2022-04-281-1/+1
| | | | | It should not removes fields that may be needed for `--load-infojson`. Eg: `_ffmpeg_args`, `_has_drm`
* [cleanup] Sort importspukkandan2022-04-121-3/+14
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-17/+13
| | | | | | | | | | 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
* [outtmpl] Fix replacement/default when used with alternatepukkandan2022-03-261-0/+2
|
* Ignore format-specific fields in initial pass of `--match-filter`pukkandan2022-03-251-1/+1
| | | | Closes #3074
* Add pre-processor stage `after_filter`pukkandan2022-02-231-18/+2
| | | | | | | * Move `_match_entry` and `post_extract` to `process_video_result`. It is also left in `process_info` for API compat * `--list-...` options and `--force-write-archive` now obey filtering options * Move `SponsorBlockPP` to `after_filter`. Closes https://github.com/yt-dlp/yt-dlp/issues/2536 * Reverts 4ec82a72bbf7ff0066edb50dcad20aa77ac2fe09 since this commit addresses the issue it was solving
* [cleanup] Misc cleanuppukkandan2022-01-041-0/+1
|
* Add key `requested_downloads` in the root `info_dict`pukkandan2022-01-031-1/+2
|
* [outtmpl] Alternate form for `D` and fix suffix's casepukkandan2021-12-301-2/+4
| | | | Fixes: https://github.com/yt-dlp/yt-dlp/issues/2085#issuecomment-1002247689, https://github.com/yt-dlp/yt-dlp/pull/2132/files#r775729811
* [outtmpl] Change filename sanitization type to `S`pukkandan2021-12-231-2/+2
| | | | | `F` is already used for float! Bug in e0fd95737d1a3c4a2bfb470c5408a396c8545ca5
* [cleanup] Misc cleanuppukkandan2021-12-231-1/+1
| | | | Closes #1942 #1976 #2020 #2058 #1984
* [outtmpl] Add alternate forms `F`, `D`pukkandan2021-12-231-5/+10
| | | | | | | | | and improve `id` detection F = sanitize as filename (# = restricted) D = add Decimal suffixes Closes #2085, 2081
* [outtmpl] Add operator `&` for replacement text (#2012)PilzAdam2021-12-181-0/+5
| | | Authored by: PilzAdam
* [tests] Fix testspukkandan2021-11-191-2/+2
|
* [outtmpl] Add alternate forms for `q` and `j`pukkandan2021-11-101-5/+10
|
* [outtmpl] Do not traverse `None`pukkandan2021-11-081-0/+1
| | | | Closes #1585
* [outtmpl] Fix bug in expanding environment variablespukkandan2021-10-131-0/+6
|
* Improved progress reporting (See desc) (#1125)pukkandan2021-10-091-2/+1
| | | | | | | | | | | * Separate `--console-title` and `--no-progress` * Add option `--progress` to show progress-bar even in quiet mode * Fix and refactor `minicurses` * Use `minicurses` for all progress reporting * Standardize use of terminal sequences and enable color support for windows 10 * Add option `--progress-template` to customize progress-bar and console-title * Add postprocessor hooks and progress reporting Closes: #906, #901, #1085, #1170
* [docs,cleanup] Some minor refactoring and improve docspukkandan2021-09-301-0/+2
|
* [outtmpl] Alternate form of format type `l` for `\n` delimited listpukkandan2021-09-271-0/+1
|
* [outtmpl] Format type `U` for unicode normalizationpukkandan2021-09-261-1/+5
|
* Allow `0` in `--playlist-items`pukkandan2021-09-251-0/+1
|
* Allow alternate fields in outtmplpukkandan2021-09-181-0/+6
| | | | Closes #899, #1004
* Add format type `B` for outtmpl to treat the value as bytespukkandan2021-09-181-0/+2
| | | | | This is useful to limit the filename to a certain number of bytes rather than characters Closes #1003
* Fix `playlist_index` not obeying `playlist_start`pukkandan2021-08-171-46/+23
| | | | | and add tests Closes #720
* Allow entire infodict to be printed using `%()s`pukkandan2021-08-071-10/+17
| | | | Makes `--dump-json` redundant