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)
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")
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 # Quick Notes # Using the directions to export a file from Rhapsody, make the delimiter (\), # output columns Playlist,artist,album,title (See playlist3.txt) example # url:http://www.cutdek.com/blog/2011/6/23/exporting-your-rhapsody-library-to-csv.html #you must have a Google Music All Access Subscription ms = MusicSync("google_username","google_password") ms.add_rhapsody_playlist("playlist.txt")
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")