[youtube/test_youtube_signature] fix test
authorRemita Amine <remitamine@gmail.com>
Mon, 1 Feb 2021 15:35:07 +0000 (16:35 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 1 Feb 2021 15:35:07 +0000 (16:35 +0100)
test/test_youtube_signature.py

index 69df30edaa75efbeb51a1cad650c8e29b2596b66..b5a4d0d5fb9f305a9ce47c3f7d35b5481196bb04 100644 (file)
@@ -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)