Add --list-thumbnails
This commit is contained in:
parent
1e10802990
commit
cfb56d1af3
7 changed files with 80 additions and 10 deletions
|
@ -52,6 +52,7 @@ from youtube_dl.utils import (
|
|||
urlencode_postdata,
|
||||
version_tuple,
|
||||
xpath_with_ns,
|
||||
render_table,
|
||||
)
|
||||
|
||||
|
||||
|
@ -434,5 +435,15 @@ ffmpeg version 2.4.4 Copyright (c) 2000-2014 the FFmpeg ...'''), '2.4.4')
|
|||
self.assertTrue(is_html( # UTF-32-LE
|
||||
b'\xFF\xFE\x00\x00<\x00\x00\x00h\x00\x00\x00t\x00\x00\x00m\x00\x00\x00l\x00\x00\x00>\x00\x00\x00\xe4\x00\x00\x00'))
|
||||
|
||||
def test_render_table(self):
|
||||
self.assertEqual(
|
||||
render_table(
|
||||
['a', 'bcd'],
|
||||
[[123, 4], [9999, 51]]),
|
||||
'a bcd\n'
|
||||
'123 4\n'
|
||||
'9999 51')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue