playlist = pafy.get_playlist(self.params["url"])
videos = playlist['items']
quality = self.params['quality']
for video in videos :
p = video['pafy']
selectedVideo = p.quality
selectedVideo.download()
但我遇到了错误:
AttributeError:'YtdlPafy' object has no attribute 'quality'