2011-04-09, 03:38
ezechiel1917 Wrote:I have updated to newer git version (24/03->08/04 pvr ppa) and trailers from local folders suddenly stopped working here too.
giftie: do you have any idea what has changed in xbmc code recently that could prevent local scraper from working? can it be related to move to external python or JSONRPC changes?
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..)