download video

This commit is contained in:
bhodaya 2020-05-05 13:06:08 +03:00
parent b7103c6c5f
commit db400f388e

View File

@ -33,9 +33,9 @@ class TikTokTestYoutubeDl(unittest.TestCase):
params = {} params = {}
ydl = youtube_dl.YoutubeDL(params) ydl = youtube_dl.YoutubeDL(params)
info = ydl.extract_info(url, download=True) info = ydl.extract_info(url, download=True)
self.assertTrue(os.path.exists("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.mp.4"
os.remove("Imagine lebron freaking out over something you did! #foryou #ballislife #lebron #nba-6783617809113943301.mp.4") self.assertTrue(os.path.exists(file_name))
os.remove(file_name)
if __name__ == '__main__': if __name__ == '__main__':