nficano commited on
Commit
79213ed
·
1 Parent(s): 9126f49

Updated README addressing how to get the highest resolution.

Browse files
Files changed (2) hide show
  1. .gitignore +3 -0
  2. README.md +7 -1
.gitignore CHANGED
@@ -3,3 +3,6 @@
3
  *.swp
4
  *.psd
5
  .DS_Store
 
 
 
 
3
  *.swp
4
  *.psd
5
  .DS_Store
6
+ build/*
7
+ dist/*
8
+ pytube.egg-info/*
README.md CHANGED
@@ -78,7 +78,13 @@ pprint(yt.filter('flv'))
78
  # <Video: H.264 (.flv) - 360p>,
79
  # <Video: H.264 (.flv) - 480p>]
80
 
81
- # and by resolution
 
 
 
 
 
 
82
  pprint(yt.filter(res='480p'))
83
 
84
  #[<Video: H.264 (.flv) - 480p>,
 
78
  # <Video: H.264 (.flv) - 360p>,
79
  # <Video: H.264 (.flv) - 480p>]
80
 
81
+ # notice that the list is ordered by lowest resolution to highest. If you
82
+ # wanted the highest resolution available for a specific file type, you
83
+ # can simply do:
84
+ print yt.filter('mp4')[-1]
85
+ #<Video: H.264 (.mp4) - 720p>
86
+
87
+ # you can also get all videos for a given resolution
88
  pprint(yt.filter(res='480p'))
89
 
90
  #[<Video: H.264 (.flv) - 480p>,