INTERACT FORUM
More => Old Versions => JRiver Media Center 20 for Linux => Topic started by: prahl on April 17, 2015, 05:03:27 am
-
if call the following requests in this order, I get a wrong result.
1) ClearPlaylist: http://localhost:52199/MCWS/v1/Playback/ClearPlaylist
2) Add a track: http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=End&Filenames=A_TRACK
3) ClearPlaylist: http://localhost:52199/MCWS/v1/Playback/ClearPlaylist
4) Add a track: http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=End&Filenames=A_TRACK
I would expect a playlist with one track, but I have a playlist with 2 tracks. It seems that 3) is ignored.
The following solved the problem:
1) ClearPlaylist+Add a track: http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=-1&Filenames=A_TRACK
2) ClearPlaylist+Add a track: http://localhost:52199/MCWS/v1/Playback/PlayByFilename?Location=-1&Filenames=A_TRACK
Now I have a playlist with one track only.
With "Location=-1" the playlist is cleared faster.
Do you have any ideas why this is happening?