RE: PleXBMC add-on / skin integration support - Zekeman - 2014-01-16
(2014-01-16, 20:04)pecinko Wrote: (2014-01-16, 19:27)Zekeman Wrote: (2014-01-16, 14:31)pecinko Wrote: OK, please try version 3.4.2:
http://tinyurl.com/nokxz7g
Pecinko,
Thanks for awesome work as usual... where can I find a change log?
- Home page sections should refresh properly
- Script error should be fixed
- Breadcrumbs should be improved
Guys try manually setting PMS IP address, add or remove MyPlex login, restart a few times.
This error is very weird as it suggest script has a problem parsing (valid!) XML file for some reason. You can try using element tree instead of celementtree (if you know your way in python) but script will parse at least 3-4 times slower. Am still not sure what exactly is going on.
Im already set for manual PMS IP address and never actually used the login...
I have reset it about 7 times and still get the Script error... even going back to 3.4.0 still gives me the error...
RE: PleXBMC add-on / skin integration support - berserk - 2014-01-16
I changed line 396 like this:
Code: return {'serverName': server.attrib['friendlyName'].encode('utf-8'),
and line 401 like this:
Code: 'uuid' : server.attrib['machineIdentifier'],
and these solved my problem (but i had to reboot the pi for them to take effect, before the reboot I saw the previous error about etree.fromstring() in the log file). After the reboot I can see all my Plex Movies and TV Shows and the log had no errors. Thanks again. Is there anything I can/should do?
(2014-01-16, 19:42)berserk Wrote: (2014-01-16, 14:31)pecinko Wrote: OK, please try version 3.4.2:
http://tinyurl.com/nokxz7g
Thanks for the update. There is still an error but it has changed. This is my log:
Code: 17:39:01 T:2873095264 NOTICE: PleXBMC -> Running with cElementTree on Python 2.5+
17:39:01 T:2873095264 NOTICE: ===== PLEXBMC START =====
17:39:01 T:2873095264 NOTICE: PleXBMC -> Running Python: sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
17:39:01 T:2873095264 NOTICE: PleXBMC -> Running PleXBMC: 3.4.2
17:39:01 T:2873095264 NOTICE: PleXBMC -> FullRes Thumbs are se to: false
17:39:01 T:2873095264 NOTICE: PleXBMC -> CWD is set to: /storage/.xbmc/addons/plugin.video.plexbmc
17:39:01 T:2873095264 NOTICE: PleXBMC -> Platform: Linux/RPi
17:39:01 T:2873095264 NOTICE: PleXBMC -> Flatten is: 0
17:39:01 T:2873095264 NOTICE: PleXBMC -> Settings streaming: 2
17:39:01 T:2873095264 NOTICE: PleXBMC -> Setting filter menus: true
17:39:01 T:2873095264 NOTICE: PleXBMC -> Setting debug to true
17:39:01 T:2873095264 NOTICE: PleXBMC -> Setting stream Control to : XBMC CONTROL (0)
17:39:01 T:2873095264 NOTICE: PleXBMC -> Force DVD playback: false
17:39:01 T:2873095264 NOTICE: PleXBMC -> SMB IP Override: true
17:39:02 T:2873095264 NOTICE: PleXBMC -> NAS IP: 192.168.1.130
17:39:02 T:2873095264 NOTICE: PleXBMC -> Script argument is ['plugin.video.plexbmc', 'amberskin', 'nocat']
17:39:02 T:2873095264 NOTICE: == ENTER: get_params ==
17:39:03 T:2873095264 NOTICE: PleXBMC -> get_params: Parameter string: nocat
17:39:03 T:2873095264 NOTICE: PleXBMC -> Detected parameters: {}
17:39:03 T:2873095264 NOTICE: == ENTER: amberskin() ==
17:39:03 T:2873095264 NOTICE: == ENTER: discoverAllServers ==
17:39:03 T:2873095264 NOTICE: PleXBMC -> Settings hostname and port: 192.168.1.140 : 32400
17:39:03 T:2873095264 NOTICE: == ENTER: getLocalServers ==
17:39:03 T:2873095264 NOTICE: == ENTER: getURL ==
17:39:03 T:2873095264 NOTICE: PleXBMC -> getURL: url = 192.168.1.140:32400/
17:39:03 T:2873095264 NOTICE: PleXBMC -> getURL: header = {}
17:39:04 T:2873095264 NOTICE: PleXBMC -> getURL: ====== XML returned =======
17:39:04 T:2873095264 NOTICE: <?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="13" flashInstalled="0" friendlyName="Perit’s Mac mini" machineIdentifier="9b5d235304d63abd986c93416dbc12b5d9832293" multiuser="1" myPlex="1" myPlexMappingState="failed" myPlexSigninState="invalid" myPlexUsername="berserk" platform="MacOSX" platformVersion="10.8.5" requestParametersInCookie="1" silverlightInstalled="0" soundflowerInstalled="0" sync="1" transcoderActiveVideoSessions="0" transcoderAudio="1" transcoderVideo="1" transcoderVideoBitrates="64,96,208,320,720,1500,2000,3000,4000,8000,10000,12000,20000" transcoderVideoQualities="0,1,2,3,4,5,6,7,8,9,10,11,12" transcoderVideoResolutions="128,128,160,240,320,480,768,720,720,1080,1080,1080,1080" updatedAt="1389799204" version="0.9.8.18.290-11b7fdd" webkit="1">
<Directory count="1" key="channels" title="channels" />
<Directory count="1" key="clients" title="clients" />
<Directory count="1" key="library" title="library" />
<Directory count="3" key="music" title="music" />
<Directory count="2" key="photos" title="photos" />
<Directory count="1" key="playQueues" title="playQueues" />
<Directory count="1" key="player" title="player" />
<Directory count="1" key="playlists" title="playlists" />
<Directory count="1" key="search" title="search" />
<Directory count="1" key="servers" title="servers" />
<Directory count="1" key="system" title="system" />
<Directory count="1" key="transcode" title="transcode" />
<Directory count="15" key="video" title="video" />
</MediaContainer>
17:39:04 T:2873095264 NOTICE: PleXBMC -> getURL: ====== XML finished ======
17:39:04 T:2873095264 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'dict' object is not callable
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 5162, in <module>
amberskin()
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 3735, in amberskin
server_list = discoverAllServers()
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 299, in discoverAllServers
local_server = getLocalServers(das_host, das_port)
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 396, in getLocalServers
return {'serverName': server.attrib('friendlyName','Server').encode('utf-8'),
TypeError: 'dict' object is not callable
-->End of Python script error report<--
RE: PleXBMC add-on / skin integration support - pecinko - 2014-01-16
(2014-01-16, 20:14)berserk Wrote: and these solved my problem (but i had to reboot the pi for them to take effect, before the reboot I saw the previous error about etree.fromstring() in the log file). After the reboot I can see all my Plex Movies and TV Shows and the log had no errors. Thanks again. Is there anything I can/should do?
I think you have been very helpful already I'll change the code and hopefully this error will be fixed for good. I'm not able to reproduce it at all.
RE: PleXBMC add-on / skin integration support - Zekeman - 2014-01-16
I have tried to change the code myself.. and I still get the Script Error even after multiple reboots... Im starting with a fresh XBMC build and I will start with 3.40 again to see atleast if it loads up.
RE: PleXBMC add-on / skin integration support - pecinko - 2014-01-16
(2014-01-16, 20:27)pecinko Wrote: (2014-01-16, 20:14)berserk Wrote: and these solved my problem (but i had to reboot the pi for them to take effect, before the reboot I saw the previous error about etree.fromstring() in the log file). After the reboot I can see all my Plex Movies and TV Shows and the log had no errors. Thanks again. Is there anything I can/should do?
I think you have been very helpful already I'll change the code and hopefully this error will be fixed for good. I'm not able to reproduce it at all.
Version 3.4.3
- includes the fix suggested by berserk. Thanks!
http://tinyurl.com/lkan5k9
(2014-01-16, 20:34)Zekeman Wrote: I have tried to change the code myself.. and I still get the Script Error even after multiple reboots... Im starting with a fresh XBMC build and I will start with 3.40 again to see atleast if it loads up.
Try version 3.4.3 and please post a log if it does not help
RE: PleXBMC add-on / skin integration support - Zekeman - 2014-01-17
I started from scratch and implemented 3.4.3 works good.. I must of had a deeper issue than just plexbmc.... but all is working great.. looks great thanks!
RE: PleXBMC add-on / skin integration support - jmichel - 2014-01-19
In Plex (Home Theater or web interface) I've got the option to switch to a folder-view of my section, which is extremely helpful when navigating through my homevideos.
However, I haven't found this folder-view mode in plexbmc running the amber skin :-(
1.) Am I overlooking something?
2.) If not, would this be a feature related to xbmc, plexbmc or amber?
PleXBMC add-on / skin integration support - pecinko - 2014-01-19
(2014-01-19, 14:20)jmichel Wrote: In Plex (Home Theater or web interface) I've got the option to switch to a folder-view of my section, which is extremely helpful when navigating through my homevideos.
However, I haven't found this folder-view mode in plexbmc running the amber skin :-(
1.) Am I overlooking something?
2.) If not, would this be a feature related to xbmc, plexbmc or amber?
In filters menu, BY FOLDER?
RE: PleXBMC add-on / skin integration support - jmichel - 2014-01-19
(2014-01-19, 15:07)pecinko Wrote: (2014-01-19, 14:20)jmichel Wrote: In Plex (Home Theater or web interface) I've got the option to switch to a folder-view of my section, which is extremely helpful when navigating through my homevideos.
However, I haven't found this folder-view mode in plexbmc running the amber skin :-(
1.) Am I overlooking something?
2.) If not, would this be a feature related to xbmc, plexbmc or amber?
In filters menu, BY FOLDER?
You mean the left hand options menu? SORT BY just says 'title' (and nothing else to choose) and ORDER BY let me choose between ascending and descending :-(
PleXBMC add-on / skin integration support - pecinko - 2014-01-19
(2014-01-19, 21:11)jmichel Wrote: (2014-01-19, 15:07)pecinko Wrote: (2014-01-19, 14:20)jmichel Wrote: In Plex (Home Theater or web interface) I've got the option to switch to a folder-view of my section, which is extremely helpful when navigating through my homevideos.
However, I haven't found this folder-view mode in plexbmc running the amber skin :-(
1.) Am I overlooking something?
2.) If not, would this be a feature related to xbmc, plexbmc or amber?
In filters menu, BY FOLDER?
You mean the left hand options menu? SORT BY just says 'title' (and nothing else to choose) and ORDER BY let me choose between ascending and descending :-(
No, when you click on movies you are presented with a intermediate filters screen. Somewhere at the bottom is by folder.
RE: PleXBMC add-on / skin integration support - jmichel - 2014-01-20
Okay, I found it: I had deactivated the "extra filter menus" during my initial setup of plexbmc in the look and feel settings, because these filters don't make sense for me for tv shows or movies... (but for home videos :-( )
Unfortunately, this setting can't be done on a per-section basis, but I found a workaround:
- Activate extra filter menus
- Make "by folder" a favorite
- Deactivate extra filter menus
This way, the behavior for movies and tv shows stays the same and I can access my home videos via favorites...
Thanks for your help...
RE: PleXBMC add-on / skin integration support - satmanino - 2014-01-23
The fix suggested by berserk (thanks!) and implemented in 3.4.3 works great if PMS server is running on a local network.
My PMS is on a remote VPS server and I'm getting the following error.
Code: 18:57:14 T:2946942048 NOTICE: PleXBMC -> Running with cElementTree on Python 2.5+
18:57:14 T:2946942048 NOTICE: ===== PLEXBMC START =====
18:57:14 T:2946942048 NOTICE: PleXBMC -> Running Python: sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
18:57:14 T:2946942048 NOTICE: PleXBMC -> Running PleXBMC: 3.4.3
18:57:14 T:2946942048 NOTICE: PleXBMC -> FullRes Thumbs are se to: false
18:57:14 T:2946942048 NOTICE: PleXBMC -> CWD is set to: /storage/.xbmc/addons/plugin.video.plexbmc
18:57:14 T:2946942048 NOTICE: PleXBMC -> Platform: Linux/RPi
18:57:14 T:2946942048 NOTICE: PleXBMC -> Flatten is: 0
18:57:14 T:2946942048 NOTICE: PleXBMC -> Settings streaming: 0
18:57:14 T:2946942048 NOTICE: PleXBMC -> Setting filter menus: false
18:57:14 T:2946942048 NOTICE: PleXBMC -> Setting debug to true
18:57:14 T:2946942048 NOTICE: PleXBMC -> Setting stream Control to : PLEX CONTROL (1)
18:57:14 T:2946942048 NOTICE: PleXBMC -> Force DVD playback: false
18:57:14 T:2946942048 NOTICE: PleXBMC -> SMB IP Override: false
18:57:14 T:2946942048 NOTICE: PleXBMC -> Script argument is ['plugin://plugin.video.plexbmc/', '2', '?url=/&mode=29']
18:57:14 T:2946942048 NOTICE: == ENTER: get_params ==
18:57:15 T:2946942048 NOTICE: PleXBMC -> get_params: Parameter string: ?url=/&mode=29
18:57:15 T:2946942048 NOTICE: PleXBMC -> Detected parameters: {'url': '/', 'mode': '29'}
18:57:15 T:2946942048 NOTICE: PleXBMC -> Mode: 29
18:57:15 T:2946942048 NOTICE: PleXBMC -> URL: /
18:57:15 T:2946942048 NOTICE: PleXBMC -> Name:
18:57:15 T:2946942048 NOTICE: PleXBMC -> identifier: None
18:57:15 T:2946942048 NOTICE: PleXBMC -> token: None
18:57:15 T:2946942048 NOTICE: == ENTER: displaySections() ==
18:57:15 T:2946942048 NOTICE: == ENTER: discoverAllServers ==
18:57:15 T:2946942048 NOTICE: PleXBMC -> local GDM discovery setting enabled.
18:57:15 T:2946942048 NOTICE: PleXBMC -> discoverAllServers: Attempting GDM lookup on multicast
18:57:15 T:2946942048 NOTICE: PlexGDM: Sending discovery messages: M-SEARCH * HTTP/1.0
18:57:15 T:2946942048 NOTICE: PlexGDM: No servers have been discovered
18:57:15 T:2946942048 NOTICE: PleXBMC -> discoverAllServers: GDM was not able to discover any servers
18:57:15 T:2946942048 NOTICE: PleXBMC -> Adding myplex as a server location
18:57:15 T:2946942048 NOTICE: == ENTER: getMyPlexServers ==
18:57:15 T:2946942048 NOTICE: == ENTER: getMyPlexURL ==
18:57:15 T:2946942048 NOTICE: PleXBMC -> getMyPlexURL: url = my.plexapp.com/pms/servers
18:57:15 T:2946942048 NOTICE: == ENTER: getMyPlexToken ==
18:57:15 T:2946942048 NOTICE: PleXBMC -> getMyPlexToken: Using token: 5pCUj6KycW3e6AYNmdKw[Renew: False]
18:57:17 T:2946942048 NOTICE: PleXBMC -> getMyPlexURL: ====== XML returned =======
18:57:17 T:2946942048 NOTICE: <?xml version="1.0" encoding="UTF-8"?>
<MediaContainer friendlyName="myPlex" identifier="com.plexapp.plugins.myplex" machineIdentifier="b46cc148042f2a52d8f1f524d382250a8b00d341" size="1">
<Server accessToken="YeZMs2zzV2JWrfnZJrGZ" name="bibendum" address="151.236.6.185" port="32400" version="0.9.8.18.290-11b7fdd" scheme="http" host="151.236.6.185" localAddresses="" machineIdentifier="cef24f1bf7ee09f89e27ada99b29845411e817ac" createdAt="1386459984" updatedAt="1390464234" owned="0" synced="0" sourceTitle="satmanino"/>
</MediaContainer>
18:57:17 T:2946942048 NOTICE: PleXBMC -> getMyPlexURL: ====== XML finished ======
18:57:17 T:2946942048 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'NoneType' object is not callable
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 5336, in <module>
displaySections(shared=True)
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 1146, in displaySections
ds_servers=discoverAllServers()
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 311, in discoverAllServers
das_myplex = getMyPlexServers()
File "/storage/.xbmc/addons/plugin.video.plexbmc/default.py", line 424, in getMyPlexServers
server=etree.fromstring(html).findall('Server')
File "<string>", line 123, in XML
TypeError: 'NoneType' object is not callable
-->End of Python script error report<--
Could someone kindly help me?
Thanks in advance!
RE: PleXBMC add-on / skin integration support - smacrae - 2014-01-28
Hi Pecinko,
Just wondering if you could offer some help on the following?
I have the following installed:
PMS 9.8
XBMC Gotham (Lastest nightly, 28th Jan)
PleXBMC 3.4.3
Amber
I've ensured the last two are for Gotham etc.
When I start XBMC I get a "Script Error Plex"....
Do you have any advice on what version of XBMC Gotham I should be using to work with the lasted PleXBMC/Amber?
Thanks
-SM
RE: PleXBMC add-on / skin integration support - pecinko - 2014-01-28
(2014-01-28, 11:50)smacrae Wrote: Hi Pecinko,
Just wondering if you could offer some help on the following?
I have the following installed:
PMS 9.8
XBMC Gotham (Lastest nightly, 28th Jan)
PleXBMC 3.4.3
Amber
I've ensured the last two are for Gotham etc.
When I start XBMC I get a "Script Error Plex"....
Do you have any advice on what version of XBMC Gotham I should be using to work with the lasted PleXBMC/Amber?
Thanks
-SM
Any Gotham build should work fine, Amber from XBMC repository and PleXBMC from the first post in this thread.
RE: PleXBMC add-on / skin integration support - smacrae - 2014-01-28
hmm, tried that and it's working....however I had an odd situation whereby my main client (lounge room HTPC) isn't showing all items is movies...when I list "All Movies" it only shows "Unwatched Movies" and also when I list by "Recently Released" it again isn't showed watched items....do you know what I could be doing wrong? Is there a way I can reset the client from scratch or clear cached data or something? Thanks...
-SM
|