WIP Media importing and library integration (UPnP, Emby, Plex, ...)
Gave this another go, still have issues. It adds my Plex account fine but fails when adding the server.
Image
Image
Code:
2021-02-13 14:14:35.893 T:1392 DEBUG <general>: [mediaimporter.plex] failed to connect to 'MediaServer' at http://192.168.0.5:32400

It fails to add it because 192.168.0.5:32400 doesn't open plex, it would be http://192.168.0.5/plex which redirects to https://mydomain/plex/web/index.html. I have nginx reverse proxy.

@anxdpanic fixed a similar issue when I was testing Composite. If I try to use the Local Only part and add http://192.168.0.5/plex it throws an error
Code:
2021-02-13 14:23:04.645 T:16508 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'xml.etree.ElementTree.ParseError'>
Error Contents: not well-formed (invalid token): line 2, column 27
Traceback (most recent call last):
File "C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\importer.py", line 20, in <module>
importer.run(sys.argv)
File "C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\lib\importer.py", line 1176, in run
actionMethod(handle, options)
File "C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\lib\importer.py", line 541, in discoverProvider
provider = discoverProviderLocally(handle, options)
File "C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\lib\importer.py", line 199, in discoverProviderLocally
plexServer = PlexServer(baseUrl, timeout=plex.constants.REQUEST_TIMEOUT)
File "C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\plexapi\server.py", line 104, in __init__
data = self.query(self.key, timeout=timeout)
File "C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\plexapi\server.py", line 438, in query
return ElementTree.fromstring(data) if data.strip() else None
File "C:\Program Files\Kodi\system\python\Lib\xml\etree\ElementTree.py", line 1320, in XML
parser.feed(text)
File "<string>", line None
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 2, column 27
-->End of Python script error report<--

2021-02-13 14:23:04.645 T:16508 DEBUG <general>: CPythonInvoker::onExecutionDone(14, C:\Users\kompl\AppData\Roaming\Kodi\addons\mediaimporter.plex\importer.py)
Reply


Messages In This Thread
Unexpected Behaviour - by LongMan - 2015-04-20, 23:53
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - by komplex - 2021-02-13, 16:30
20.2 Generic Builds - by LongMan - 2023-07-20, 04:49
Logout Mark Read Team Forum Stats Members Help
Media importing and library integration (UPnP, Emby, Plex, ...)10