primal100 commited on
Commit
a918497
·
1 Parent(s): 77b4279

Keyword argument should be resolution

Browse files

The filter method accepts the "resolution" keyword argument, "not res".

Files changed (1) hide show
  1. scripts/pytube +1 -1
scripts/pytube CHANGED
@@ -68,7 +68,7 @@ def main():
68
  vid = max(videos)
69
  elif args.res:
70
  # There might be several videos in the same resolution
71
- videos = yt.filter(res=args.res)
72
  # Check if we have a video
73
  if not videos:
74
  print("There are no videos in the specified in the specified "
 
68
  vid = max(videos)
69
  elif args.res:
70
  # There might be several videos in the same resolution
71
+ videos = yt.filter(resolution=args.res)
72
  # Check if we have a video
73
  if not videos:
74
  print("There are no videos in the specified in the specified "