brainwave9 / SiriProxy-XBMC

Siri Proxy plugin to control XBMC
28 stars 18 forks source link

XBMC 12.0 Error #8

Closed jarrah31 closed 11 years ago

jarrah31 commented 11 years ago

When trying to control XBMC 12 beta, I receive the following error:

[SiriProxy-XBMC] An error occurred: A JSON text must at least contain two octets!

Control of XBMC 11 works fine, so I imagine there must be an API change somewhere?

Thanks

Deanmv commented 11 years ago

The API was changed between 11 and 12, I've not tested this recently (Siri Proxy is playing up) but last time I tried it this worked https://github.com/brainwave9/SiriProxy-XBMC/pull/7

RaNaMaster commented 11 years ago

this is what im getting

[SiriProxy-XBMC] Connecting to the XBMC interface (default) [SiriProxy-XBMC] XBMC API Version {"major"=>6, "minor"=>0, "patch"=>0} - Eden [SiriProxy-XBMC] Finding TV show (API version {"major"=>6, "minor"=>0, "patch"=>0}) /home/rana/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bundler/gems/SiriProxy-XBMC-bc67ed6b36c8/lib/xbmc_library.rb:119:in find_show': undefined methodeach' for nil:NilClass (NoMethodError) from /home/rana/.rvm/gems/ruby-1.9.3-p362@SiriProxy/bundler/gems/SiriProxy-XBMC-bc67ed6b36c8/lib/siriproxy-xbmc.rb:144:in block in <class:XBMC>' from /home/rana/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:47:ininstance_exec' from /home/rana/.rvm/gems/ruby-1.9.3-p362@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:47:in `block (2 levels) in process' zlib(finalizer): the stream was freed prematurely. zlib(finalizer): the stream was freed prematurely.

Deanmv commented 11 years ago

I fixed it with this: https://github.com/Deanmv/SiriProxy-XBMC/commit/bc67ed6b36c8e7275e0507109faebdb083678000

brainwave9 commented 11 years ago

Merged. Thanks Deanmv !