Public bug reported:

Problem:
The request of playlist.json returns 'current' state for all items with same 
file uri.

Test:
1. Start VLC in web server mode ( View > Add Interface > Web )
2. Add the same media file many times into playlist ( switch to playlist mode 
for easier check, use: ctrl+L )
3. Then, request for 'playlist.json' from the browser. Default url: 
http://localhost:8080/requests/playlist.json
4. All items listed have the 'current' state setted - FAIL

Expected behaviour:
Only the selected item from playlist should have the 'current' state setted 
since items are unique.

Affected Version: VLC Twoflower 2.0.9

Suggestion:
Also as improvement, the 'current' key should have 'true' as value and not 
'current' (string). Example:
{
...
"id": 10
"current": true
}

** Affects: vlc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: json playlist playlist.json request

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1272132

Title:
  playlist.json returns 'current' for all items with same file uri

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1272132/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to