def main(self): PLD_soundcloud = PlaylistDownloader( "soundcloud", playlist_type=TypePlaylist.SOUNDCLOUD.value) song_list_link = PLD_soundcloud.load_playlist(self._args.input) PLD_soundcloud.download_playlist(song_list_link, self._args.output, compress=True)
def setUp(self): self.soundcloud = PlaylistDownloader( playlist_type=TypePlaylist.YOUTUBE.value) self.youtube = PlaylistDownloader( playlist_type=TypePlaylist.YOUTUBE.value) self.spotify = PlaylistDownloader( playlist_type=TypePlaylist.YOUTUBE.value) self.dirpath = tempfile.mkdtemp()
def main(self): PLD = PlaylistDownloader(spotipyid=self._args.spotipyid, spotipysecret=self._args.spotipysecret) # load the list of list song_list_link = PLD.load_playlist(self._args.input) PLD.download_playlist(song_list_link, out=self._args.output, compress=True)
def main(self): PLD_spotify = PlaylistDownloader( playlist_type=TypePlaylist.SPOTIFY.value, spotipyid=self._args.spotipyid, spotipysecret=self._args.spotipysecret) playlist = PLD_spotify.load_playlist(self._args.input) PLD_spotify.download_playlist(playlist, out=self._args.output, compress=True)
def main(self): PLD_youtube = PlaylistDownloader( playlist_type=TypePlaylist.YOUTUBE.value) # load the list of list song_list_link = PLD_youtube.load_playlist(self._args.input) PLD_youtube.download_playlist(song_list_link, self._args.output, compress=True) PLD_youtube.type_strategy.clean_y_dl()
def get(self, inputname): self._ids = next(self._ids) PLD = PlaylistDownloader(spotipyid=SPOTIPYCLIENTID, spotipysecret=SPOTIPYCLIENTSECRET) playlist = PLD.load_playlist("{}/{}".format(UPLOAD_FOLDER, inputname)) PLD.download_playlist(playlist, "download/downloader_%d" % self._ids, compress=True) return {'fname': "downloader_%d.zip" % self._ids}
def get(self, inputname): self._ids = next(self._ids) PLD_youtube = PlaylistDownloader( playlist_type=TypePlaylist.YOUTUBE.value) youtube_list = PLD_youtube.load_playlist("{}/{}".format( UPLOAD_FOLDER, inputname)) PLD_youtube.download_playlist(youtube_list, "download/youtube_%d/" % self._ids, compress=True) return {'fname': "youtube_%d.zip" % self._ids}
def get(self, inputname): self._ids = next(self._ids) PLD_soundcloud = PlaylistDownloader( "soundcloud", playlist_type=TypePlaylist.SOUNDCLOUD.value) soundcloud_list = PLD_soundcloud.load_playlist("{}/{}".format( UPLOAD_FOLDER, inputname)) PLD_soundcloud.download_playlist(soundcloud_list, "download/soundcloud_%d/" % self._ids, compress=True) return {'fname': "soundcloud_%d.zip" % self._ids}
def get(self, inputname): self._ids = next(self._ids) PLD_spotify = PlaylistDownloader( playlist_type=TypePlaylist.SPOTIFY.value, spotipyid=SPOTIPYCLIENTID, spotipysecret=SPOTIPYCLIENTSECRET) spotify_list = PLD_spotify.load_playlist("{}/{}".format( UPLOAD_FOLDER, inputname)) PLD_spotify.download_playlist(spotify_list, "download/spotify_%d/" % self._ids, compress=True) return {'fname': "spotify_%d.zip" % self._ids}