Returns the first available format retrieved by youtubeDL

This commit is contained in:
Manuel Cortez 2019-06-15 07:24:43 -05:00
parent ba1bcd550d
commit 2620348573

View File

@ -9,4 +9,4 @@ def get_video_url(url):
video = result['entries'][0] video = result['entries'][0]
else: else:
video = result video = result
return video["url"] return video["formats"][0]["url"]