pukkandan
4823ec9f46
Update to ytdl-commit-d1c6c5
...
[YouTube] [core] Improve platform debug log, based on yt-dlp
d1c6c5c4d6
Except:
* 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression
* There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641
* e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs
* We plan to implement this differently
2 years ago
Simon Sawicki
b079c26f0a
[utils] `traverse_obj`: More fixes ( #6959 )
...
- Fix result when branching with `traverse_string`
- Fix `slice` path on `dict`s
- Fix tests and docstrings from 21b5ec86c2
- Add `is_iterable_like` helper function
Authored by: Grub4K
2 years ago
Simon Sawicki
21b5ec86c2
[utils] `traverse_obj`: Allow iterables in traversal ( #6902 )
...
Authored by: Grub4K
2 years ago
Simon Sawicki
0898c5c8cc
[utils] `js_to_json`: Implement template strings ( #6623 )
...
Authored by: Grub4K
2 years ago
Simon Sawicki
6839ae1f6d
[utils] `traverse_obj`: Fix more bugs
...
and cleanup uses of `default=[]`
Continued from b1bde57bef
2 years ago
Simon Sawicki
b1bde57bef
[utils] `traverse_obj`: Fix several behavioral problems
...
See #6180 for further info
Authored by: Grub4K
2 years ago
Simon Sawicki
776995bc10
[utils] `traverse_obj`: Various improvements
...
- 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
2 years ago
pukkandan
fbb7383306
Add `weba` to known extensions
2 years ago
ChillingPepper
d5f043d127
[utils] js_to_json: Fix bug in f55523c
( #5771 )
...
Authored by: ChillingPepper, pukkandan
2 years ago
Simon Sawicki
a71b812f53
[utils] `js_to_json`: Improve escape handling ( #5217 )
...
Authored by: Grub4K
2 years ago
Matthew
4c9a1a3ba5
[extractor/wordpress:mb.miniAudioPlayer] Add embed extractor ( #5087 )
...
Closes https://github.com/yt-dlp/yt-dlp/issues/4994
Authored by: coletdjnz
2 years ago
Simon Sawicki
7b0127e1e1
[utils] `traverse_obj`: Allow `re.Match` objects ( #5174 )
...
Authored by: Grub4K
2 years ago
Simon Sawicki
f99bbfc983
[utils] `traverse_obj`: Always return list when branching ( #5170 )
...
Fixes #5162
Authored by: Grub4K
2 years ago
Simon Sawicki
ab029d7e92
[utils] `traverse_obj`: Rewrite, document and add tests ( #5024 )
...
Authored by: Grub4K
2 years ago
Elyse
7657ec7ed6
[utils] `base_url`: URL paths can contain `&` ( #4841 )
...
Authored by: elyse0
Closes #4187
2 years ago
pukkandan
8f53dc44a0
[jsinterp] Handle new youtube signature functions
...
Closes #4635
2 years ago
pukkandan
97d9c79e92
Fix tests for 989a01c261
2 years ago
Lauren N. Liberda
fc61aff41b
Determine merge container better (See desc) ( #1482 )
...
* 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
2 years ago
nixxo
47304e07dc
[extractor/rai] Add raisudtirol extractor ( #4524 )
...
Closes #4206
Authored by: nixxo
2 years ago
pukkandan
88f60feb32
Fix a904a7f8c6
2 years ago
Lesmiscore
a904a7f8c6
Allow users to specify encoding in each config files ( #4357 )
...
Authored by: Lesmiscore
2 years ago
pukkandan
f5ea47488a
[cleanup] Minor fixes
2 years ago
pukkandan
54007a45f1
[cleanup] Consistent style for file heads
2 years ago
pukkandan
ac66811112
[compat] Remove more functions
...
Removing any more will require changes to a large number of extractors
2 years ago
pukkandan
0f06bcd759
[cleanup] Minor fixes (See desc)
...
* [youtube] Fix `--youtube-skip-dash-manifest`
* [build] Use `$()` in `Makefile`. Closes #3684
* Fix bug in 385ffb467b
* Fix bug in 43d7f5a5d0
* [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode`
* [utils] LazyList: Expose unnecessarily "protected" attributes
and other minor cleanup
3 years ago
pukkandan
19a0394044
[cleanup] Misc cleanup and refactor ( #2173 )
3 years ago
pukkandan
f82711587c
[cleanup] Sort imports
...
Using https://github.com/PyCQA/isort
isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
3 years ago
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
3 years ago
felix
cfb0511d82
[cleanup] Remove unused code paths ( #2173 )
...
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
3 years ago
pukkandan
b506289fe2
[test] Add `test_locked_file`
3 years ago
coletdev
1c1b2f96ae
[youtube:tab] Fix duration extraction for shorts ( #3171 )
...
Related: https://github.com/TeamNewPipe/NewPipe/issues/8034
Authored-by: coletdjnz
3 years ago
pukkandan
5c3895fff1
[outtmpl] Limit changes during sanitization
...
Closes #2761
3 years ago
s0u1h
eeb2a770f3
[utils] `format_decimal_suffix`: Fix for very large numbers ( #3109 )
...
Authored by: s0u1h
3 years ago
pukkandan
28469edd7d
Release 2022.02.03
3 years ago
pukkandan
8bd1c00bf3
[utils] Handle `ss:xxx` in `parse_duration`
...
Closes #2388
3 years ago
Zenon Mousmoulas
0254f16274
[utils] Improve `get_elements_text_and_html_by_attribute` regex ( #2280 )
...
Authored by: zmousm, pukkandan
3 years ago
Zenon Mousmoulas
6f32a0b5b7
[utils] Improve parsing for nested HTML elements ( #2129 )
...
and add functions to return the HTML of elements
Authored by: zmousm
3 years ago
pukkandan
06e57990f7
Allow multiple and nested configuration files
3 years ago
Pierre Mdawar
f02d24d8d2
[utils] Fix `format_bytes` output for Bytes ( #2132 )
...
Authored by: pukkandan, mdawar
3 years ago
pukkandan
352d5da812
[utils] Improve `parse_count`
3 years ago
pukkandan
282f570918
[utils] Fix error when copying `LazyList`
3 years ago
pukkandan
c5e3f84972
[utils] Allow alignment in `render_table`
...
and add tests
3 years ago
Damiano Amatruda
17ec8bcfa9
[microsoftstream] Add extractor ( #1201 )
...
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
3 years ago
pukkandan
aa7785f860
[utils] Standardize timestamp formatting code
...
Closes #1285
3 years ago
pukkandan
176f1866cb
Add HDR information to formats
3 years ago
pukkandan
18f96d129b
[utils] Allow duration strings in filter
...
Closes #1309
3 years ago
pukkandan
4dfbf8696b
[utils] Add `parse_qs`
3 years ago
pukkandan
8f18aca871
Let `--match-filter` reject entries early
...
Makes redundant: `--match-title`, `--reject-title`, `--min-views`, `--max-views`
3 years ago
pukkandan
a047eeb6d2
Add regex to `--match-filter`
...
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
3 years ago
Max Teegen
77b87f0519
Add all format filtering operators also to `--match-filter`
...
PR: https://github.com/ytdl-org/youtube-dl/pull/27361
Authored by: max-te
3 years ago