from musicsync import MusicSync import glob import os ms = MusicSync("*****@*****.**") os.chdir("g:/public/music") for m3ufile in glob.glob("*.m3u"): print "Found: " + m3ufile ms.sync_playlist("g:/public/music/" + m3ufile)
import sys from musicsync import MusicSync if len(sys.argv) == 2: ms = MusicSync("*****@*****.**","zgbeknufxctrjvxn") # I use two-factor auth, so the password in my case is a generated "one-time" password ms.sync_playlist(sys.argv[1]) else: print "usage: %s <filename>" % sys.argv[0]
from musicsync import MusicSync ms = MusicSync("*****@*****.**", "password") # I use two-factor auth, so the password in my case is a generated "one-time" password #Dumped output from something like http://groovylists.com/?do=spotify dump = """Mysterons Portishead Tree by the River Iron & Wine""" songs = [(a[1].strip(), a[0].strip()) for a in [s.split("\t") for s in dump.split("\n")]] ms.sync_playlist(songs) ms.sync_playlist(songs, playlist_title="Mellow Music")
from musicsync import MusicSync ms = MusicSync("*****@*****.**","password") # I use two-factor auth, so the password in my case is a generated "one-time" password ms.sync_playlist("C:/Path/To/Combi.m3u") ms.sync_playlist("C:/Path/To/Other Playlist.m3u")