Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for song in songs :
- n -= 1
- artist = song['artist']
- track = song['title']
- name = artist + ' - ' + track + '.mp3'
- split_name = split(name)
- if split_name not in music_list :
- print('download %s, ostalos %s'%(name,str(n)))
- cache = urlopen(song['url']).read()
- filename = '/media/solaire-off/4B04F0B93E84428D/1/music/%s'%split_name
- print(filename)
- with open(filename,'wb') as file :
- file.write(cache)
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement