View Single Post
Posts: 237 | Thanked: 193 times | Joined on Feb 2010 @ Brighton, UK
#129
Originally Posted by Win7Mac View Post
Attached files as requested, "browse.jpg" is the complete xml.
Hope this helps. Thank you!

PS: Not running the fix for the playing status bar issue yet.
Thanks, that's immensely helpful. VLC's new 'browser' interface has lost some compatibility across Windows and Linux servers unfortunately! Whereas "~/" used to work consistently on both and now throws an error everywhere, "/" works for root on Unix style systems and gives garbage on Windows and "" (blank) works for root on Win but errors on Linux. This probably means that the client now needs to know what system the server is running on. I'll have to look at fixes.

For the huge playlist issue I can give you a patched file for your windows machine that will suppress returning the media library whilst still returning the real playlist. It's a simple fix to edit :

C:\Program Files (x86)\VideoLAN\VLC\lua\http\requests\playlist.xml

Old version, lines 68 - 83
Code:
printitem = function(item)
	local children=NULL

	if item.type=="node" then
		children=printnode(item)
		if (children) then
			for i,v in ipairs(children) do
				printitem(v)
			end
		end
		print ("</node>")
	else
		printleaf(item)
	end
end
New version (attached in zip file)
Code:
printitem = function(item)
	local children=NULL

	if item.type=="node" then
	       if item.id=="3" then
                        -- no op
	       else
                       children=printnode(item)
                       if (children) then
                              for i,v in ipairs(children) do
                                       printitem(v)
                              end
                       end
                       print ("</node>")
                end
	else
		printleaf(item)
	end
end
Make a backup of the old version just in case of course...

I'll see how quickly I can work around the browsing issue.

Thanks again.
Attached Files
File Type: zip playlist.zip (1.1 KB, 151 views)