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 {