PlexKodiConnect: Kodi Plex Integration Done Right

@sylus said:

@Hufvudet said:

@Deihmos said:

@Hufvudet said:

@Deihmos said:
On deck works fine and isn’t On Deck the equivalent to Next Up or recently added? I don’t get it.

Recently added works fine. On deck doesn’t show movies actually on deck according to server, just other random movies. I’m on kodi Isengard if that makes a difference?

I just tried it and it on deck agrees with the server. I am on Kodi 16.1

■■■■, then it must be that :frowning:

Problem is I’m using 15.2 EGL special build with superior video rendering and decoding capabilities compared to jarvis. These things will be included in krypton but krypton doesn’t work with PKC yet.

If u refer with superior video rendering to the dsplayer build, then u can use a 16.1 RC version without problems

Thanks, but I’m running openelec not Windows.

@Deihmos said:

@Hufvudet said:

@Deihmos said:
On deck works fine and isn’t On Deck the equivalent to Next Up or recently added? I don’t get it.

Recently added works fine. On deck doesn’t show movies actually on deck according to server, just other random movies. I’m on kodi Isengard if that makes a difference?

I just tried it and it on deck agrees with the server. I am on Kodi 16.1

Ah, now I get it. It’s the same on both Isengard and Jarvis. PKC/Kodi can’t display default list = On deck in the order of most recently watched / in progress. On deck section does display all movies in progress, just not in the “plex order”.

So after several reboots I got multi profiles working, however in testing the switching capability, PKC only triggers a login of another user about 50% of the time. Rebooting fixes it but it’s pretty consistently unstable in this way. For example, when it’s working it looks like this:

  • “Hello Plex_User 1!” PKC connect message.
  • Everything loads, and widgets populate with User 1’s stuff.
  • Switch to KodiProfile2 w/ PKC set up with Plex_User 2
  • After 3 seconds, “Hello Plex_User 2!” PKC connect message.
  • After 3-5 more seconds, widgets change from User 1’s to User 2’s.

When it doesn’t work, steps 4-5 never happen and I’m stuck with User 1’s info but on KodiProfile2. Watching something on Profile1 seems to make it more likely to occur, and also switching more than once.

@Silvaire That’s not my experience. You should try a reset and resync.

@Deihmos said:
@Silvaire That’s not my experience. You should try a reset and resync.

K, will reset both profiles tmrw and report back.

I stumbled upon this thread by accident this evening and i am SOOO glad i did… running kodi 16 on an nvidia shield using my own made build and this addon is working GREAT… thanks for all your time and effort put into making this addon, much appreciated.

I know it’s been a while since I posted about now playing not working, after I updated it is working now. Is there a donations link yet? lol. I will say I like you just as much as I like the PlexPy developer which is saying alot :slight_smile:

Kodi does keep crashing though. Here are the last 75 lines of the crash log http://pastebin.com/gqASTjq0 this is while it’s just trying to update the library.

@skavangar said:
First thanks for all the work your putting into this. Now onto my question. pkc works great when scanning the files on the internal drives of my pms. Takes a cpl minutes to scan the 500 or so files.

When it gets to the nas that has the drives mapped and added to pms, it slows to a crawl. 10-15 files a minute. The nas is not very powerful and i dont know if thats the issue or if it has to do with that direct path stuff i dont understand.

If its a thats just how fast its going to be, thats fine. But can you export the library and import it into another kodi install? at this rate will take me a week just to get it on all the kodis i have around the house.

Hope all that made sense.

Unfortunately, PKC does put a lot of strain on your PMS during initial sync. PKC asks for a metadata XML for every single media item, plus downloads/caches all the artwork. No wonder your NAS is slow…

YES, you should be able to clone Kodi/PKC!

  • Simply copy/paste your Kodi userdata (http://kodi.wiki/view/Userdata) with e.g. the completely scanned library to the new Kodi instance
  • Starting with the next version of PKC, 1.0.17, go to Settings → Advanced → “Generate a new unique device Id (e.g. when cloning Kodi)”. Every PKC instance needs a unique ID, otherwise Plex gets messed up :wink:

@Silvaire said:

@Deihmos said:
@Silvaire That’s not my experience. You should try a reset and resync.

K, will reset both profiles tmrw and report back.

and @sylus

Think I found your problem. Plex needs a machineIdentifier. You entered the PMS IP manually, PKC did not try to figure out that machineIdentifier. Should be fixed in 1.0.17

@croneter said:

Unfortunately, PKC does put a lot of strain on your PMS during initial sync. PKC asks for a metadata XML for every single media item, plus downloads/caches all the artwork. No wonder your NAS is slow…

YES, you should be able to clone Kodi/PKC!

  • Simply copy/paste your Kodi userdata (http://kodi.wiki/view/Userdata) with e.g. the completely scanned library to the new Kodi instance
  • Starting with the next version of PKC, 1.0.17, go to Settings → Advanced → “Generate a new unique device Id (e.g. when cloning Kodi)”. Every PKC instance needs a unique ID, otherwise Plex gets messed up :wink:

Thanks for the reply. I figured it was the slow nas, Also having 1 folder with 2400 files in it on a slow nas was giving pkc fits. Plex and kodi crashes. Moved all files to alphabetical folders and everything went smoothly.

@skavangar said:

@croneter said:

Unfortunately, PKC does put a lot of strain on your PMS during initial sync. PKC asks for a metadata XML for every single media item, plus downloads/caches all the artwork. No wonder your NAS is slow…

YES, you should be able to clone Kodi/PKC!

  • Simply copy/paste your Kodi userdata (http://kodi.wiki/view/Userdata) with e.g. the completely scanned library to the new Kodi instance
  • Starting with the next version of PKC, 1.0.17, go to Settings → Advanced → “Generate a new unique device Id (e.g. when cloning Kodi)”. Every PKC instance needs a unique ID, otherwise Plex gets messed up :wink:

Thanks for the reply. I figured it was the slow nas, Also having 1 folder with 2400 files in it on a slow nas was giving pkc fits. Plex and kodi crashes. Moved all files to alphabetical folders and everything went smoothly.

This should not make a difference for PKC at all, but maybe for Kodi ;-). You could also try to reduce the number of parallel threads that try to download metadata: Settings → Sync Options → “Limit artwork caching threads” and “Limit download sync threads”

@croneter said:

@Silvaire said:

@Deihmos said:
@Silvaire That’s not my experience. You should try a reset and resync.

K, will reset both profiles tmrw and report back.

and @sylus

Think I found your problem. Plex needs a machineIdentifier. You entered the PMS IP manually, PKC did not try to figure out that machineIdentifier. Should be fixed in 1.0.17

Cool, ready to test. As an aside, I’m not sure why I am reliant on inputting the IP in the first place. I had assumed everyone was doing that to connect to a local LAN PMS but it doesn’t seem to be the case. When I go to Plex.tv, I can access my server fine. Secure connections is set to Preferred, and GDM is on. The funny thing is I never had an issue connecting with PlexBMC when many others did.

Just an FYI in case this crops up down the road with others. If the 17 fixes it for manual IP I’m happy.

Is there any way to export the watched status of my current kodi setup to plex? I’d like to keep my status if I move over to this plugin.

Thanks

Sync your watched stats with trakt.

@edge06 said:
Is there any way to export the watched status of my current kodi setup to plex? I’d like to keep my status if I move over to this plugin.

Thanks

To Plex? Use something like trakt plugin to sync the watchlist from your kodi to plex,

Last one before the Easter break.

Download: https://github.com/croneter/PlexKodiConnect/releases

##Changelog##

version 1.0.17

  • Fix transcoding
  • Get a machineIdentifier if it is missing
  • New Setting: Choose Plex Server from a list
  • Generate a new unique Plex device ID in settings

Edit
If you run into problems with PKC not starting up as it should (log: “NameError: global name ‘guidoc’ is not defined”), try raising the startup delay: Settings -> Advanced -> Startup Delay.

@croneter said:
Last one before the Easter break.

Download: Releases · croneter/PlexKodiConnect · GitHub

##Changelog##

version 1.0.17

  • Fix transcoding
  • Get a machineIdentifier if it is missing
  • New Setting: Choose Plex Server from a list
  • Generate a new unique Plex device ID in settings

Edit
If you run into problems with PKC not starting up as it should (log: “NameError: global name ‘guidoc’ is not defined”), try raising the startup delay: Settings → Advanced → Startup Delay.

Seems to lock up Kodi on exit. reinstalled 1.0.16 and working properly again. PM’d you my log. Have a good Easter weekend and thanks for everything!

@hstamas said:

@croneter said:
Last one before the Easter break.

Download: Releases · croneter/PlexKodiConnect · GitHub

##Changelog##

version 1.0.17

  • Fix transcoding
  • Get a machineIdentifier if it is missing
  • New Setting: Choose Plex Server from a list
  • Generate a new unique Plex device ID in settings

Edit
If you run into problems with PKC not starting up as it should (log: “NameError: global name ‘guidoc’ is not defined”), try raising the startup delay: Settings → Advanced → Startup Delay.

Seems to lock up Kodi on exit. reinstalled 1.0.16 and working properly again. PM’d you my log. Have a good Easter weekend and thanks for everything!

Nope, should not lock up kodi on exit. I’ve been seeing this error message from the start :wink:

I started to test PlexKodiConnect. I use OpenELEC master on a RPi2 currently. I have send a PR to make it compatible to Krypton.

The RPi2 has not enough RAM to make the initial Scan of my movies. I have added a temporary swapfile so that it managed this task. It just finished scanning of movies and tv shows.

Music scanning didn’t work, because album.iUserrating and song.rating are not allowed to be Null:
18:25:49 2048.077881 T:1766613920 ERROR: PlexKodiConnect Items -> itemtypes.py for music album has crashed for item 93932. Error: 18:25:49 2048.078369 T:1766613920 ERROR: PlexKodiConnect Items -> NOT NULL constraint failed: album.iUserrating 18:25:50 2048.120117 T:1766613920 NOTICE: PlexKodiConnect Items -> Traceback: Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 1756, in add_updateAlbum self.run_add_updateAlbum(item, viewtag, viewid) File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 1848, in run_add_updateAlbum rating, lastScraped, "album", albumid)) IntegrityError: NOT NULL constraint failed: album.iUserrating

19:28:00 5778.384766 T:1765168032 ERROR: PlexKodiConnect Items -> itemtypes.py for music song has crashed for item 94014. Error: 19:28:00 5778.385254 T:1765168032 ERROR: PlexKodiConnect Items -> NOT NULL constraint failed: song.rating 19:28:00 5778.387695 T:1765168032 NOTICE: PlexKodiConnect Items -> Traceback: Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 1957, in add_updateSong self.run_add_updateSong(item, viewtag, viewid) File "/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/itemtypes.py", line 2170, in run_add_updateSong dateplayed, rating)) IntegrityError: NOT NULL constraint failed: song.rating

Sorry for this few details, I am more a C/C++ programmer than a Python programmer.

Gerald