PleXBMC client for XBMC



I've learned my lesson, only one skin at a time - I think last time I spent too much time trying to please everyone and not enough time making one skin work great. Once you've finished up with V4 i'm happy to help provide the hooks/properties that it can use - I'm only look at Quartz as the plexbmc skin for now.

Just tried out the latest git and I can’t seem to get it working


<br />
12:53:31 T:2953850880  NOTICE: no match<br />
12:53:31 T:2953850880    INFO: -->Python script returned the following error<--<br />
12:53:31 T:2953850880   ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'><br />
12:53:31 T:2953850880   ERROR: Error Contents: 'ascii' codec can't encode character u'\xf6' in position 35: ordinal not in range(128)<br />
12:53:31 T:2953850880   ERROR: Traceback (most recent call last):<br />
                                              File "/Users/yakumo/Library/Application Support/XBMC/addons/plugin.video.plexbmc/default.py", line 3561, in <module><br />
                                                displaySections()<br />
                                              File "/Users/yakumo/Library/Application Support/XBMC/addons/plugin.video.plexbmc/default.py", line 840, in displaySections<br />
                                                getAllSections()<br />
                                              File "/Users/yakumo/Library/Application Support/XBMC/addons/plugin.video.plexbmc/default.py", line 330, in getAllSections<br />
                                                print "["+str(oneCount)+":"+str(twoCount)+"] Checking " + onedevice['title'] + " and " + twodevice['title']<br />
                                              File "<string>", line 6, in write<br />
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 35: ordinal not in range(128)<br />
12:53:31 T:2953850880    INFO: -->End of Python script error report<--<br />
12:53:31 T:2953850880    INFO: Python script stopped<br />
12:53:31 T:2953850880   DEBUG: Thread XBPyThread 2953850880 terminating<br />
12:53:31 T:2890375872   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating<br />
12:53:31 T:2890375872   ERROR: GetDirectory - Error getting plugin://plugin.video.plexbmc<br />
12:53:31 T:2890375872   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexbmc) failed<br />
12:53:31 T:2890375872   DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video/)<br />
12:53:31 T:2890375872   DEBUG:   ParentPath = []<br />
12:53:31 T:2953850880   ERROR: SetThreadInfo: error Invalid argument<br />
12:53:31 T:2953850880  NOTICE: Thread Background Loader start, auto delete: false<br />
12:53:31 T:2890375872   DEBUG: waiting for python thread 8 to stop<br />
12:53:31 T:2890375872   DEBUG: python thread 8 destructed<br />
12:53:31 T:2890375872   DEBUG: ------ Window Init (DialogKaiToast.xml) ------<br />
12:53:31 T:2890375872   DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)<br />
12:53:31 T:2953850880   DEBUG: Thread Background Loader 2953850880 terminating<br />
12:53:31 T:2890375872   DEBUG: ------ Window Deinit (DialogProgress.xml) ------<br />
12:53:35 T:2890375872   DEBUG: Keyboard: scancode: 22, sym: 0069, unicode: 0069, modifier: 0<br />
12:53:35 T:2890375872   DEBUG: OnKey: i (f049) pressed, action is Info<br />
12:53:35 T:2890375872   DEBUG: Keyboard: scancode: 7e, sym: 0111, unicode: f700, modifier: 0<br />
12:53:35 T:2890375872   DEBUG: OnKey: up (f080) pressed, action is Up<br />
12:53:36 T:2890375872   DEBUG: Keyboard: scancode: 7d, sym: 0112, unicode: f701, modifier: 0<br />
12:53:36 T:2890375872   DEBUG: OnKey: down (f081) pressed, action is Down<br />
12:53:36 T:2890375872   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------<br />
12:53:38 T:2890375872   DEBUG: ------ Window Init (Pointer.xml) ------<br />
12:53:39 T:2890375872   DEBUG: ------ Window Deinit (Pointer.xml) ------<br />
12:53:41 T:2890375872    INFO: Python, unloading python shared library because no scripts are running anymore <br />


Pah - the plex XML world would be a happier place if we all spoke the same language.



It’s a char encoding issue, I just need to ensure that I code up all the sections names correctly. It’s on my test plan, but I need to break out my test Plex Media server with the french section and movie titles (which has sat in a box for 10 months!)



=) Great I will now crawl back in the hole of waiting for a fix. Great work as always.


:P

Thanks for testing, I have pushed up a fixed version of default.py in github if you want to see if it works. I'm still testing myself, movies/tv are ok, just going onto plugin to see what damage I've caused now.



15:38:48 T:2955980800   ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'><br />
15:38:48 T:2955980800   ERROR: Error Contents: 'ascii' codec can't encode character u'\xf6' in position 35: ordinal not in range(128)<br />
15:38:48 T:2955980800   ERROR: Traceback (most recent call last):<br />
                                              File "/Users/yakumo/Library/Application Support/XBMC/addons/plugin.video.plexbmc/default.py", line 3561, in <module><br />
                                                displaySections()<br />
                                              File "/Users/yakumo/Library/Application Support/XBMC/addons/plugin.video.plexbmc/default.py", line 840, in displaySections<br />
                                                getAllSections()<br />
                                              File "/Users/yakumo/Library/Application Support/XBMC/addons/plugin.video.plexbmc/default.py", line 330, in getAllSections<br />
                                                print "["+str(oneCount)+":"+str(twoCount)+"] Checking " + onedevice['title'] + " and " + twodevice['title']<br />
                                              File "<string>", line 6, in write<br />
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 35: ordinal not in range(128)<br />
15:38:48 T:2890375872   ERROR: GetDirectory - Error getting plugin://plugin.video.plexbmc<br />
15:38:48 T:2890375872   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexbmc) failed       



Now I get this =) (Same as before I think)


Hmm, it's bound to be something simple, just strange I haven't seen it with my extended-char section name.. I'll find it sooner of later. B)

Right - this is a BETA version of PleXBMC V2:


  • myplex integration (this is the only way to connect to remote servers)
  • Fixes for TV section library refresh
  • Fixed for Plugins (I’ve tested a fair few and they seem to work)
  • Some fixes for non-refreshing artwork - however not 100% sure I have this one down (as XBMC waits 24 hours between checks)



    Somethings might not work - here is known issue list:
  • Bonjour - i broke it! Fixed in next version
  • Photos/some photo plugins (need to fully test code)
  • You may be prompted twice to confirm a resume time (needs a change in XBMC)
  • I’ve tried to fix non-ASCII charaters, but I have limited test data - so if this fails I could do with a debug log.



    Remember this is BETA:



    https://github.com/downloads/hippojay/plugin.video.plexbmc/plugin.video.plexbmc-V2.zip

Sorry late in the game. Is this plugin supported under XBMC Eden?



Perfect, will try it when I get home from work :)


Yes it supported under Eden. Running it now.

Great work Hippo it works like a charm now no, more errors. =)


Yes. In fact it's EDEN only and will not work under Dharma. I've not yet tried it on a nightly (frodo/froyo?) but it should work.

Just tried beta version. Subfolder inside a section’s folder don’t seems to be supported when in “by folder” mode.



For example, when viewing my “Musique” section using “by folder” mode :

The fs root for this section is /data/musique/



If mp3 are stored this way : /data/musique/folder/.mp3

All works fine, I can see the “folder” and browse files into it



But when mp3s are stored this way :

/data/musique/folder/Disc1/
.mp3

/data/musique/folder/Disc2/.mp3

/data/musique/folder/Disc3/
.mp3

The folder Disc1,2,3 are just not displayed by Plexbmc (neither are mp3s)



No error log at all :



Thanks - "by Folder" has always been something that hasn't worked for nested items correctly, as the output produced by PMS doesn't map nicely into the plexbmc functions.

I'm just testing new code as part of some optimisation and cleanup work i'm doing on the plugin which should address this, so hopefully working by the next BETA.



I'm using XBMC Eden on Ubuntu,the latest PleXBMC Beta V2 and Cirrus extended V2 - pleXBMC 0.3-2.0 as skin. The issue I'm having is that when TV Shows or Movies are highlighted on the menu the background turns black instead of showing fanart.

Furthermore, I have a weird bug that crashes XBMC when Cirrus has Recently Added Enabled. It's not really a hassle for me, but it was a pain to find out what was crashing it.


EDIT: Removed log.


Seems to work with Frodo. I'm running Alpha 2 on a 64-bit Windows 7 Mac Mini. Thanks for your continued support and development!


Not sure about that - although I believe that the cirrus skin I used wasn;t fully EDEN supported. As of V2, I'm only going to support the supplied Quartz skin to keep my workload down.



See above, i'm not sure that the recently added script is supported within Eden.


Best edit your log or remove it as it exposes your IP address and Plex token. With these I could access your PMS server.

What year/model mac mini Btitwize? Are you bit streaming HD audio with it?



Thanks, changed to Quartz latest version. Even though pleXBMC integration is enabled, Plex TV Shows and Movies tabs aren't being displayed on the homescreen. Is this the expected behavior?


Depends how many sections you have. I think by default I only configured up 10 slots, so if you have more than 10 overall (i.e. movies+tv+pictures+music)then some get missed. I'm going to up this when I get round to updating the quartz skin. This might be your issue if you have lots of sections.