aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2022-09-01[cache] Add cache validation by program version, based on yt-dlpdirkf
2022-09-01[jsinterp] Handle new YT players 113ca41c, c57c113cdirkf
* 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
2022-08-26[jsinterp] Improve try/catch/finally supportdirkf
2022-08-25[jsinterp] Fix bug in operator precedencedirkf
* from https://github.com/yt-dlp/yt-dlp/commit/164b03c4864b0d44cfee5e7702f7c2317164a6cf * added tests
2022-08-19[jsinterp] Clean up and pull yt-dlp styledirkf
* add compat_re_Pattern * improve compat_collections_chain_map * use class JS_Undefined * remove unused code
2022-08-19[jsinterp] Handle regexp literals and throw/catch execution (#31182)dirkf
* based on https://github.com/yt-dlp/yt-dlp/commit/f6ca640b122239d5ab215f8c2564efb7ac3e8c65, thanks pukkandan * adds parse support for regexp flags
2022-08-17[jsinterp] Improve JS language support (#31175)dirkf
* 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.
2022-08-14[jsinterp] Overhaul JSInterp to handle new YT players 4c3f79c5, 324f67b9 ↵dirkf
(#31170) * back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan * also support void, improve <</>> precedence, improve expressions in comma-list * add more tests
2022-08-09[test, etc] Improve download test logs; also clean up some new flake8 issues ↵dirkf
(#31153) * [test] Identify testcase errors better * [test] Identify download errors better * [extractor/minds] Linter * [extractor/aes] Linter
2022-06-15[test] Fix linter for 3aa94d7945dfaa0e04acf2700ffe0e43b00db498dirkf
2022-06-09[YouTube] Support JSON3 subtitle formatdirkf
* subtitle tests updated to match
2022-06-08[test] Fix workable subtitle tests (except YT) and mark others as skip, brokendirkf
* broken tests need to be fixed when fixing the respective IE
2022-06-08[test] Skip not _WORKING IE in subtitle tests; use unittest.skipTest throughoutdirkf
2022-02-26Make default upload_/release_date a compat_strdf
Ensures download tests pass in Python 2 as well as 3; also add YoutubeDL tests for timestamp -> upload_date etc.
2022-02-05[test:download] Only extract enough videos for playlist_mincountdirkf
2022-02-04Rework 2c2c2bd with an actual Mix page and realistic playlist sizedirkf
From https://github.com/ytdl-org/youtube-dl/commit/2c2c2bd348b7dce0aad55a6fc37a18c6f9a000e3#commitcomment-65953545
2022-02-04Merge branch 'pukkandan-yt-searchurl' into yt-dl-masterdirkf
Closes #27749
2022-02-01[YouTube] Fix n-sig for player e06dea74 (#30582)dirkf
From yt-dl commit 48416bc
2022-01-30Back-port test_youtube_signature.py from yt-dlp and fix JSInterp accordinglydirkf
2022-01-30Handle default in switch betterdf
Add https://github.com/yt-dlp/yt-dlp/commit/a1fc7ca0743c8df06416e68ee74b64e07dfe7135 Thanks coletdjnz
2022-01-30Back-port JS interpreter upgrade from yt-dlp PR #1437df
2022-01-29Fix test_youtube_flat_playlist_extractiondf
2022-01-29Remove obsolete non-working test_youtube_toptracksdf
2022-01-29Fix test_youtube_mixdf
2022-01-29Remove obsolete test_youtube_coursedf
2022-01-29Fix test_youtube_playlist_noplaylistdf
2022-01-30Merge branch 'UP/youtube-dl' into dl/YoutubeSearchURLIEpukkandan
2022-01-30Add back `YoutubeSearchURLIE`pukkandan
2021-04-21[test_execution] Add test for lazy extractors (refs #28780)Sergey M․
2021-04-21[test_youtube_misc] Move YoutubeIE.extract_id test into separate moduleSergey M․
2021-02-17[test_youtube_lists] Actualize youtube flat playlist test (closes #28045)PrinceOfPuppers
2021-02-08[youtube] add support phone/tablet JS player(closes #26424)Remita Amine
2021-02-01[youtube/test_youtube_signature] fix testRemita Amine
2021-02-01[youtube] remove description chapters testsRemita Amine
video description no longer contain yt.www.watch.player.seekTo function
2021-01-22Introduce --output-na-placeholder (closes #27896)Sergey M․
2021-01-14[YoutubeDL] Raise syntax error for format selection expressions with ↵Sergey M․
multiple + operators (closes #27803)
2021-01-07[rai] improve subtitles extraction (#27705)nixxo
closes #27698
2021-01-04[utils] add a function to clean podcast URLsRemita Amine
2020-12-30[utils] accept only supported protocols in url_or_noneRemita Amine
2020-12-26[youtube:tab] Extend _VALID_URL (closes #27501)Sergey M․
2020-12-13[test_InfoExtractor] PEP 8Sergey M․
2020-12-13[extractor/common] Improve JSON-LD interaction statistic extraction (refs ↵Sergey M․
#23306)
2020-12-09[extractor/common] Fix inline HTML5 media tags processing and add test ↵Sergey M․
(closes #27345)
2020-11-24[youtube:tab] Fix feeds extraction (closes #25695, closes #26452)Sergey M․
2020-11-21Fix typos (#27084)Josh Soref
* spelling: authorization Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: brightcove Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: creation Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exceeded Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exception Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extension Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extracting Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extraction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: frontline Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: improve Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: length Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: listsubtitles Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: multimedia Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: obfuscated Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: partitioning Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlist Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlists Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: restriction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: services Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: split Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: srmediathek Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: support Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: thumbnail Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: verification Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: whitespaces Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-11-21[YoutubeDL] Fix --ignore-errors for playlists with generator-based entries ↵Sergey M․
of url_transparent (closes #27064)
2020-11-18[youtube] Improve extractionSergey M․
+ Add support for --no-playlist (closes #27009) * Improve playlist and mix extraction (closes #26390, closes #26509, closes #26534, closes #27011) + Extract playlist uploader data * Update tests
2020-11-17[utils] Skip ! prefixed code in js_to_jsonSergey M․
2020-11-12[youtube] Rework extractorsSergey M․
WIP
2020-10-18[utils] Don't attempt to coerce JS strings to numbers in js_to_json (#26851)Kevin O'Connor
The current logic in `js_to_json` tries to rewrite octal/hex numbers to decimal. However, when the logic actually happens the `"` or `'` have already been trimmed off. This causes what were originally strings, that happen to look like octal/hex numbers, to get rewritten to decimal and returned as a number rather than a string. In practive something like: ```js { "0x40": "foo", "040": "bar", } ``` would get rewritten as: ```json { 64: "foo", 32: "bar } ``` This is problematic since this isn't valid JSON as you cannot have non-string keys.