Kodi Community Forum
[RELEASE] Project xbmc-addons-chinese (Chinese addons for Kodi) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Third Party Repositories (https://forum.kodi.tv/forumdisplay.php?fid=157)
+---- Thread: [RELEASE] Project xbmc-addons-chinese (Chinese addons for Kodi) (/showthread.php?tid=64250)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


- NobodyHere - 2012-01-12

sciburst Wrote:You probably already knew this but I am going to mention it anyways. From your log file, XBMC was looking for plugins in the root directory (/root/.xbmc). If you executed XBMC as root and the video plugins were there, then you didn't have problems with file permissions. But if you didn't execute XBMC as root, then that would explain why XBMC was not able to read the plugins' meta data.
Yeah, I did this all as root. Could that be the problem... running XBMC as root?

Edit;
NM. The same issues occurs with a normal user.

Would it be possible to manually download the Tudou, Youku, and CCTV plugins from somewhere to see if they'll even work for this system?


- chimo1 - 2012-01-12

I need help to PPTV IPAD, when you select "Hong Kong" some time worked, other time I got script errors.

My wife love chinese show ):.

Thanks in advanced.


ppsstream plug-in - cmeng - 2012-01-13

aunghtain Wrote:Thank you for your reply. After I set my system locale to chinese, it works, but only after I alt-tab to choose the external player. Is it possible to make it so that it gets focused and no longer need to alt-tab choose it? Also, can you make it so that the external player will quit on media-stop key as well? I'm using remote control and there is no way to enter 'x'. Thank you.

This is currently the limitation of any plug-in that uses external player. In ppstream plugin or similar, it actually launchs the application default player with the vidoe link pass to it.

The player actually gets the focus the very first time it lauches, but to the video display screen and not the application. That is why you need to alt-tab to select the application to take focus. OR using mouse to select the window top panel (if visible) which is a bit tricky especially when the mouse pointer is disabled by the player.

This is the very first problem to use remote to bring a application to focus. Once you can past this, I suppose you can use the remote control to assign a button using a keymapSet.exe to close the player window.

I am also facing the same problem, no choice but to use a remote keyboard right now. Still thinking on a solution - hopefully find one in the near future.


- cmeng - 2012-01-13

NobodyHere Wrote:Yeah, I did this all as root. Could that be the problem... running XBMC as root?

Edit;
NM. The same issues occurs with a normal user.

Would it be possible to manually download the Tudou, Youku, and CCTV plugins from somewhere to see if they'll even work for this system?

Likely as mentioned by sciburst is due to file/directory access right. You can try to use
$ sudo chmod
$ sudo chown
commands to change the access rights of those required dirctories/files by xbmc to the login user's account and see it works.

I suppose direct copy the plugin will work, but then you have to do it every time there is a new update.


- sciburst - 2012-01-13

cmeng Wrote:Likely as mentioned by sciburst is due to file/directory access right. You can try to use
$ sudo chmod
$ sudo chown
commands to change the access rights of those required dirctories/files by xbmc to the login user's account and see it works.

I suppose direct copy the plugin will work, but then you have to do it every time there is a new update.

He did say that he ran XBMC as root. So it is unlikely that he was having permission problems. One thing he can try, in order to generate more clues, is to trace all file-related system calls:

Quote:strace -e trace=file -o xbmc-trace.log xbmc

and then post xbmc-trace.log for us to see. This may help to pin point the problems.


- aunghtain - 2012-01-13

cmeng Wrote:This is currently the limitation of any plug-in that uses external player. In ppstream plugin or similar, it actually launchs the application default player with the vidoe link pass to it.

The player actually gets the focus the very first time it lauches, but to the video display screen and not the application. That is why you need to alt-tab to select the application to take focus. OR using mouse to select the window top panel (if visible) which is a bit tricky especially when the mouse pointer is disabled by the player.

This is the very first problem to use remote to bring a application to focus. Once you can past this, I suppose you can use the remote control to assign a button using a keymapSet.exe to close the player window.

I am also facing the same problem, no choice but to use a remote keyboard right now. Still thinking on a solution - hopefully find one in the near future.

Is cctvlive.exe open source? I'm a programmer and I could probably help with getting focused and using media keys.

Currently, I have a workaround .exe written in c# which
- launches cctvlive.exe as a process
- embeds it in a form
- adds events for media keys
- gets focus in a timer (need to get focus in a loop)
- take arguments and pass it to cctvlive.exe

It appears to be working ok.

But I would love it if I could add it in cctvlive.exe itself.


- aunghtain - 2012-01-13

sciburst Wrote:He did say that he ran XBMC as root. So it is unlikely that he was having permission problems. One thing he can try, in order to generate more clues, is to trace all file-related system calls:



and then post xbmc-trace.log for us to see. This may help to pin point the problems.

Maybe he could change permissions for all these files 777 and see if it's really the problem with the permission.


- NobodyHere - 2012-01-14

sciburst Wrote:He did say that he ran XBMC as root. So it is unlikely that he was having permission problems. One thing he can try, in order to generate more clues, is to trace all file-related system calls:



and then post xbmc-trace.log for us to see. This may help to pin point the problems.
Here's the log.
http://pastebin.com/NKe7DkPn


- cmeng - 2012-01-14

Patch for ppstream (site change on 2012/01/12): Please download from the link below:

http://code.google.com/p/xbmc-addons-chinese/issues/detail?id=17


- taxigps - 2012-01-14

aunghtain Wrote:Is cctvlive.exe open source? I'm a programmer and I could probably help with getting focused and using media keys.

Currently, I have a workaround .exe written in c# which
- launches cctvlive.exe as a process
- embeds it in a form
- adds events for media keys
- gets focus in a timer (need to get focus in a loop)
- take arguments and pass it to cctvlive.exe

It appears to be working ok.

But I would love it if I could add it in cctvlive.exe itself.
All the plugins are open source.
Source code here:
Pps4xbmc: http://robinttt.qupan.cc/5504897.html
Cctvlive: http://robinttt.qupan.cc/5504884.html


- taxigps - 2012-01-14

cmeng Wrote:Patch for ppstream (site change on 2012/01/12): Please download from the link below:

http://code.google.com/p/xbmc-addons-chinese/issues/detail?id=17


Are you interested in joining the project team? I'll give you authorization to submit the code directly.


- cmeng - 2012-01-14

taxigps Wrote:Are you interested in joining the project team? I'll give you authorization to submit the code directly.

yes, I would love too.


- sciburst - 2012-01-14

NobodyHere Wrote:Here's the log.
http://pastebin.com/NKe7DkPn

My apology for overlooking one important thing: plugins are handled by a child Python process, so the command I told you about wouldn't trace the Python calls. If you don't mind trying this again, here are the steps I tried out on my machine and it captured the kind of file-related system calls made by Python:

1. Change to an empty directory

2. Execute this: strace -e trace=file -o xbmc-trace.log -ff xbmc

3. You will get lots of little log files like xbmc-trace.log.[pid].

4. Execute "grep -i tudou xbmc-trace.log.*" to identify the log file that contains lots of tudou related activities and post that file.

I tried the above and it clearly showed which files Python tried to access. Hopefully, this will lead us to the cause of your problems.


- sciburst - 2012-01-14

NobodyHere Wrote:Here's the log.
http://pastebin.com/NKe7DkPn

Also, when you run your trace, be sure to try loading the Tudou plugin until you see an error message in XBMC. Quit XBMC and then examine the log files the way I described in my previous post.


- taxigps - 2012-01-14

cmeng Wrote:yes, I would love too.

You can use your googlecode id([email protected]) to commit to the project now. Welcome!

and read this before commit: http://bbs.htpc1.com/thread-76915-1-1.html