diff --git a/share/lua/http/requests/playlist.xml b/share/lua/http/requests/playlist.xml
index 28101962545f31ee38903079fc090615a4b80b5e..8a17660d8eedd5c4e98f8a4929db903b58ba1caa 100644
--- a/share/lua/http/requests/playlist.xml
+++ b/share/lua/http/requests/playlist.xml
@@ -38,7 +38,12 @@ function print_playlist(item)
print("")
else
local name, path = vlc.strings.convert_xml_special_chars(item.name or "",item.path or "")
- print("")
+ local currentItem = vlc.input.item().uri( vlc.input.item() )
+ local current = ""
+ if currentItem == path then
+ current="current='current'"
+ end
+ print("")
end
end
function a(t,pre)