From 9b21d732f1226bf3e00a9e686f6f6a920364ff9b Mon Sep 17 00:00:00 2001 From: bhodaya Date: Wed, 6 May 2020 12:59:15 +0300 Subject: [PATCH] download video ext fix --- test/ci/test_tiktok.py | 2 +- youtube_dl/extractor/tiktok.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ci/test_tiktok.py b/test/ci/test_tiktok.py index cda730059..7fd7f8f93 100644 --- a/test/ci/test_tiktok.py +++ b/test/ci/test_tiktok.py @@ -33,7 +33,7 @@ class TikTokTestYoutubeDl(unittest.TestCase): params = {} ydl = youtube_dl.YoutubeDL(params) info = ydl.extract_info(url, download=True) - file_name="Imagine lebron freaking out over something you did! #foryou #ballislife #lebron #nba-6783617809113943301.mp.4" + file_name="Imagine lebron freaking out over something you did! #foryou #ballislife #lebron #nba-6783617809113943301.mp4" self.assertTrue(os.path.exists(file_name)) os.remove(file_name) diff --git a/youtube_dl/extractor/tiktok.py b/youtube_dl/extractor/tiktok.py index f18526ab8..0dbf230ac 100644 --- a/youtube_dl/extractor/tiktok.py +++ b/youtube_dl/extractor/tiktok.py @@ -22,8 +22,8 @@ class TikTokBaseIE(InfoExtractor): formats.append({ 'url': format, 'height': height, - 'ext': 'mp4', 'width': width, + 'ext': 'mp4', }) self._sort_formats(formats) return {