SHARE
TWEET

greasemonkey iplayer patch

a guest Oct 2nd, 2010 222 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- gmiplayer.txt.orig  2010-10-02 16:38:17.406250000 +0200
  2. +++ gmiplayer.txt       2010-10-02 16:36:27.125000000 +0200
  3. @@ -31,8 +31,9 @@
  4.  play = function(e){
  5.         e.preventDefault();
  6.         var xbmc_host = GM_getValue("XBMC_HOST");
  7. -       var i = new Image();
  8. -       i.src = 'http://'+xbmc_host+'/xbmcCmds/xbmcHttp?command=PlayFile(plugin://video/IPlayer/?pid='+getpid()+')';
  9. +       var i = new XMLHttpRequest();
  10. +       i.open('POST', 'http://'+xbmc_host+'/jsonrpc', false);
  11. +       i.send('{ "jsonrpc": "2.0", "method": "XBMC.Play", "params": { "file": "plugin://plugin.video.iplayer/?pid='+getpid()+'" }, "id": "1" }');
  12.  }
  13.  
  14.  init = function(){
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top