aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-12-23 07:12:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-12-23 07:12:46 +0530
commitb69fd25c25f23a859aefae69a1cc4116896536b8 (patch)
tree78d6a3a4cd4108b5451ebc246b7f6400e22f38ec /test
parente0fd95737d1a3c4a2bfb470c5408a396c8545ca5 (diff)
downloadhypervideo-pre-b69fd25c25f23a859aefae69a1cc4116896536b8.tar.lz
hypervideo-pre-b69fd25c25f23a859aefae69a1cc4116896536b8.tar.xz
hypervideo-pre-b69fd25c25f23a859aefae69a1cc4116896536b8.zip
[cleanup] Misc cleanup
Closes #1942 #1976 #2020 #2058 #1984
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py2
-rw-r--r--test/test_youtube_signature.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index 39d7e1ec5..ee0e5eca5 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -780,8 +780,8 @@ class TestYoutubeDL(unittest.TestCase):
test('%(title5)+#U', 'a\u0301e\u0301i\u0301 A')
test('%(height)D', '1K')
test('%(height)5.2D', ' 1.08K')
- test('%(title4).10F', ('foo \'bar\' ', 'foo \'bar\'#'))
test('%(title4)#F', 'foo_bar_test')
+ test('%(title4).10F', ('foo \'bar\' ', 'foo \'bar\'' + ('#' if compat_os_name == 'nt' else ' ')))
if compat_os_name == 'nt':
test('%(title4)q', ('"foo \\"bar\\" test"', "'foo _'bar_' test'"))
test('%(formats.:.id)#q', ('"id 1" "id 2" "id 3"', "'id 1' 'id 2' 'id 3'"))
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py
index 3359ac457..5f8114a1c 100644
--- a/test/test_youtube_signature.py
+++ b/test/test_youtube_signature.py
@@ -82,6 +82,10 @@ _NSIG_TESTS = [
'https://www.youtube.com/s/player/f1ca6900/player_ias.vflset/en_US/base.js',
'cu3wyu6LQn2hse', 'jvxetvmlI9AN9Q',
),
+ (
+ 'https://www.youtube.com/s/player/8040e515/player_ias.vflset/en_US/base.js',
+ 'wvOFaY-yjgDuIEg5', 'HkfBFDHmgw4rsw',
+ ),
]