aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_youtube_signature.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-07-15 22:46:39 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-07-15 22:46:39 +0200
commitad25aee2458527c38bdd3a8f1dec318ea807052c (patch)
treebe3828f023a6f32978d6c00798e46f0fabc078f3 /test/test_youtube_signature.py
parentbd1f325b427eaea944b4b01ef4ee7c3559caac5c (diff)
downloadyoutube-dl-ad25aee2458527c38bdd3a8f1dec318ea807052c.zip
youtube-dl-ad25aee2458527c38bdd3a8f1dec318ea807052c.tar.gz
youtube-dl-ad25aee2458527c38bdd3a8f1dec318ea807052c.tar.bz2
[youtube & jsinterp] Fix signature extraction (fixes #3255)
Some functions are defined now inside an object, the jsinterp will search its definition if the variable is not defined in the local namespace.
Diffstat (limited to 'test/test_youtube_signature.py')
-rw-r--r--test/test_youtube_signature.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py
index 8d46fe1..d955339 100644
--- a/test/test_youtube_signature.py
+++ b/test/test_youtube_signature.py
@@ -34,6 +34,12 @@ _TESTS = [
u']\\[@?>=<;:/.-,+*)(\'&%$#"hZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjiagfedcb39876',
),
(
+ u'https://s.ytimg.com/yts/jsbin/html5player-en_US-vfl0Cbn9e.js',
+ u'js',
+ 84,
+ u'O1I3456789abcde0ghijklmnopqrstuvwxyzABCDEFGHfJKLMN2PQRSTUVW@YZ!"#$%&\'()*+,-./:;<=',
+ ),
+ (
u'https://s.ytimg.com/yts/jsbin/html5player-en_US-vflXGBaUN.js',
u'js',
u'2ACFC7A61CA478CD21425E5A57EBD73DDC78E22A.2094302436B2D377D14A3BBA23022D023B8BC25AA',