mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
[dailymotion] Extract view count (#1895)
This commit is contained in:
parent
336c3a69bd
commit
f53c966a73
3 changed files with 14 additions and 0 deletions
|
@ -26,6 +26,7 @@ from youtube_dl.utils import (
|
|||
unsmuggle_url,
|
||||
shell_quote,
|
||||
encodeFilename,
|
||||
str_to_int,
|
||||
)
|
||||
|
||||
if sys.version_info < (3, 0):
|
||||
|
@ -176,6 +177,10 @@ class TestUtil(unittest.TestCase):
|
|||
args = ['ffmpeg', '-i', encodeFilename(u'ñ€ß\'.mp4')]
|
||||
self.assertEqual(shell_quote(args), u"""ffmpeg -i 'ñ€ß'"'"'.mp4'""")
|
||||
|
||||
def test_str_to_int(self):
|
||||
self.assertEqual(str_to_int('123,456'), 123456)
|
||||
self.assertEqual(str_to_int('123.456'), 123456)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue