hippojay / script.plexbmc.helper Goto Github PK
View Code? Open in Web Editor NEWPleXBMC Client Remote Helper
PleXBMC Client Remote Helper
@wickning1 has already done some work in this area: https://github.com/wickning1/script.plexbmc.helper/commits/master
08:20:58 T:1569193952 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: _ElementInterface instance has no attribute 'iter'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.plexbmc.helper-3.4.2/default.py", line 47, in
from settings import settings
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.plexbmc.helper-3.4.2/resources/lib/settings.py", line 26, in
settings['client_name'] = getGUI('devicename')
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.plexbmc.helper-3.4.2/resources/lib/settings.py", line 16, in getGUI
for elem in guidoc.iter(tag=name):
AttributeError: _ElementInterface instance has no attribute 'iter'
-->End of Python script error report<--
08:20:58 T:1579486208 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
08:20:58 T:1579486208 DEBUG: Window DialogKaiToast.xml was already loaded
Hi,
i am running the helper in the latest release v.3.4.2 and it always
reports the player with the name "kodi" instead of the name set in the settings,
using the machine name ("PleXBMC") instead also has no effect.
Logs:
23:13:45 T:140541765334784 NOTICE: PlexGDM: Sending registration data: HTTP/1.0 200 OK
Content-Type: plex/media-player
Resource-Identifier: ab24658e-b31a-475f-b9ef-4f506301c7ae
Name: kodi
Port: 3005
Product: PleXBMC
Version: 3.6.1
Protocol: plex
Protocol-Version: 1
Protocol-Capabilities: navigation,playback,timeline
Device-Class: HTPC
Thanks for the help on this, not beeing able to set the player name makes it kind
of difficult to control multiple installations in one network.
Martin
When casting from plex app on Android (only one I've tried), and choosing to case photos on the phone itself to PlexBMC Helper (running on Kodi), the photo that is manually pressed does cast, but swiping left and right for previous and next photo only shows the photo in the plex app on the phone, but the photo on the PlexBMC side is not updated unless I press stop on the plex app, and tap on another photo, in which case that new photo is cast to the screen.
After wake up from suspend2ram the client gets not visible again for casting to it, most times I tried. Maybe it is possible to monitor the "OnWake" event with XBMCMonitor and restart the script?
Hi,
When I send a video from the plex app on my iPhone,
Video starts playing only for the first time and I get this error in Kodi
"
PleXBMC Helper Error:
check the log for more information
"
from then on, plexbmc helper does not work.
Kodi: 15.0 (never used login screen)
iOS plex: 4.0
here is the log:
http://goo.gl/41LPzx
is there a solution?
The new Plex App for iOS doesn't work with plexbmc helper. The helper is not found by the App...
the plugin is working with ios very good. aa selected audio file is played via xbmc.
on android with plexapp this is not working at all.
I am having a bizarre issue and I am fairly certain it's plexbmc helper. I watched a movie last night on XBMC Openelec. I cast the movie from my android phone to XBMC. At the end of the movie I stopped it from my phone. I then put my openelec box to sleep and went to bed. I turned on openelec this morning to use one of the XBMC channels (1 channel for instance). While something in one of the channels was playing I opened up the media manager page of my plex server and noticed the movie I watched last night was currently playing. I stopped the channel that was playing in XBMC and the movie stopped playing in plex (according the plex server logs).
BTW I'm using the android app Yatse to control XBMC. Wife uses XBMC official remote on her ipad and the same problem there. Box is an asus chromebox running the latest stable openelec (I think 4.3).
Hello,
I would like you to implement the possibility to choose video resolution in initial setup because everytime I watch plex videos I have always to set it manually. Could it be possible?
Thanks and congratulations for plexbmc!
Alberto.
:)
Hello there,
It is not possible to install any addon from this repository on Kodi 17.
Any installation attempt results in no response from Kodi for a while, followed by no progress (indicator) on the installation, and no selected plugin is installed.
Has anyone else encountered the same issue?
XBMC 13 Final (Windows 8.1 Update 1, but also does it on OpenELEC 4.0)
Amber 1.6.0
plugin.video.plexbmc-3.4.6beta2
script.plexbmc.helper-3.4.2
00:32:17 T:37328 NOTICE: ===== PLEXBMC HELPER START =====
00:32:17 T:37328 NOTICE: PleXBMC Helper -> running Python: sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)
00:32:17 T:37328 NOTICE: PleXBMC Helper -> running Version: 3.4.2
00:32:17 T:37328 NOTICE: PleXBMC Helper -> Platform: Windows
00:32:17 T:37328 NOTICE: PleXBMC Helper -> UUID: 1363d712-fa77-4007-829a-605bd25cf25b
00:32:17 T:37328 NOTICE: PleXBMC Helper -> jsonrpc: Sending request to XBMC: {"params": {"properties": ["version"], "addonid": "plugin.video.plexbmc"}, "jsonrpc": "2.0", "id": 1, "method": "Addons.GetAddonDetails"}
00:32:17 T:37328 NOTICE: PleXBMC Helper -> jsonrpc: Response from XBMC: {"error":{"code":-32601,"message":"Method not found."},"id":1,"jsonrpc":"2.0"}
00:32:17 T:37328 NOTICE: XBMC returned an error: {u'message': u'Method not found.', u'code': -32601}
00:32:17 T:37328 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'bool' object has no attribute 'get'
Traceback (most recent call last):
File "C:\Users\Josh\AppData\Roaming\XBMC\addons\script.plexbmc.helper-3.4.2\default.py", line 60, in
settings['plexbmc_version'] = jsonrpc("Addons.GetAddonDetails", {"addonid" : "plugin.video.plexbmc", "properties" : ["version"]}).get('addon',{}).get('version', False)
AttributeError: 'bool' object has no attribute 'get'
-->End of Python script error report<--
I have a fresh Openelec 6.0.0 setup with Amber skin and PLEXbmc addon and plexbmc.helper.
Plex server is installed on a separate box in same subnet.
When trying to connect from Plex Android app, I get an error message, asking to check the log file:
19:40:08 985.910034 T:1617949760 NOTICE: PleXBMC -> Reading settings configuration
19:40:09 986.766296 T:1617949760 NOTICE: PleXBMC -> Running PleXBMC: 4.0.0~beta4
19:40:09 986.766907 T:1617949760 NOTICE: PleXBMC -> Debug is turned off. Running silent
19:40:09 986.853027 T:1626338368 NOTICE: setting: client_id is :
19:40:09 987.367249 T:1626338368 NOTICE: Previous line repeats 1 times.
19:40:09 987.367493 T:1626338368 ERROR: /storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
19:40:10 988.457520 T:1626338368 ERROR: Previous line repeats 1 times.
19:40:10 988.461243 T:1626338368 NOTICE: HTTP response error: 422
19:40:10 988.479858 T:1626338368 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'NoneType' object has no attribute 'text'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/default.py", line 13, in
plexbmc.start_plexbmc()
File "/storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/resources/lib/plexbmc.py", line 4105, in start_plexbmc
manage_window.start()
File "/storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/resources/lib/plex_signin.py", line 242, in start
self.gather_plex_information()
File "/storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/resources/lib/plex_signin.py", line 247, in gather_plex_information
user = self.plex_network.get_myplex_information()
File "/storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/resources/lib/plex.py", line 624, in get_myplex_information
date= xml.find('joined-at').text
AttributeError: 'NoneType' object has no attribute 'text'
-->End of Python script error report<--
19:48:27 1485.177246 T:1617949760 ERROR: /storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
19:48:28 1486.291992 T:1617949760 NOTICE: HTTP response error: 401 Unauthorized
19:48:49 1506.925903 T:1617949760 ERROR: /storage/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
19:52:19 1717.533325 T:1547695168 ERROR: Previous line repeats 2 times.
19:52:19 1717.533569 T:1547695168 NOTICE: Thread LanguageInvoker start, auto delete: false
19:52:19 1717.534912 T:1559999552 NOTICE: Thread JobWorker start, auto delete: true
19:52:19 1717.583008 T:1617949760 NOTICE: ===== PLEXBMC STOP [id: 1450122007.87]: 732.03454113 seconds =====
19:52:19 1717.611694 T:1617949760 ERROR: CPythonInvoker(9, /storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/default.py): failed to run the gc to clean up after running prior to shutting down the Interpreter
19:52:19 1717.612671 T:1617949760 WARNING: CPythonInvoker(9, /storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/default.py): the python script "/storage/.kodi/addons/plugin.video.plexbmc-4.0.0beta4/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui14ControlTextBoxE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui11ControlEditE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui11ControlEditE,N9XBMCAddon7xbmcgui12ControlImageE,N14PythonBindings33XBMCAddon_xbmcgui_Window_DirectorE,N9XBMCAddon7xbmcgui12ControlLabelE,N9XBMCAddon7xbmcgui12ControlImageE,N9XBMCAddon7xbmcgui13ControlButtonE,N9XBMCAddon7xbmcgui13ControlButtonE
19:52:20 1717.715820 T:1547695168 NOTICE: -->Python Interpreter Initialized<--
19:52:34 1731.730835 T:1547695168 NOTICE: Thread LanguageInvoker start, auto delete: false
19:52:34 1731.905396 T:1547695168 NOTICE: Previous line repeats 2 times.
19:52:34 1731.905640 T:1547695168 NOTICE: -->Python Interpreter Initialized<--
19:52:34 1732.202271 T:1547695168 NOTICE: Previous line repeats 1 times.
Interestingly, the remote control function from the Plex app works ok.
Any idea what I can do about it?
Debug Log:
http://pastebin.com/vnF4BHsX
19:33:01 121.996056 T:2830967872 NOTICE: == ENTER: PLAY ==
19:33:01 122.001877 T:2830967872 NOTICE: PleXBMC -> PLAY: We are playing a stream
19:33:01 122.009834 T:2830967872 NOTICE: ===== PLEXBMC STOP =====
19:33:01 122.117119 T:2830967872 NOTICE: Thread FileCache start, auto delete: false
19:33:02 122.923294 T:2900358208 NOTICE: Previous line repeats 1 times.
19:33:02 122.923531 T:2900358208 NOTICE: Thread BackgroundLoader start, auto delete: false
19:33:02 122.928436 T:2789024832 NOTICE: Thread PAPlayer start, auto delete: false
19:33:03 123.775833 T:2866803776 ERROR: Traceback (most recent call last):
19:33:03 123.776405 T:2866803776 ERROR: File "/home/pi/.xbmc/addons/script.plexbmc.helper-3.4.2/default.py", line 115, in
19:33:03 123.778519 T:2866803776 ERROR: subMgr.notify()
19:33:03 123.784607 T:2866803776 ERROR: File "/home/pi/.xbmc/addons/script.plexbmc.helper-3.4.2/resources/lib/subscribers.py", line 100, in notify
19:33:03 123.883705 T:2866803776 ERROR: self.notifyServer(players)
19:33:03 123.884445 T:2866803776 ERROR: File "/home/pi/.xbmc/addons/script.plexbmc.helper-3.4.2/resources/lib/subscribers.py", line 107, in notifyServer
19:33:03 123.885117 T:2866803776 ERROR: info = self.playerprops[p.get('playerid')]
19:33:03 123.885658 T:2866803776 ERROR: KeyError: 0
19:33:03 123.886009 T:2866803776 NOTICE: None
19:33:03 123.906860 T:2866803776 NOTICE: PleXBMC Helper -> PleXBMC Helper has been stopped
I am running the latest Helix build for Raspberry Pi (Raspbmc):
http://forum.xbmc.org/showthread.php?tid=176043&pid=1809636#pid1809636
Plexbmc 3.4.6~beta3
Plexbmc Helper 3.4.2
Let me know if you need any more information
Hello, i am experiencing a issue with the plexbmc helper. I can connect and cast something and it will send that specific cast. But then i also get a message saying "Plexbmc helper has been stopped". This always happens on the first cast, i am then unable to cast anything else and lose the ability to pause or stop whatever that has been cast due to a lost connection.
If i disabled and enable the "app/addon/script" it will work again. Also restarting the PI will also solve the problem. Is there anything that can be configured to solve this issue?
There seems to be little activity on this project, has it been given up? I sincerely hope not since its a great addition to plex/media centers. I simply love it, and i want to thank you for creating it in the first place!
When i try to start a movie from my iPhone to both of my raspberry pi's i get the message 'PlexBMC error - check the log for details' Both of them have OSMC installed with newest update.
Any idea's why this doesent seem to work for me?
Here is the log ( my log is full of these errors )
18:52:46 1281.364014 T:1720976416 ERROR: File "/home/osmc/.kodi/addons/script.plexbmc.helper-master/default.py", line 113, in
18:52:46 1281.364258 T:1720976416 ERROR: subMgr.notify()
18:52:46 1281.364502 T:1720976416 ERROR: File "/home/osmc/.kodi/addons/script.plexbmc.helper-master/resources/lib/subscribers.py", line 92, in notify
18:52:46 1281.364746 T:1720976416 ERROR: players = getPlayers()
18:52:46 1281.364868 T:1720976416 ERROR: File "/home/osmc/.kodi/addons/script.plexbmc.helper-master/resources/lib/functions.py", line 150, in getPlayers
18:52:46 1281.365112 T:1720976416 ERROR: info = jsonrpc("Player.GetActivePlayers") or []
18:52:46 1281.365234 T:1720976416 ERROR: File "/home/osmc/.kodi/addons/script.plexbmc.helper-master/resources/lib/functions.py", line 100, in jsonrpc
18:52:46 1281.365479 T:1720976416 ERROR: 'Authorization' : 'Basic ' + string.strip(base64.encodestring(settings['user'] + ':' + settings['passwd'])) }))
18:52:46 1281.365723 T:1720976416 ERROR: File "/home/osmc/.kodi/addons/script.plexbmc.helper-master/resources/lib/functions.py", line 112, in parseJSONRPC
18:52:46 1281.365967 T:1720976416 ERROR: parsed=json.loads(jsonraw)
18:52:46 1281.366211 T:1720976416 ERROR: File "/usr/lib/python2.7/json/init.py", line 338, in loads
18:52:46 1281.366455 T:1720976416 ERROR: return _default_decoder.decode(s)
18:52:46 1281.366699 T:1720976416 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
18:52:46 1281.366943 T:1720976416 ERROR: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
18:52:46 1281.367188 T:1720976416 ERROR: File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
18:52:46 1281.367432 T:1720976416 ERROR: raise ValueError("No JSON object could be decoded")
18:52:46 1281.367798 T:1720976416 ERROR: ValueError: No JSON object could be decoded
18:52:46 1281.368164 T:1720976416 NOTICE: None
18:52:47 1282.323486 T:1720976416 NOTICE: PleXBMC Helper -> jsonrpc: Sending request to XBMC without network stack: {"jsonrpc": "2.0", "id": 1, "method": "Player.GetActivePlayers"}
18:52:47 1282.328857 T:1720976416 NOTICE: PleXBMC Helper -> parseJSONRPC: Response from XBMC: {"id":1,"jsonrpc":"2.0","result":[]}
18:52:47 1282.336060 T:1720976416 NOTICE: HTTP response error: 404
18:52:47 1282.339722 T:1720976416 NOTICE: PleXBMC Helper -> parseJSONRPC: Response from XBMC:
<title>404 Not Found</title>
The requested URL /jsonrpc was not found on this server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.