diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-04 20:07:17 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-04 20:07:17 +0530 |
commit | 545cc85d11463a6d6f48c1f4cb2c682f8a92a795 (patch) | |
tree | b7c98b1a32a5bb0a9f1f6be38ebec80546c66694 /test/test_youtube_signature.py | |
parent | c10d0213fc3811471950f563c651f0b1ee588c85 (diff) | |
download | hypervideo-pre-545cc85d11463a6d6f48c1f4cb2c682f8a92a795.tar.lz hypervideo-pre-545cc85d11463a6d6f48c1f4cb2c682f8a92a795.tar.xz hypervideo-pre-545cc85d11463a6d6f48c1f4cb2c682f8a92a795.zip |
[youtube] Update to ytdl-2021.02.04.1
Diffstat (limited to 'test/test_youtube_signature.py')
-rw-r--r-- | test/test_youtube_signature.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py index a54b36198..e39634a4f 100644 --- a/test/test_youtube_signature.py +++ b/test/test_youtube_signature.py @@ -86,13 +86,9 @@ class TestPlayerInfo(unittest.TestCase): ('https://www.youtube.com/yts/jsbin/player-en_US-vflaxXRn1/base.js', 'vflaxXRn1'), ('https://s.ytimg.com/yts/jsbin/html5player-en_US-vflXGBaUN.js', 'vflXGBaUN'), ('https://s.ytimg.com/yts/jsbin/html5player-en_US-vflKjOTVq/html5player.js', 'vflKjOTVq'), - ('http://s.ytimg.com/yt/swfbin/watch_as3-vflrEm9Nq.swf', 'vflrEm9Nq'), - ('https://s.ytimg.com/yts/swfbin/player-vflenCdZL/watch_as3.swf', 'vflenCdZL'), ) for player_url, expected_player_id in PLAYER_URLS: - expected_player_type = player_url.split('.')[-1] - player_type, player_id = YoutubeIE._extract_player_info(player_url) - self.assertEqual(player_type, expected_player_type) + player_id = YoutubeIE._extract_player_info(player_url) self.assertEqual(player_id, expected_player_id) |