aboutsummaryrefslogtreecommitdiff
path: root/test/test_youtube_signature.py
AgeCommit message (Collapse)Author
2024-06-20[jsinterp] Add Debugger from yt-dlpdirkf
* https://github.com/yt-dlp/yt-dlp/commit/8f53dc4 * thx pukkandan
2023-07-25[compat] Use `compat_open()`dirkf
2023-06-22[YouTube] Improve nsig function name extractionpukkandan
Fixes player b7910ca8, using `,` vs `;` See https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1602231170 Co-authored-by: dirkf
2023-06-17[YouTube] Fix `KeyError QV` in signature extraction faileddirkf
* temporarily force missing global definition into sig JS * improve test: thanks https://github.com/yt-dlp/yt-dlp/issues/7327#issuecomment-1595274615 * resolves #32314
2023-06-11[jsinterp] Fix div bug breaking player 8c7583ffdirkf
Thx bashonly: https://github.com/ytdl-org/youtube-dl/issues/32292#issuecomment-1585639223 Fixes #32292
2023-05-23[jsinterp] Small updates for a85a875dirkf
* update signature tests * clarify NaN handling
2023-03-03[jsinterp] Handle `Date` at epoch 0pukkandan
See yt-dlp/yt_dlp#6400
2023-02-02Support `if` statementspukkandan
Fix for yt-dlp/yt_dlp#6131 Closes #31509
2022-09-03[jsinterp] Workaround operator associativity issuepukkandan
* temporary fix for player 5a3b6271 [1] 1. https://github.com/yt-dlp/yt-dlp/issues/4635#issuecomment-1235384480
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-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-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
2021-02-08[youtube] add support phone/tablet JS player(closes #26424)Remita Amine
2021-02-01[youtube/test_youtube_signature] fix testRemita Amine
2020-05-02[youtube] Improve player id extraction and add testsSergey M․
2016-11-17Update coding style after pycodestyle 2.1.0Yen Chi Hsuan
In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
2015-02-18[jsinterp] Disable comment supportPhilipp Hagemeister
We need a proper lexer to be able to understand YouTube's code, which contains /* inside of strings. For now it's sufficient to just disable comment support altogether. Fixes #4976, fixes #4979, fixes #4980, fixes #4981, fixes #4982. Closes #4977.
2015-02-10[test/test_youtube_signature] Use fake YDLPhilipp Hagemeister
2014-11-12[test_youtube_signature] Fix importMichael Käufl
Broken in commit 8c25f81beea169c9d6540eea1a6f71dc045da6ed
2014-09-29[youtube] Remove swf signature test casesPhilipp Hagemeister
These files are now 0 Bytes
2014-07-25[jsinterp] Add new testcasePhilipp Hagemeister
2014-07-24[test_youtube_signatures] ModernizePhilipp Hagemeister
2014-07-24[jsinterp] 'reverse' modifies the array in place (fixes #3334)Jaime Marquínez Ferrándiz
2014-07-23[jsinterp] Allow digits in function namesPhilipp Hagemeister
2014-07-20[youtube] Add swf signature test case (#3270)Philipp Hagemeister
2014-07-20[youtube] Correct signature testcasePhilipp Hagemeister
2014-07-18[youtube] Move swfinterp into its own filePhilipp Hagemeister
2014-07-15[youtube & jsinterp] Fix signature extraction (fixes #3255)Jaime Marquínez Ferrándiz
Some functions are defined now inside an object, the jsinterp will search its definition if the variable is not defined in the local namespace.
2014-07-11[youtube] Correct signature testPhilipp Hagemeister
2014-07-11[youtube] Add test for new signature scheme (#3232)Philipp Hagemeister
2014-02-04[test/youtube_signature] Add a test with the last playerJaime Marquínez Ferrándiz
To verify it correctly handles function with “$” in their names.
2014-01-17Remove youtube swf signature testPhilipp Hagemeister
Apparently, swf players are no longer in use. If we find one, we'll readd it.
2013-11-25[tests] Remove global_setup functionPhilipp Hagemeister
2013-10-15Simplify testsPhilipp Hagemeister
* Make them directly executable again * Move common stuff (md5, parameters) to helper * Never import * * General clean up
2013-09-22Work around nosetests nosinessPhilipp Hagemeister
2013-09-21Change test target (Verified with node.js)Philipp Hagemeister
2013-09-21Restore accidentally deleted commitsPhilipp Hagemeister
That's what happens if you let Windows machines write :(