XBMC-PHP-RPC - a PHP JSON-RPC library supporting HTTP and TCP
DKreeK
Junior Member Posts: 21 Joined: Jan 2010 Reputation: 0 |
2011-02-01 15:04
Post: #11
Thank you very much, I will test tonight as soon as I get back
|
| find quote |
DKreeK
Junior Member Posts: 21 Joined: Jan 2010 Reputation: 0 |
2011-02-02 07:23
Post: #12
It works very fine. Thank you
|
| find quote |
Mindzai
Fan Posts: 333 Joined: Aug 2010 Reputation: 0 |
2011-02-02 18:03
Post: #13
Good to hear
|
| find quote |
Ghostface
Junior Member Posts: 21 Joined: Jun 2008 Reputation: 0 Location: Austria |
2011-02-10 22:14
Post: #14
I have been using your wrapper but ran into a problem when trying to fetch my whole Movie DB.
I might be wrong but it looks like you are trying to decode a non utf-8 string which fails as soon as you have some weird foreign movies in your DB. Changin this function to utf8_encode the string solved my problem: PHP Code: private function decodeResponse($json) {I checked the php.ini is running with a default_charset of utf-8 so I am not exactly sure if the problem is due to me having something configured the wrong way. Anyways good job with the wrapper and maybe this is usefull info, if I did something wrong please let me know
|
| find quote |
darkscout
Posting Freak Joined: Jul 2008 Reputation: 12 |
2011-02-11 00:49
Post: #15
Some small changes. xbmc.php, line 295. I was getting a warning that index 0 didn't exist, so I changed it to this:
Code: public function __call($method, $args = null) {Also, in the example wall, I changed the code to this, that way I could track down what movies I needed images for, plus I didn't have a broken img tag: Code: //Display the "movie-wall"![]() Code: GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%'; |
| find quote |
Mindzai
Fan Posts: 333 Joined: Aug 2010 Reputation: 0 |
2011-02-11 07:05
Post: #16
Ghostface, thanks for the bug report I will look into this today.
darkscout, that isn't my code! I think you may have the wrong thread
(This post was last modified: 2011-02-11 07:09 by Mindzai.)
|
| find quote |
darkscout
Posting Freak Joined: Jul 2008 Reputation: 12 |
2011-02-11 07:19
Post: #17
You are correct Sir. No clue where I got this PHP library from
![]() Code: GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%'; |
| find quote |
Mindzai
Fan Posts: 333 Joined: Aug 2010 Reputation: 0 |
2011-02-11 12:57
Post: #18
@Ghostface
I was unable to reproduce your issue. I added some movies to the database with accented European characters. XBMC always returned UTF-8 encoded responses. Can you give me some more details about your OS and an example of a movie title which is causing a problem. Could you also please let me know what issue you are having specifically (ie any PHP errors). I have added some code which will attempt to convert non-UTF-8 encoded string into UTF-8 which may or may not solve your issue, but as I say it's hard for me to confirm as I can't reproduce the issue. |
| find quote |
Ghostface
Junior Member Posts: 21 Joined: Jun 2008 Reputation: 0 Location: Austria |
2011-02-12 13:27
Post: #19
Nevermind, actually adding utf8_encode messes up regular german chars.
I nailed the problem down to one particular Movie that had strange characters in the filename (so strange they only show up as in my terminal)after utf8_encoding that filename they resulted in: Quote:ÔÂÇò The error message btw was: Quote:Invalid JSON RPC response I simply renamed that file and all should be good now. Thanks for checking tho! |
| find quote |
Mindzai
Fan Posts: 333 Joined: Aug 2010 Reputation: 0 |
2011-02-14 13:49
Post: #20
OK thanks for letting me know
|
| find quote |

![[Image: aeKO.jpeg]](http://i.imm.io/aeKO.jpeg)
I think you may have the wrong thread
in my terminal)
Search
Help