koel icon indicating copy to clipboard operation
koel copied to clipboard

Feature: Import .m3u playlist

Open rollecode opened this issue 10 years ago • 9 comments

Hello! I have a large 3000 song list from Subsonic, which is in .m3u format. The songs are in same file path than in koel, the file is constructed like this:

#EXTM3U
/media/giant/albums/Artist1 - Album1 (2015)/01 The Name of the Song.mp3
/media/giant/albums/Artist2 - Album2 (2016)/05 - The Name of the Random Song 2.mp3

Can you consider about the import feature for Koel playlists?

rollecode avatar Mar 22 '16 10:03 rollecode

If the songs are under the same configured path, why don't you just resync instead?

phanan avatar Mar 28 '16 11:03 phanan

What do you mean by resync? I'd like to add those songs to a playlist, is there a way to sync m3u somehow as playlist?

rollecode avatar Mar 28 '16 12:03 rollecode

If your media path is /media/giant/ then you can just run ./artisan koel:sync. I'm not sure what you mean by importing a playlist into Koel – Koel doesn't support media outside of the configured path.

phanan avatar Mar 28 '16 12:03 phanan

I mean this:

Screenshot

Currently you can add a playlist, add songs from existing library or remove playlist. I'm asking about a feature to import songs to a playlist, or better yet - import complete playlists?

rollecode avatar Mar 28 '16 13:03 rollecode

I still don't get the point of export/importing songs from and into Koel. The songs are meant to be kept on the server, not your local machine, right? How will playlists with server paths for songs work?

phanan avatar Apr 01 '16 09:04 phanan

Closing due to inactivity.

phanan avatar Apr 11 '16 13:04 phanan

I think what @ronilaukkarinen meant was a feature to build Koel playlists from an .m3u, using songs already imported in the koel library.

Use case: I have many playlists made in iTunes. I would like to import these into Koel, without having to manually rebuild them.

also I am also interested in this feature.

Porco-Rosso avatar Jun 24 '17 22:06 Porco-Rosso

I am considering switching to koel and this is a big point in my considerations. I have my music files in google play music and I'd like to somehow import the existing playlists to koel.

I'll have to check whether my "export m3u playlist from google play music" script is still working, but importing playlists from various other services is likely generally a big plus for switching.

Edit: I just noticed the API and if I decide to use koel it would probably be not that hard to script the import of playlists.

lucidBrot avatar Jun 26 '20 15:06 lucidBrot

@lucidBrot I am currently using a modified version of this script to import my m3u playlists into Koel. It's a bit of a hack, but controlled with a crontab entry it does its job for me. https://github.com/kellertobias/m3u-sync

Porco-Rosso avatar Jun 28 '20 11:06 Porco-Rosso