Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexKodiConnect: let Kodi talk to your Plex

1457910142

Answers

  • Monstar316Monstar316 Members, Plex Pass Posts: 37 Plex Pass

    I updated to 1.0.3 and it resolved the high CPU usage after disabling the constant polling but now there seems to be a memory leak. When Kodi started, Memory began about 18% and is slowly creeping up. Had it running for the past few hours now and it's up to 43% and climbing.

    Another question; will you be able to integrate this so it will report stats on PlexPy? It worked using PlexBMC but I'm guessing that was down to PlexBMC pulling data directly from my PMS where as PKC copies over the data to it's own database in Kodi?

  • hstamashstamas Members, Plex Pass Posts: 564 Plex Pass

    @croneter said:

    @hstamas said:
    Well that didn't go very well. Movie locked up tight about 30 minutes into it. Logs attached.

    Has anyone else, who's been able to get past the initial sync been able to play anything all the way through?

    I did not find a single reference to PlexKodiConnect in your log, but a bunch of ERRORs from PlexBMC and other plugins. Nothing I can do there :-)

    My bad @croneter. I have a test install and must have pulled the wrong log. Sorry for confusing matters. Let me regroup, enable debugging properly and run you another test later today.

    hstamas

  • sylussylus Members, Plex Pass Posts: 42 Plex Pass

    @croneter said:

    @sylus said:
    Still problems to connect.

    http://xbmclogs.com/p1h1ru2qx

    Does it help if you turn off plex companion in the settings and then restart?

    Okay what I did.

    Reset everything. After entering the plex PIN the addon could not find the server.
    Also disabled the plex companion and restarted. Plexcodiconnect asked again to enter the pin. Entering the pin leads to a recognition of the addon "PlexKodiConnect ist jetzt mit deinem Konto verbunden.", but plexkodiconnect still cannot find the server. As the server is local I tried the local IP and 127.0.01.

    Both leads to a recognition of the server and I can select the user, but I come to the loop already mentioned earlier.

    Attached the log where PlexKodiConnect cannot find the server via pin.

    http://xbmclogs.com/pvzxvxw8f

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass
    edited March 2016

    New version 1.0.4 is out: https://github.com/croneter/PlexKodiConnect/releases

    Your CPU load should be down to a couple of percent of your total CPU load now when Kodi is just sitting around.

    I hope the library sync crashes are now all tackled. Let me know...

    Changelog

    version 1.0.4
    - Sleep for a while in loops - drastically reduces CPU load
    - Connect to remote PMS!
    - New Setting to reset all PMS and the plex.tv connection
    - Correct encoding
    - Much shorter download timeouts
    - Improve sync resiliance and GDM discovery
    - Reduce number of unsuccesful retries to 3 before telling user
    - Clean-up library sync loop
    - Language strings for library sync

  • SilvaireSilvaire Members, Plex Pass Posts: 125 Plex Pass

    Still no dice for me, can't connect to PMS on LAN with or without IP address provided in options. When I could connect in earlier versions, I couldn't log in to either Plex Home user.

  • dspayne1dspayne1 Members, Plex Pass Posts: 19 ✭✭

    I can see the servers, but when I chose I still get the "failed to authenticate. Did you login to plex tv?" error.

    New log
    xbmclogs.com/pplxbruvw

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass

    @dspayne1 said:
    I can see the servers, but when I chose I still get the "failed to authenticate. Did you login to plex tv?" error.

    New log
    xbmclogs.com/pplxbruvw

    Do you have 1 plex user (so no plex home and no additional managed users), protected by a pin?

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass

    @Silvaire said:
    Still no dice for me, can't connect to PMS on LAN with or without IP address provided in options. When I could connect in earlier versions, I couldn't log in to either Plex Home user.

    Could you also provide a log please

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass

    @Monstar316 said:
    I updated to 1.0.3 and it resolved the high CPU usage after disabling the constant polling but now there seems to be a memory leak. When Kodi started, Memory began about 18% and is slowly creeping up. Had it running for the past few hours now and it's up to 43% and climbing.

    Another question; will you be able to integrate this so it will report stats on PlexPy? It worked using PlexBMC but I'm guessing that was down to PlexBMC pulling data directly from my PMS where as PKC copies over the data to it's own database in Kodi?

    Memory leak should be fixed now.

    Will have a look at PlexPy

  • sylussylus Members, Plex Pass Posts: 42 Plex Pass

    Still cannot find server via PIN. Local can find server but authentication is not possible.

    However, errors in logs changed ;)

    http://www.xbmclogs.com/pctk1elox

  • dspayne1dspayne1 Members, Plex Pass Posts: 19 ✭✭

    @croneter said:

    @dspayne1 said:
    I can see the servers, but when I chose I still get the "failed to authenticate. Did you login to plex tv?" error.

    New log
    xbmclogs.com/pplxbruvw

    Do you have 1 plex user (so no plex home and no additional managed users), protected by a pin?

    That is correct just 1 plex user, I do not have plex home and I do not have a pin.

  • dspayne1dspayne1 Members, Plex Pass Posts: 19 ✭✭

    Should I set a PIN?

  • UschiGlasUschiGlas Members, Plex Pass Posts: 70 Plex Pass

    thanks for the update!
    Perfekt: CPU decreased dramatically !
    I gues around 30%, now it is less than 10% at all.
    I didn't try to reset my PMS connection so far, as I do to test streaming a full length movie, hopefully w/o crash...

  • SilvaireSilvaire Members, Plex Pass Posts: 125 Plex Pass

    @croneter said:

    @Silvaire said:
    Still no dice for me, can't connect to PMS on LAN with or without IP address provided in options. When I could connect in earlier versions, I couldn't log in to either Plex Home user.

    Could you also provide a log please

    Was able to get it to connect again but same issue as version 1 -- can't log in to any account. Log here:

    https://gist.github.com/Jaizeal/85bb5ab12cf3b1ff2c51 (Xbmclogs is down for me)

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass

    @Silvaire said:

    @croneter said:

    @Silvaire said:
    Still no dice for me, can't connect to PMS on LAN with or without IP address provided in options. When I could connect in earlier versions, I couldn't log in to either Plex Home user.

    Could you also provide a log please

    Was able to get it to connect again but same issue as version 1 -- can't log in to any account. Log here:

    https://gist.github.com/Jaizeal/85bb5ab12cf3b1ff2c51 (Xbmclogs is down for me)

    I can't reproduce your bug... :-/ Is your Plex Server on the same machine as Kodi?

    Did you reset? Settings -> Advanced -> Perform local DB reset (full resync), then 3x yes?

    If yes, please turn on DEBUG logging in Settings -> Advanced -> "Log Level" and post again. Thanks :-).

  • dspayne1dspayne1 Members, Plex Pass Posts: 19 ✭✭

    @croneter said:

    @dspayne1 said:
    I can see the servers, but when I chose I still get the "failed to authenticate. Did you login to plex tv?" error.

    New log
    xbmclogs.com/pplxbruvw

    Do you have 1 plex user (so no plex home and no additional managed users), protected by a pin?

    I went to Plex.tv and set a pin for my account and I am now syncing with shared server.

  • KJKingJKJKingJ Members, Plex Pass Posts: 51 Plex Pass
    edited March 2016

    @croneter I upgraded to 1.0.4 and then performed a full reset of everything via the plugin settings. After restarting Kodi, I was able to authenticate to plex.tv using the PIN paring, but after that I couldn't select my user - it was listed, but my pin was rejected. Looking in the logs, I did see the error NOTICE: PlexKodiConnect PlexAPI -> We failed to reach a server. Reason: Service Unavailable: Back-end server is at capacity so this may not be the plugin's fault.

    After restarting Kodi, I was instantly logged in as my user on start up - I didn't have to enter my PIN. The sync then started, but froze on the same item it did in the previous version (a long filename with many Unicode characters in it). The log output is the same as before, previous log is available at http://xbmclogs.com/pyc3pm0mf .

    Many thanks.

    Edit: After restarting Kodi, the sync resumed but froze on another bit of media with unicode characters in the title, most of the title was in English, but there were two Korean characters in it - 랑이.

    Edit 2: After another restart, it finished up the reset of the movies and started on music. No issues there, even with albums/artists/tracks that have unicode characters in their name.

  • forumferretforumferret Members Posts: 13 ✭✭
    edited March 2016

    Nothing about this plugin alters the playback methodology, does it? I.e. is Kodi still directly fetching the media and playing it back, or does PlexKodiConnect co-opt that process as well, and slave playback through the Plex Media Server? Should I see anything in "now Playing" when I look at my Plex server during playback of a file on Kodi?

    additionally, I'm seeing the following in Kodi's logs while playing an item:

    15:21:50 15773.951172 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> Error in loop, continuing anyway 15:21:50 15773.951172 T:1742054464 ERROR: Traceback (most recent call last): 15:21:50 15773.951172 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/PlexCompanion.py", line 88, in run 15:21:50 15773.952148 T:1742054464 ERROR: subscribers.subMgr.notify() 15:21:50 15773.952148 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 135, in notify 15:21:50 15773.956055 T:1742054464 ERROR: self.notifyServer(players) 15:21:50 15773.956055 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 158, in notifyServer 15:21:50 15773.993164 T:1742054464 ERROR: + serv.get('port', 32400) + "/:/timeline" 15:21:50 15773.994141 T:1742054464 ERROR: TypeError: cannot concatenate 'str' and 'int' objects 15:21:50 15774.007812 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> None 15:21:53 15776.424805 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> Error in loop, continuing anyway 15:21:53 15776.424805 T:1742054464 ERROR: Traceback (most recent call last): 15:21:53 15776.425781 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/PlexCompanion.py", line 88, in run 15:21:53 15776.463867 T:1742054464 ERROR: subscribers.subMgr.notify() 15:21:53 15776.464844 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 135, in notify 15:21:53 15776.488281 T:1742054464 ERROR: self.notifyServer(players) 15:21:53 15776.489258 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 158, in notifyServer 15:21:53 15776.540039 T:1742054464 ERROR: + serv.get('port', 32400) + "/:/timeline" 15:21:53 15776.541016 T:1742054464 ERROR: TypeError: cannot concatenate 'str' and 'int' objects 15:21:53 15776.548828 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> None 15:21:55 15778.972656 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> Error in loop, continuing anyway 15:21:55 15778.973633 T:1742054464 ERROR: Traceback (most recent call last): 15:21:55 15778.973633 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/PlexCompanion.py", line 88, in run 15:21:55 15778.992188 T:1742054464 ERROR: subscribers.subMgr.notify() 15:21:55 15778.992188 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 135, in notify 15:21:55 15779.026367 T:1742054464 ERROR: self.notifyServer(players) 15:21:55 15779.026367 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 158, in notifyServer 15:21:55 15779.056641 T:1742054464 ERROR: + serv.get('port', 32400) + "/:/timeline" 15:21:55 15779.057617 T:1742054464 ERROR: TypeError: cannot concatenate 'str' and 'int' objects 15:21:55 15779.060547 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> None 15:21:58 15781.425781 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> Error in loop, continuing anyway 15:21:58 15781.425781 T:1742054464 ERROR: Traceback (most recent call last): 15:21:58 15781.429688 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/PlexCompanion.py", line 88, in run 15:21:58 15781.429688 T:1742054464 ERROR: subscribers.subMgr.notify() 15:21:58 15781.430664 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 135, in notify 15:21:58 15781.444336 T:1742054464 ERROR: self.notifyServer(players) 15:21:58 15781.445312 T:1742054464 ERROR: File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/plexbmchelper/subscribers.py", line 158, in notifyServer 15:21:58 15781.461914 T:1742054464 ERROR: + serv.get('port', 32400) + "/:/timeline" 15:21:58 15781.463867 T:1742054464 ERROR: TypeError: cannot concatenate 'str' and 'int' objects 15:21:58 15781.476562 T:1742054464 NOTICE: PlexKodiConnect PlexCompanion -> None

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass

    @forumferret said:
    Nothing about this plugin alters the playback methodology, does it? I.e. is Kodi still directly fetching the media and playing it back, or does PlexKodiConnect co-opt that process as well, and slave playback through the Plex Media Server? Should I see anything in "now Playing" when I look at my Plex server during playback of a file on Kodi?

    Nothing is changed, no - PKC is a "player" just like PHT or Rasplex. The plugin basically gives kodi a handle/url where it should fetch the media (directly streamed or transcoded). Plex should obviously know as soon as youre playing something and display that in "now playing".

    However, PKC is always the api in the middle between kodi and plex, whatever you're doing

  • cronetercroneter Members, Plex Pass Posts: 953 Plex Pass

    @KJKingJ said:
    @croneter I upgraded to 1.0.4 and then performed a full reset of everything via the plugin settings. After restarting Kodi, I was able to authenticate to plex.tv using the PIN paring, but after that I couldn't select my user - it was listed, but my pin was rejected. Looking in the logs, I did see the error NOTICE: PlexKodiConnect PlexAPI -> We failed to reach a server. Reason: Service Unavailable: Back-end server is at capacity so this may not be the plugin's fault.

    After restarting Kodi, I was instantly logged in as my user on start up - I didn't have to enter my PIN. The sync then started, but froze on the same item it did in the previous version (a long filename with many Unicode characters in it). The log output is the same as before, previous log is available at http://xbmclogs.com/pyc3pm0mf .

    Many thanks.

    Edit: After restarting Kodi, the sync resumed but froze on another bit of media with unicode characters in the title, most of the title was in English, but there were two Korean characters in it - 랑이.

    Edit 2: After another restart, it finished up the reset of the movies and started on music. No issues there, even with albums/artists/tracks that have unicode characters in their name.

    Thanks, very useful!

    I just got locked out from getting plex.tv tokens :-D

1457910142
Sign In or Register to comment.