Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading Playlists #178

Open
DevilsDesigns opened this issue Nov 13, 2022 · 7 comments
Open

Downloading Playlists #178

DevilsDesigns opened this issue Nov 13, 2022 · 7 comments

Comments

@DevilsDesigns
Copy link

Is there currently a way to download playlists created?

@agersant
Copy link
Owner

Sorry, this is not currently supported.

@DevilsDesigns
Copy link
Author

DevilsDesigns commented Nov 13, 2022

can this be added as an enhancement in the future? I couldnt find the enhancement tag

@agersant agersant reopened this Nov 13, 2022
@agersant
Copy link
Owner

agersant commented Nov 13, 2022

I just added the tag. Do you mean downloading the playlist metadata (eg. an m3u file) or an archive containing the audio files?

@DevilsDesigns
Copy link
Author

I mean downloading an m3u with all data from the playlist so if need be we can move them around to different pcs or apps. Is that possible?

@agersant
Copy link
Owner

Note that Polaris playlists are saved on the server so you shouldn't have to move them between different PC, as long as you are connecting to the same Polaris server.

Exporting playlist m3u files would be possible, but technical limitations make it not very useful. For each song the playlist, the m3u file must store a path or URL where the song can be accessed. In the context of polaris, the options are:

  • URL pointing directly to the audio file (eg. http://mypolarisserver.com/audio/my_music/classical/cool-song.mp3). This is fairly useless as accessing these URL requires authentication headers which media players can't provide. This means trying to open one of these m3u files in foobar / VLC / Rythmbox would not work.
  • Absolute file paths on the server (eg. /home/devilsdesigns/desktop/music/classsical/cool-song.mp3). There is no authentication problem with this solution but the playlist would only work when played on the server itself, or another computer where the paths happen to also be valid. I also don't love that this leaks the folder structure from the server.
  • Relative file paths. This makes the most sense, paths would be similar to the ones seen in the Polaris UI (eg. /my_music/classical/cool-song.mp3 ), but a playlist file like this could not be played anywhere.

Would any of these make sense for your use case?

@Typhonragewind
Copy link

The second option would be highly desirable for my use case

@pmphfm
Copy link
Contributor

pmphfm commented May 6, 2023

I am toying with the idea of exporting a playlist for some time now. Here is my use case and a solution that I have come up with.

Use case

  • I use docker
  • I have two mount points
    • /path1/english mounts in /music/english
    • /path2/hindi mounts in /music/hindi
  • Some playlists contain songs from both mount points
  • Some playlists are large
  • I want both import and export feature

Solution

  • Use relative path.
    • This keeps the exported m3u file small and still allows to be usable without any editing when there is single mount point.
    • This works on docker as well as non-docker instances.
  • Use m3u custom m3u header to give hint about absolute path
    • This helps use the m3u file with quick edit by manually editing (find and replace)

A little more details here - https://github.com/pmphfm/polaris/blob/master/docs/user-guide-src/src/playlists.md#export

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants