about summary refs log tree commit diff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [jsinterp] Improve parsingdirkf2023-02-021-3/+50
| | | | | | | | | * support subset `... else if ...` * support `while` * add `RegExp` class * generalise `new` support * limited more debug strings * matching test changes
* Support `if` statementspukkandan2023-02-022-0/+36
| | | | | Fix for yt-dlp/yt_dlp#6131 Closes #31509
* [utils] Backport traverse_obj (etc) from yt-dlp (#31156)Andrei Lebedev2022-11-031-0/+323
| | | | | | | | | * 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>
* [compat] Add test for compat_casefold()dirkf2022-11-011-0/+1
|
* [compat] Add test for compat_casefold()dirkf2022-11-011-1/+13
|
* [netease] Get netease music download url through player api (#31235)Xie Yanbo2022-10-111-1/+8
| | | | | | | | * 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
* [test] Implement string "lambda x: condition(x)" as an expected valuedirkf2022-10-111-1/+7
| | | | Semantics equivalent to `assert condition(got)`
* [jsinterp] Workaround operator associativity issuepukkandan2022-09-031-0/+4
| | | | | | * temporary fix for player 5a3b6271 [1] 1. https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
* [cache] Add cache validation by program version, based on yt-dlpdirkf2022-09-011-2/+14
|
* [jsinterp] Handle new YT players 113ca41c, c57c113cdirkf2022-09-012-0/+37
| | | | | | | * 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
* [jsinterp] Improve try/catch/finally supportdirkf2022-08-261-2/+12
|
* [jsinterp] Fix bug in operator precedencedirkf2022-08-252-0/+29
| | | | | * from https://github.com/yt-dlp/yt-dlp/commit/164b03c4864b0d44cfee5e7702f7c2317164a6cf * added tests
* [jsinterp] Clean up and pull yt-dlp styledirkf2022-08-192-11/+12
| | | | | | | * add compat_re_Pattern * improve compat_collections_chain_map * use class JS_Undefined * remove unused code
* [jsinterp] Handle regexp literals and throw/catch execution (#31182)dirkf2022-08-192-0/+25
| | | | * based on https://github.com/yt-dlp/yt-dlp/commit/f6ca640b122239d5ab215f8c2564efb7ac3e8c65, thanks pukkandan * adds parse support for regexp flags
* [jsinterp] Improve JS language support (#31175)dirkf2022-08-172-0/+118
| | | | | | | | | * 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.
* [jsinterp] Overhaul JSInterp to handle new YT players 4c3f79c5, 324f67b9 ↵dirkf2022-08-143-6/+59
| | | | | | | (#31170) * back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan * also support void, improve <</>> precedence, improve expressions in comma-list * add more tests
* [test, etc] Improve download test logs; also clean up some new flake8 issues ↵dirkf2022-08-091-2/+5
| | | | | | | | | (#31153) * [test] Identify testcase errors better * [test] Identify download errors better * [extractor/minds] Linter * [extractor/aes] Linter
* [test] Fix linter for 3aa94d7945dfaa0e04acf2700ffe0e43b00db498dirkf2022-06-152-1/+2
|
* [YouTube] Support JSON3 subtitle formatdirkf2022-06-091-20/+54
| | | | * subtitle tests updated to match
* [test] Fix workable subtitle tests (except YT) and mark others as skip, brokendirkf2022-06-081-7/+15
| | | | * broken tests need to be fixed when fixing the respective IE
* [test] Skip not _WORKING IE in subtitle tests; use unittest.skipTest throughoutdirkf2022-06-082-4/+6
|
* Make default upload_/release_date a compat_strdf2022-02-261-0/+19
| | | | | Ensures download tests pass in Python 2 as well as 3; also add YoutubeDL tests for timestamp -> upload_date etc.
* [test:download] Only extract enough videos for playlist_mincountdirkf2022-02-052-1/+1
|
* Rework 2c2c2bd with an actual Mix page and realistic playlist sizedirkf2022-02-041-3/+3
| | | | From https://github.com/ytdl-org/youtube-dl/commit/2c2c2bd348b7dce0aad55a6fc37a18c6f9a000e3#commitcomment-65953545
* Merge branch 'pukkandan-yt-searchurl' into yt-dl-masterdirkf2022-02-041-3/+3
|\ | | | | | | Closes #27749
| * Merge branch 'UP/youtube-dl' into dl/YoutubeSearchURLIEpukkandan2022-01-307-319/+73
| |\
| * | Add back `YoutubeSearchURLIE`pukkandan2022-01-301-3/+3
| | |
* | | [YouTube] Fix n-sig for player e06dea74 (#30582)dirkf2022-02-011-7/+17
| | | | | | | | | From yt-dl commit 48416bc
* | | Back-port test_youtube_signature.py from yt-dlp and fix JSInterp accordinglydirkf2022-01-301-24/+63
| | |
* | | Handle default in switch betterdf2022-01-301-0/+15
| | | | | | | | | | | | | | | Add https://github.com/yt-dlp/yt-dlp/commit/a1fc7ca0743c8df06416e68ee74b64e07dfe7135 Thanks coletdjnz
* | | Back-port JS interpreter upgrade from yt-dlp PR #1437df2022-01-301-0/+51
| | |
* | | Fix test_youtube_flat_playlist_extractiondf2022-01-291-1/+1
| | |
* | | Remove obsolete non-working test_youtube_toptracksdf2022-01-291-9/+0
| | |
* | | Fix test_youtube_mixdf2022-01-291-4/+6
| | |
* | | Remove obsolete test_youtube_coursedf2022-01-291-10/+0
| | |
* | | Fix test_youtube_playlist_noplaylistdf2022-01-291-2/+4
| |/ |/|
* | [test_execution] Add test for lazy extractors (refs #28780)Sergey M․2021-04-211-0/+10
| |
* | [test_youtube_misc] Move YoutubeIE.extract_id test into separate moduleSergey M․2021-04-212-9/+26
| |
* | [test_youtube_lists] Actualize youtube flat playlist test (closes #28045)PrinceOfPuppers2021-02-171-5/+14
| |
* | [youtube] add support phone/tablet JS player(closes #26424)Remita Amine2021-02-081-21/+10
| |
* | [youtube/test_youtube_signature] fix testRemita Amine2021-02-011-5/+1
| |
* | [youtube] remove description chapters testsRemita Amine2021-02-011-275/+0
| | | | | | | | | | video description no longer contain yt.www.watch.player.seekTo function
* | Introduce --output-na-placeholder (closes #27896)Sergey M․2021-01-221-4/+11
| |
* | [YoutubeDL] Raise syntax error for format selection expressions with ↵Sergey M․2021-01-141-0/+1
|/ | | | multiple + operators (closes #27803)
* [rai] improve subtitles extraction (#27705)nixxo2021-01-071-2/+10
| | | closes #27698
* [utils] add a function to clean podcast URLsRemita Amine2021-01-041-0/+5
|
* [utils] accept only supported protocols in url_or_noneRemita Amine2020-12-301-0/+5
|
* [youtube:tab] Extend _VALID_URL (closes #27501)Sergey M․2020-12-261-3/+3
|
* [test_InfoExtractor] PEP 8Sergey M․2020-12-131-1/+0
|
* [extractor/common] Improve JSON-LD interaction statistic extraction (refs ↵Sergey M․2020-12-131-0/+50
| | | | #23306)