Andrei Lebedev
27ed77aabb
[utils] Backport traverse_obj (etc) from yt-dlp ( #31156 )
...
* Backport traverse_obj and closely related function from yt-dlp (code by pukkandan)
* Backport LazyList, variadic(), try_call (code by pukkandan)
* Recast using yt-dlp's newer traverse_obj() implementation and tests (code by grub4k)
* Add tests for Unicode case folding support matching Py3.5+ (requires f102e3d
)
* Improve/add tests for variadic, try_call, join_nonempty
Co-authored-by: dirkf <fieldhouse@gmx.net>
2 years ago
dirkf
087ddc2371
[compat] Add test for compat_casefold()
2 years ago
dirkf
65ccb0dd4e
[compat] Add test for compat_casefold()
2 years ago
Xie Yanbo
c91cbf6072
[netease] Get netease music download url through player api ( #31235 )
...
* remove unplayable song from test
* compatible with python 2
* using standard User_Agent, fix imports
* use hash instead of long description
* fix lint
* fix hash
2 years ago
dirkf
2ced5a7912
[test] Implement string "lambda x: condition(x)" as an expected value
...
Semantics equivalent to `assert condition(got)`
2 years ago
pukkandan
7009bb9f31
[jsinterp] Workaround operator associativity issue
...
* temporary fix for player 5a3b6271 [1]
1. https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
2 years ago
dirkf
218c423bc0
[cache] Add cache validation by program version, based on yt-dlp
2 years ago
dirkf
55c823634d
[jsinterp] Handle new YT players 113ca41c, c57c113c
...
* add NaN
* allow any white-space character for `after_op`
* align with yt-dlp f26af78a8ac11d9d617ed31ea5282cfaa5bcbcfa (charcodeAt and bitwise overflow)
* allow escaping in regex, fixing player c57c113c
2 years ago
dirkf
4c6fba3765
[jsinterp] Improve try/catch/finally support
2 years ago
dirkf
d619dd712f
[jsinterp] Fix bug in operator precedence
...
* from 164b03c486
* added tests
2 years ago
dirkf
46b8ae2f52
[jsinterp] Clean up and pull yt-dlp style
...
* add compat_re_Pattern
* improve compat_collections_chain_map
* use class JS_Undefined
* remove unused code
2 years ago
dirkf
538ec65ba7
[jsinterp] Handle regexp literals and throw/catch execution ( #31182 )
...
* based on f6ca640b12
, thanks pukkandan
* adds parse support for regexp flags
2 years ago
dirkf
b0a60ce203
[jsinterp] Improve JS language support ( #31175 )
...
* operator ??
* operator ?.
* operator **
* accurate operator functions
* `undefined` handling
* object literals {a: 1, "b": expr}
* more tests for weird JS comparisons: see https://github.com/ytdl-org/youtube-dl/issues/31173#issuecomment-1217854397 .
2 years ago
dirkf
d231b56717
[jsinterp] Overhaul JSInterp to handle new YT players 4c3f79c5, 324f67b9 ( #31170 )
...
* back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan
* also support void, improve <</>> precedence, improve expressions in comma-list
* add more tests
2 years ago
dirkf
deee741fb1
[test, etc] Improve download test logs; also clean up some new flake8 issues ( #31153 )
...
* [test] Identify testcase errors better
* [test] Identify download errors better
* [extractor/minds] Linter
* [extractor/aes] Linter
2 years ago
dirkf
11665dd236
[test] Fix linter for 3aa94d7945
2 years ago
dirkf
811c480f7b
[YouTube] Support JSON3 subtitle format
...
* subtitle tests updated to match
2 years ago
dirkf
3aa94d7945
[test] Fix workable subtitle tests (except YT) and mark others as skip, broken
...
* broken tests need to be fixed when fixing the respective IE
2 years ago
dirkf
ef044be34b
[test] Skip not _WORKING IE in subtitle tests; use unittest.skipTest throughout
2 years ago
df
6508688e88
Make default upload_/release_date a compat_str
...
Ensures download tests pass in Python 2 as well as 3; also
add YoutubeDL tests for timestamp -> upload_date etc.
3 years ago
dirkf
73e1ab6125
[test:download] Only extract enough videos for playlist_mincount
3 years ago
dirkf
7a497f1405
Rework 2c2c2bd
with an actual Mix page and realistic playlist size
...
From 2c2c2bd348 (commitcomment-65953545)
3 years ago
dirkf
5add3f4373
Merge branch 'pukkandan-yt-searchurl' into yt-dl-master
...
Closes #27749
3 years ago
dirkf
1e677567cd
[YouTube] Fix n-sig for player e06dea74 ( #30582 )
...
From yt-dl commit 48416bc
3 years ago
dirkf
9d142109f4
Back-port test_youtube_signature.py from yt-dlp and fix JSInterp accordingly
3 years ago
df
e1eae16b56
Handle default in switch better
...
Add a1fc7ca074
Thanks coletdjnz
3 years ago
df
96f87aaa3b
Back-port JS interpreter upgrade from yt-dlp PR #1437
3 years ago
df
39ca35e765
Fix test_youtube_flat_playlist_extraction
3 years ago
df
d76d59d99d
Remove obsolete non-working test_youtube_toptracks
3 years ago
df
2c2c2bd348
Fix test_youtube_mix
3 years ago
df
46e0a729b2
Remove obsolete test_youtube_course
3 years ago
df
57044eaceb
Fix test_youtube_playlist_noplaylist
3 years ago
pukkandan
a3373da70c
Merge branch 'UP/youtube-dl' into dl/YoutubeSearchURLIE
3 years ago
pukkandan
ed99d68bdd
Add back `YoutubeSearchURLIE`
3 years ago
Sergey M․
c4a451bcdd
[test_execution] Add test for lazy extractors (refs #28780 )
4 years ago
Sergey M․
5ad69d3d0e
[test_youtube_misc] Move YoutubeIE.extract_id test into separate module
4 years ago
PrinceOfPuppers
70baa7bfae
[test_youtube_lists] Actualize youtube flat playlist test ( closes #28045 )
4 years ago
Remita Amine
99c68db0a8
[youtube] add support phone/tablet JS player( closes #26424 )
4 years ago
Remita Amine
b46483a6ec
[youtube/test_youtube_signature] fix test
4 years ago
Remita Amine
9c724601ba
[youtube] remove description chapters tests
...
video description no longer contain yt.www.watch.player.seekTo
function
4 years ago
Sergey M․
142c584063
Introduce --output-na-placeholder ( closes #27896 )
4 years ago
Sergey M․
d81a213cfb
[YoutubeDL] Raise syntax error for format selection expressions with multiple + operators ( closes #27803 )
4 years ago
nixxo
3a61e6d360
[rai] improve subtitles extraction ( #27705 )
...
closes #27698
4 years ago
Remita Amine
e88c9ef62a
[utils] add a function to clean podcast URLs
4 years ago
Remita Amine
9dd674e1d2
[utils] accept only supported protocols in url_or_none
4 years ago
Sergey M․
af1312bfc3
[youtube:tab] Extend _VALID_URL ( closes #27501 )
4 years ago
Sergey M․
03d3af9768
[test_InfoExtractor] PEP 8
4 years ago
Sergey M․
1727541315
[extractor/common] Improve JSON-LD interaction statistic extraction (refs #23306 )
4 years ago
Sergey M․
5a1fbbf8b7
[extractor/common] Fix inline HTML5 media tags processing and add test ( closes #27345 )
4 years ago
Sergey M․
191286265d
[youtube:tab] Fix feeds extraction ( closes #25695 , closes #26452 )
4 years ago