Ejemplo n.º 1
0
    def download(self):
        audio = pafy.new(self.url).getbestaudio()
        file = audio.download()

        self.newtitle = self.slugify(audio.title)
        self.__convertToMp3(file, audio.extension)
        tagger = Tagger(self.newtitle + '.mp3', self.title, self.artist,
                        self.genre, self.album)
        mp3 = tagger.editTags()
        return self.__renameFile(mp3)