Page 1 of 1

Syncing playlists with a folder

PostPosted: Sun Aug 05, 2012 3:10 pm
by navels
This is a pretty basic feature, I'm surprised Subsonic doesn't support it out of the box. I have a few playlists that change often (e.g., Week: music added in the last week, Concert: bands that I'm seeing soon, etc.) and I don't want to have to have to log into Subsonic and update the playlists all the time.

Attached is a perl script that

  • Deletes all my Subsonic playlists
  • Uploads all the playlists in a specified folder into Subsonic

This was a little tricker than I thought it would be, because the API doesn't provide a mechanism for uploading playlists. Hope this is useful for others.

Cheers,
Lee

ps Uploading the script as a text file, it seems the forum doesn't like the .pl file extension...

Re: Syncing playlists with a folder

PostPosted: Sun Dec 09, 2012 6:06 pm
by Nick1787
Awesome! Thanks for this man I was thinking of writing something similar glad i searched first.

Re: Syncing playlists with a folder

PostPosted: Sun Dec 09, 2012 6:13 pm
by navels
Happy to help, let me know if you run into any issues . . .