download video ext fix

This commit is contained in:
bhodaya 2020-05-06 12:59:15 +03:00
parent e3f32c957b
commit 9b21d732f1
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -22,8 +22,8 @@ class TikTokBaseIE(InfoExtractor):
formats.append({
'url': format,
'height': height,
'ext': 'mp4',
'width': width,
'ext': 'mp4',
})
self._sort_formats(formats)
return {