Plexbmc does not "see" the Plex Media library

When Starting it only shows (empty) channels section
Hi,
I just started to play around with the Plexbmc on Pi ( OPenElec). At least the 2.0 Beta seems to work somehow but it does not show any content from the Plex Server

Server is up and running a plex client on Nexus7 works pretty well . . -
.

I could provide the xbmc.log
cheer
T

Hi again,

and some more details it looks like it struggles with IPv6 . . . if you see the bold stuff in the log below. It gets the IPv4 URL but then later tries to use parts of the IPV6 URL (???)

cheers

TS



snip

19:53:58 T:1189344352 NOTICE: ===== PLEXBMC START =====

19:53:58 T:1189344352 NOTICE: PleXBMC -> running on sys.version_info(major=2, minor=7, micro=3, releaselevel=‘final’, serial=0)

19:53:58 T:1189344352 NOTICE: PleXBMC -> running on 2.0b rev 1

19:53:58 T:1189344352 NOTICE: PleXBMC -> Running with cElementTree on Python 2.5+

19:53:58 T:1189344352 NOTICE: PleXBMC -> Flatten is: 0

19:53:58 T:1189344352 NOTICE: PleXBMC -> Settings streaming: 0

19:53:58 T:1189344352 NOTICE: PleXBMC -> Setting filter menus: false

19:53:58 T:1189344352 NOTICE: PleXBMC -> Setting debug to true

19:53:58 T:1189344352 NOTICE: PleXBMC -> Setting stream Control to : 0

19:53:58 T:1189344352 NOTICE: PleXBMC -> Running skin: skin.confluence

19:53:58 T:1189344352 NOTICE: PleXBMC -> Running watch view skin: xbmc

19:53:58 T:1189344352 NOTICE: PleXBMC -> Force DVD playback: false

19:53:58 T:1189344352 NOTICE: PleXBMC -> SMB IP Override: false

19:53:58 T:1189344352 NOTICE: PleXBMC -> Script argument is 0

19:53:58 T:1189344352 NOTICE: == ENTER: get_params ==

19:53:59 T:1189344352 NOTICE: PleXBMC -> get_params: Parameter string: ?content_type=video

19:53:59 T:1189344352 NOTICE: PleXBMC -> get_params: Returning: {‘content_type’: ‘video’}

19:53:59 T:1189344352 NOTICE: PleXBMC -> Mode: -1

19:53:59 T:1189344352 NOTICE: PleXBMC -> URL: None

19:53:59 T:1189344352 NOTICE: PleXBMC -> Name:

19:53:59 T:1189344352 NOTICE: PleXBMC -> ID: None

19:53:59 T:1189344352 NOTICE: PleXBMC -> identifier: None

19:53:59 T:1189344352 NOTICE: PleXBMC -> token: None

19:53:59 T:1189344352 NOTICE: == ENTER: discoverAllServers ==

19:53:59 T:1189344352 NOTICE: PleXBMC -> Settings hostname and port: 192.168.0.112:32400

19:53:59 T:1189344352 NOTICE: PleXBMC -> serverList is [{‘uuid’: None, ‘serverName’: ‘unknown’, ‘token’: None, ‘role’: ‘master’, ‘address’: ‘192.168.0.112:32400’, ‘discovery’: ‘local’}]

19:53:59 T:1189344352 NOTICE: == ENTER: displaySections() ==

19:53:59 T:1189344352 NOTICE: PleXBMC -> displaySections: Using list of 1 servers: [{‘uuid’: None, ‘serverName’: ‘unknown’, ‘token’: None, ‘role’: ‘master’, ‘address’: ‘192.168.0.112:32400’, ‘discovery’: ‘local’}]

19:53:59 T:1189344352 NOTICE: == ENTER: getAllSections ==

19:53:59 T:1189344352 NOTICE: PleXBMC -> getAllSections: Using servers list: [{‘uuid’: None, ‘serverName’: ‘unknown’, ‘token’: None, ‘role’: ‘master’, ‘address’: ‘192.168.0.112:32400’, ‘discovery’: ‘local’}]

19:53:59 T:1189344352 NOTICE: == ENTER: getURL ==

19:53:59 T:1189344352 NOTICE: PleXBMC -> getURL: url = http://192.168.0.112:32400/system/library/sections

19:53:59 T:1189344352 NOTICE: PleXBMC -> getURL: header = {}

19:53:59 T:1189344352 NOTICE: PleXBMC -> getURL: ====== XML returned =======

19:53:59 T:1189344352 NOTICE: <?xml version='1.0' encoding='utf-8'?>











19:53:59 T:1189344352 NOTICE: PleXBMC -> getURL: ====== XML finished ======

19:53:59 T:1189344352 NOTICE: == ENTER: addDir ==

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Adding Dir for [Filme]

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed arguments are {‘fanart_image’: ‘http://fe80::212:79ff:fe67:fbd3:32400/photo/:/transcode?url=http%3A%2F%2Flocalhost%3A32400%2F%3A%2Fresources%2Fmovie-fanart.jpg&width=1280&height=720’, ‘type’: ‘Video’, ‘thumb’: ‘http://fe80::212:79ff:fe67:fbd3:32400/:/resources/movie-fanart.jpg’}

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed details are {‘title’: ‘Filme’}

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: URL to use for listing: plugin://plugin.video.plexbmc/?url=http://fe80::212:79ff:fe67:fbd3:32400/library/sections/2/all&mode=2

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting thumbnail as http://fe80::212:79ff:fe67:fbd3:32400/:/resources/movie-fanart.jpg

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting fan art as http://fe80::212:79ff:fe67:fbd3:32400/photo/:/transcode?url=http%3A%2F%2Flocalhost%3A32400%2F%3A%2Fresources%2Fmovie-fanart.jpg&width=1280&height=720 with headers:

19:53:59 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Building Context Menus

19:53:59 T:1189344352 NOTICE: == ENTER: addDir ==

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Adding Dir for [Musik]

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed arguments are {‘fanart_image’: ‘http://fe80::212:79ff:fe67:fbd3:32400/photo/:/transcode?url=http%3A%2F%2Flocalhost%3A32400%2F%3A%2Fresources%2Fmovie-fanart.jpg&width=1280&height=720’, ‘type’: ‘Video’, ‘thumb’: ‘http://fe80::212:79ff:fe67:fbd3:32400/:/resources/movie-fanart.jpg’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed details are {‘title’: ‘Musik’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: URL to use for listing: plugin://plugin.video.plexbmc/?url=http://fe80::212:79ff:fe67:fbd3:32400/library/sections/1/all&mode=2

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting thumbnail as http://fe80::212:79ff:fe67:fbd3:32400/:/resources/movie-fanart.jpg

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting fan art as http://fe80::212:79ff:fe67:fbd3:32400/photo/:/transcode?url=http%3A%2F%2Flocalhost%3A32400%2F%3A%2Fresources%2Fmovie-fanart.jpg&width=1280&height=720 with headers:

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Building Context Menus

19:54:00 T:1189344352 NOTICE: == ENTER: addDir ==

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Adding Dir for [Recordings]

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed arguments are {‘fanart_image’: ‘http://fe80::212:79ff:fe67:fbd3:32400/photo/:/transcode?url=http%3A%2F%2Flocalhost%3A32400%2F%3A%2Fresources%2Fmovie-fanart.jpg&width=1280&height=720’, ‘type’: ‘Video’, ‘thumb’: ‘http://fe80::212:79ff:fe67:fbd3:32400/:/resources/movie-fanart.jpg’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed details are {‘title’: ‘Recordings’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: URL to use for listing: plugin://plugin.video.plexbmc/?url=http://fe80::212:79ff:fe67:fbd3:32400/library/sections/6/all&mode=2

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting thumbnail as http://fe80::212:79ff:fe67:fbd3:32400/:/resources/movie-fanart.jpg

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting fan art as http://fe80::212:79ff:fe67:fbd3:32400/photo/:/transcode?url=http%3A%2F%2Flocalhost%3A32400%2F%3A%2Fresources%2Fmovie-fanart.jpg&width=1280&height=720 with headers:

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Building Context Menus

19:54:00 T:1189344352 NOTICE: == ENTER: resolveAllServers ==

19:54:00 T:1189344352 NOTICE: == ENTER: getLocalServers ==

19:54:00 T:1189344352 NOTICE: == ENTER: getURL ==

19:54:00 T:1189344352 NOTICE: PleXBMC -> getURL: url = 192.168.0.112:32400/servers

19:54:00 T:1189344352 NOTICE: PleXBMC -> getURL: header = {}

19:54:00 T:1189344352 NOTICE: PleXBMC -> getURL: ====== XML returned =======

19:54:00 T:1189344352 NOTICE: <?xml version="1.0" encoding="UTF-8"?>







19:54:00 T:1189344352 NOTICE: PleXBMC -> getURL: ====== XML finished ======

19:54:00 T:1189344352 NOTICE: PleXBMC -> resolveAllServers: Resolved server List: [{‘uuid’: ‘34037aa5937d8a7e4e8d6557f2af3f489bf74b67’, ‘serverName’: ‘MyMediaServer’, ‘owned’: ‘1’, ‘token’: None, ‘master’: 1, ‘address’: ‘192.168.0.112:32400’, ‘discovery’: ‘local’}]

19:54:00 T:1189344352 NOTICE: PleXBMC -> resolveAllServers: Unique server List: [{‘uuid’: ‘34037aa5937d8a7e4e8d6557f2af3f489bf74b67’, ‘serverName’: ‘MyMediaServer’, ‘owned’: ‘1’, ‘token’: None, ‘master’: 1, ‘address’: ‘192.168.0.112:32400’, ‘discovery’: ‘local’}]

19:54:00 T:1189344352 NOTICE: == ENTER: addDir ==

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Adding Dir for [Channels]

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed arguments are {‘type’: ‘Video’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed details are {‘title’: ‘Channels’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: URL to use for listing: plugin://plugin.video.plexbmc/?url=http://192.168.0.112:32400/system/plugins/all&mode=21

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting thumbnail as

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting fan art as with headers:

19:54:00 T:1189344352 NOTICE: == ENTER: addDir ==

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Adding Dir for [Plex Online]

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed arguments are {‘type’: ‘file’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Passed details are {‘title’: ‘Plex Online’}

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: URL to use for listing: plugin://plugin.video.plexbmc/?url=http://192.168.0.112:32400/system/plexonline&mode=19

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting thumbnail as

19:54:00 T:1189344352 NOTICE: PleXBMC -> addGUIItem: Setting fan art as with headers:

19:54:00 T:1118827616 DEBUG: WaitOnScriptResult- plugin returned successfully

19:54:00 T:1189344352 NOTICE: ===== PLEXBMC STOP =====

19:54:00 T:1075737104 DEBUG: Saving fileitems [plugin://plugin.video.plexbmc/?content_type=video]

19:54:00 T:1075737104 DEBUG: – items: 5, sort method: 0, ascending: false

19:54:01 T:1189344352 INFO: Scriptresult: Success

19:54:01 T:1189344352 INFO: Python script stopped

19:54:01 T:1189344352 DEBUG: Thread XBPyThread 1189344352 terminating

19:54:01 T:1189344352 NOTICE: Thread Background Loader start, auto delete: false

19:54:01 T:1075737104 DEBUG: waiting for python thread 27 to stop

19:54:01 T:1075737104 DEBUG: python thread 27 destructed

19:54:01 T:1075737104 DEBUG: ------ Window Deinit (DialogBusy.xml) ------

19:54:01 T:1189344352 DEBUG: Thread Background Loader 1189344352 terminating

19:54:11 T:1075737104 DEBUG: LIRC: Update - NEW at 34696264:160 0 KEY_OK devinput (KEY_OK)

19:54:11 T:1075737104 DEBUG: OnKey: 11 (0b) pressed, action is Select**

19:54:11 T:1075737104 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.plexbmc/?url=http://fe80::212:79ff:fe67:fbd3:32400/library/sections/1/all&mode=2)**

19:54:11 T:1075737104 DEBUG: ParentPath = [plugin://plugin.video.plexbmc/?content_type=video]

19:54:11 T:1118827616 DEBUG: StartScript - calling plugin PleXBMC(‘plugin://plugin.video.plexbmc/’,‘0’,’?url=http://fe80/library/sections/1/all&mode=2’)

19:54:11 T:1118827616 INFO: initializing python engine.

19:54:11 T:1118827616 DEBUG: new python thread created. id=28

19:54:11 T:1118827616 DEBUG: WaitOnScriptResult - waiting on the PleXBMC plugin…

19:54:11 T:1189344352 NOTICE: Thread XBPyThread start, auto delete: false

19:54:11 T:1189344352 DEBUG: Python thread: start processing

19:54:12 T:1189344352 NOTICE: -->Python Interpreter Initialized<–

19:54:12 T:1189344352 DEBUG: Process - The source file to load is /storage/.xbmc/addons/plugin.video.plexbmc/default.py

19:54:12 T:1189344352 DEBUG: Process - Setting the Python path to /storage/.xbmc/addons/plugin.video.plexbmc:/storage/.xbmc/addons/script.module.simplejson/lib:/usr/share/xbmc/addons/script.module.pil/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/PIL:/usr/lib/python2.7/site-packages/gtk-2.0:

19:54:12 T:1189344352 DEBUG: Process - Entering source directory /storage/.xbmc/addons/plugin.video.plexbmc

19:54:12 T:1189344352 DEBUG: Instantiating addon using automatically obtained id of “plugin.video.plexbmc” dependent on version 2.0 of the xbmc.python api

19:54:12 T:1075737104 DEBUG: ------ Window Init (DialogBusy.xml) ------

19:54:12 T:1075737104 DEBUG: LIRC: Update - NEW at 34696801:160 0 KEY_OK_UP devinput (KEY_OK_UP)

19:54:13 T:1189344352 ERROR: /storage/.xbmc/addons/plugin.video.plexbmc/default.py:760: SyntaxWarning: name ‘g_stream’ is used prior to global declaration

global g_stream

19:54:15 T:1189344352 NOTICE: ===== PLEXBMC START =====

19:54:15 T:1189344352 NOTICE: PleXBMC -> running on sys.version_info(major=2, minor=7, micro=3, releaselevel=‘final’, serial=0)

19:54:15 T:1189344352 NOTICE: PleXBMC -> running on 2.0b rev 1

19:54:15 T:1189344352 NOTICE: PleXBMC -> Running with cElementTree on Python 2.5+

19:54:15 T:1189344352 NOTICE: PleXBMC -> Flatten is: 0

19:54:15 T:1189344352 NOTICE: PleXBMC -> Settings streaming: 0

19:54:15 T:1189344352 NOTICE: PleXBMC -> Setting filter menus: false

19:54:15 T:1189344352 NOTICE: PleXBMC -> Setting debug to true

19:54:15 T:1189344352 NOTICE: PleXBMC -> Setting stream Control to : 0

19:54:15 T:1189344352 NOTICE: PleXBMC -> Running skin: skin.confluence

19:54:15 T:1189344352 NOTICE: PleXBMC -> Running watch view skin: xbmc

19:54:15 T:1189344352 NOTICE: PleXBMC -> Force DVD playback: false

19:54:15 T:1189344352 NOTICE: PleXBMC -> SMB IP Override: false

19:54:15 T:1189344352 NOTICE: PleXBMC -> Script argument is 0

19:54:15 T:1189344352 NOTICE: == ENTER: get_params ==

19:54:16 T:1189344352 NOTICE: PleXBMC -> get_params: Parameter string: ?url=http://fe80/library/sections/1/all&mode=2

19:54:16 T:1189344352 NOTICE: PleXBMC -> get_params: Returning: {‘url’: ‘http://fe80/library/sections/1/all’, ‘mode’: ‘2’}

19:54:16 T:1189344352 NOTICE: PleXBMC -> Mode: 2

19:54:16 T:1189344352 NOTICE: PleXBMC -> URL: http://fe80/library/sections/1/all

19:54:16 T:1189344352 NOTICE: PleXBMC -> Name:

19:54:16 T:1189344352 NOTICE: PleXBMC -> ID: None

19:54:16 T:1189344352 NOTICE: PleXBMC -> identifier: None

19:54:16 T:1189344352 NOTICE: PleXBMC -> token: None

19:54:16 T:1189344352 NOTICE: == ENTER: Movies() ==

19:54:16 T:1189344352 NOTICE: == ENTER: getURL ==

19:54:16 T:1189344352 NOTICE: PleXBMC -> getURL: url = http://fe80/library/sections/1/all

19:54:16 T:1189344352 NOTICE: PleXBMC -> getURL: header = {}

19:54:16 T:1189344352 NOTICE: Unable to lookup host: fe80

Check host name is correct

19:54:16 T:1189344352 NOTICE: Unable to lookup host: fe80

Check host name is correct

19:54:16 T:1189344352 NOTICE: ===== PLEXBMC STOP =====

snap

Sorry, I didn;t see this thread. someone else has reported IPv6 issues. When parsing the XML data, PleXBMC expected to see an IPv4 style address x.x.x.x not an ipv6 one x:x:x:x:x:x. As port numbers are removed from any address URLs (including ip ones), then it only look at everything before the first :. ok in ipv4, not ok in ipv6.



Also, there are no provisions from IPv6 URLS (i.e. http://[ff:ff:ff:ff:ff:ff]:32400/library )in the addon.



My advice right now would be to switch off IPv6 at the plex media server.