clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.73k stars 674 forks source link

Sync folder of playlists #7249

Open hockeymikey opened 1 year ago

hockeymikey commented 1 year ago

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

System information

Please provide information about your system and the version of Clementine used.

Feature

I have a folder of playlists (m3u) that I want to manage and use with Clementine, but I can't import them (besides https://github.com/clementine-player/Clementine/issues/5722 not being a thing yet) because then it would be in the database, and not editing the files directly. I need them edited directly because I sync my music with nextcloud to my phone, so I need to upload any playlist changes, or receive any if I make changes on the phone side. Additionally, I have some iTunes playlists from family that I generate into m3u files. So I want a way like vanilla music on Android to add a folder for playslists and then options so say just import them automatically, or full way allowing for writing out of the playlists when edited too. I think it would be pretty easy, just keep a file reference with the playlist in the database and anytime it's edited look at the setting to see if it should be written to the flat file or not. Import syncing is easier, just setup on startup to read them all and check the existing DB version if it's the same and add some observers for file changes externally.