jitendra.kasaudhan commited on
Commit
b5d2c17
1 Parent(s): 8d448d4

Download video with higher resolution

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def main():
52
  yt.register_on_progress_callback(on_progress)
53
  yt.register_on_complete_callback(on_complete)
54
  # extract only audio
55
- video = yt.streams.filter(progressive=True, file_extension='mp4').first()
56
  # video = yt.streams.get_highest_resolution()
57
 
58
  initial_filename = yt.title
 
52
  yt.register_on_progress_callback(on_progress)
53
  yt.register_on_complete_callback(on_complete)
54
  # extract only audio
55
+ video = yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first()
56
  # video = yt.streams.get_highest_resolution()
57
 
58
  initial_filename = yt.title