]> jfr.im git - yt-dlp.git/blobdiff - test/test_YoutubeDL.py
Add --write-*-link by h-h-h-h
[yt-dlp.git] / test / test_YoutubeDL.py
index a9e6491917e7efa86dfb8b2f6f385687d9c30a8f..5950dbffcad6df637450e1a37f1877de7be238b6 100644 (file)
@@ -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 @@ def s_formats(lang, autocaption=False):
             'subtitles': subtitles,
             'automatic_captions': auto_captions,
             'extractor': 'TEST',
+            'webpage_url': 'http://example.com/watch?v=shenanigans',
         }
 
         def get_info(params={}):
@@ -730,6 +732,7 @@ def _match_entry(self, info_dict, incomplete):
             'playlist_id': '42',
             'uploader': "變態妍字幕版 太妍 тест",
             'creator': "тест ' 123 ' тест--",
+            'webpage_url': 'http://example.com/watch?v=shenanigans',
         }
         second = {
             'id': '2',
@@ -741,6 +744,7 @@ def _match_entry(self, info_dict, incomplete):
             'filesize': 5 * 1024,
             'playlist_id': '43',
             'uploader': "тест 123",
+            'webpage_url': 'http://example.com/watch?v=SHENANIGANS',
         }
         videos = [first, second]