2011-04-09, 07:05
giftie Wrote:I just finished building the latest version of XBMC, though I have more problems(there is an error in the slides now....)
But I think I did come across the JSONRPC call that is in question...
I think you might feel confident enough to change a line of code to test to see if this fixes your problem...
in the file 'folder.py' (script.cinema.experience/resources/lib/folder.py)
replace the following line:
Code:json_query = '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "%s", "recursive": "%s"}, "id": 1}' % ( escapeDirJSON( dir_name ), media_type, recursive )
with this
Code:json_query = '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "%s"}, "id": 1}' % ( escapeDirJSON( dir_name ), media_type )
When I first tried the script, it failed to play any videos until I changed this.. I will make this change anyways since it does not break the script for Dharma users(the 'recursive' was never working anyways..)
Awesome, you are the man!
I was first afraid your fix will break recursive but I just tried it and it still works which is very important to me because with ~2000 trailers in one folder switching between trailers in playlist is incredibly slow (around 5s+ and even worse if it's SMB folder). Moving each trailer to it's own folder named as it's filename (Trailers_Local_folder\movie1-trailer.mov -> Trailers_Local_folder\movie1-trailer\movie1-trailer.mov) makes the switch almost instant. So, CE finding trailers with this directory structure is pretty important to me. Fortunately it still works, so I'm really happy with this fix
Thank you very much.