Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. playlist = pafy.get_playlist(self.params["url"])
  2. videos = playlist['items']
  3. quality = self.params['quality']
  4. for video in videos :
  5. p = video['pafy']
  6. selectedVideo = p.quality
  7. selectedVideo.download()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement