Skip to content

Add Song to play queue from path #316

@TheSquiddyLink

Description

@TheSquiddyLink

I just want to say that BeefWeb has been absolutely amazing, and I have been using its API for a bunch of projects.

When working on a connection with the API, I was trying to add a song to the queue, but I noticed two things about it.

  1. To queue a song, you must have the playlist ID and the song index.
  2. When the queued song plays, it will change the current playlist to source song's playlist

Personally, I think having it instead of adding the song to the queue without changing the playlist would be extremely nice, as well as changing it to accept a file path for the input. Totally understand there are security risks with that, but since the number of songs in a playlist changes, going by the index of the song can make the script queue the wrong song if songs where added or removed to the playlist.

I personally like how the /context_command: "Add to playback queue" works, as this will accept the file path of the song and add it to the queue, so even if the song is on a different playlist or not on any, it will still play without changing the current playlist. I'm not sure if /context_command is native or a component I have installed on Foobar, so I do apologize for that.

Here is an example of the command

path\to\foobar2000\foobar2000.exe /context_command:"Add to playback queue" "path\to\song.mp3"

If nessisary, I can provide screenshots or videos.

Thank you for creating a wonderful server, and I am looking forward to your response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions