Actually something like that will need to be tested against both nightly and stable versions of XBMC, but probably works fine on both. Only SOME of the calls were changed in the "new" JSON interface, mostly stuff dealing with media metadata. I have never encountered an issue when hitting "play" when testing the widgets against either version, so I think it wrapping it like that in the escapeshellarg() should be all you gotta do for 100% workening
CoinTos, what branch are you running? I committed a version of this widget recently that should work regardless of what version of XBMC you use and regardless of what database back-end you use (meaning nightly, stable, MySQL, and SQLite should all work). Can you test my XBMC Library widgets?
https://github.com/DivinityCycle/mediafrontpage is my repo
You would need to pull xbmcjsonlib.php, functions.php, /Widgets/wXBMCLibrary.php, and /Widgets/libXBMCLibrary.php from there for testing purposes.
On a general note, the IT guys at work put our network into a ridiculous whitelist-based lockdown, so basically anything NOT on the whitelist is blocked. This means I cannot do any sort of remote development (or even get to Gmail) from work at the present time. The last weekend I mostly was in NyQuil-induced sleep, and also played entirely too much MineCraft, so I haven't gotten much work done I'm afraid.
Also, I noticed that the Search widget throws up a bunch of errors similar to the Transmission widget, but only some of the time. I will try to work up a fixed version of the next day or so, since we really shouldn't get errors during normal operations in version 1.0.
Gugahoi, I will check out your new config.php ASAP and get back to you with feedback concerning the proxy setup.
Overall, this project is coming along super well.
Some dumb ideas for Widgets:
Google Google Google!
-Google Tasks: Google recently published an API to view / modify things stored in your Tasks list. This one is low priority, but seems like it could be handy some of the time.
-Google Calendar: I think there's an API on this one. For my media-related stuff I actually stick release dates into a particular calendar for easy reference. Might be handy since MFP is all about media. I am not sure but I think they give you embeddable versions of calendars. If that's true, I think this one wouldn't be too hard, mostly just some CSS tricks to make it look OK alongside all the other widgets?
-Google Voice: Similar, but they don't have a proper API for this one AFAIK. I would maybe actually use it, since I use Google Voice for all my texting.
-Shell Script Launcher: though it would have to have like a million security warnings on it, I am a lazy enough admin that I would occasionally like to be able to click something and have it fire a shell script on my server. Examples: run chmod to fix the permissions on a folder, run a script to move some files from one location to another, etc. Like I said, this would would require lots of documentation to make sure end-users understand "DO NOT USE THIS unless you actually are confident you are secure and can afford to have your server completely hacked". For the Linux people, I can easily document how to grant Apache sudo access to specific commands only (and not general root access). This is how I personally do it, and I am OK with the level of security exposure.
On Feature Request I have thought of: Add some sort of basic .torrent support for the Search widget. I can easily search and download stuff from newsgroups via Search. How hard would it be to add something similar for searching torrents? The main issue I can think of would be how to determine if the ops should be tried in Transmission or uTorrent?
So yeah, food for thought I guess