aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2020-10-27 16:07:21 +0530
committerpukkandan <pukkandan@gmail.com>2020-12-13 20:05:04 +0530
commit732044afb2e8ffbaa37fe91310906ff549edd6ad (patch)
tree14e8d9cb6b067551dce4ec89c209b699124db13e /test/test_YoutubeDL.py
parente51f368c275ea94dccc5cf4e07960d9c9633dfd5 (diff)
downloadhypervideo-pre-732044afb2e8ffbaa37fe91310906ff549edd6ad.tar.lz
hypervideo-pre-732044afb2e8ffbaa37fe91310906ff549edd6ad.tar.xz
hypervideo-pre-732044afb2e8ffbaa37fe91310906ff549edd6ad.zip
Add --write-*-link by h-h-h-h
Authored-by: h-h-h-h
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r--test/test_YoutubeDL.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index a9e649191..5950dbffc 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -42,6 +42,7 @@ def _make_result(formats, **kwargs):
'title': 'testttitle',
'extractor': 'testex',
'extractor_key': 'TestEx',
+ 'webpage_url': 'http://example.com/watch?v=shenanigans',
}
res.update(**kwargs)
return res
@@ -567,6 +568,7 @@ class TestYoutubeDL(unittest.TestCase):
'subtitles': subtitles,
'automatic_captions': auto_captions,
'extractor': 'TEST',
+ 'webpage_url': 'http://example.com/watch?v=shenanigans',
}
def get_info(params={}):
@@ -730,6 +732,7 @@ class TestYoutubeDL(unittest.TestCase):
'playlist_id': '42',
'uploader': "變態妍字幕版 太妍 тест",
'creator': "тест ' 123 ' тест--",
+ 'webpage_url': 'http://example.com/watch?v=shenanigans',
}
second = {
'id': '2',
@@ -741,6 +744,7 @@ class TestYoutubeDL(unittest.TestCase):
'filesize': 5 * 1024,
'playlist_id': '43',
'uploader': "тест 123",
+ 'webpage_url': 'http://example.com/watch?v=SHENANIGANS',
}
videos = [first, second]