PlexKodiConnect: Kodi Plex Integration Done Right

New release 1.0.5 out: https://github.com/croneter/PlexKodiConnect/releases

Hopefully anyone is now able to connect to any PMS with any user :-). Reset everything via Settings -> Advanced -> Perform local DB reset (full Resync), then 3x “Yes” if you still experience problems.

I did NOT catch the glitch with the tv shows. However, I expanded on the logs. So if you could please post your logs here in this thread if you find any log entries containing “has crashed”. For now, items are skipped if the processing crashes.

##Changelog##
version 1.0.5

  • Catch exceptions in itemtypes and log them
  • Slightly increased download timeouts
  • Overhaul userclient

@croneter Updated and reset the local database, and the sync completed this time! Hooray! :smiley:

Looking through the log, there are a number of items that are skipped due to an error and it always seems to be due to the codecID. I’ve picked out a few examples below;

17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Processing item 8560 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Read all attributes 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Path set for item 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> ADD movie itemid: 8560 - Title: [アニメ] MUSIC JAPAN 新世紀アニソンSP.4 完全版 水樹奈々×May'n, 工藤真由, ピコ, Girls Dead Monster(marina/LiSA), ALI PROJECT, May'n, JAM Project, 水樹奈々 20110603 [1h29m00s 1440x810] 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Done add or update for item 17:48:06 T:5536 ERROR: PlexKodiConnect Items -> itemtypes.py for movies has crashed for item 8560. Error: 17:48:06 T:5536 ERROR: PlexKodiConnect Items -> 'codecID'

17:50:42 T:5680 NOTICE: PlexKodiConnect Items -> ADD episode itemid: 5281 17:50:42 T:5680 ERROR: PlexKodiConnect Items -> itemtypes.py for tv episode has crashed for item 5281. Error: 17:50:42 T:5680 ERROR: PlexKodiConnect Items -> 'codecID'

17:50:46 T:5680 NOTICE: PlexKodiConnect Items -> ADD episode itemid: 3539 17:50:46 T:5680 ERROR: PlexKodiConnect Items -> itemtypes.py for tv episode has crashed for item 3539. Error: 17:50:46 T:5680 ERROR: PlexKodiConnect Items -> 'codecID'

17:50:56 T:5680 NOTICE: PlexKodiConnect Items -> ADD episode itemid: 4411 17:50:56 T:5680 ERROR: PlexKodiConnect Items -> itemtypes.py for tv episode has crashed for item 4411. Error: 17:50:56 T:5680 ERROR: PlexKodiConnect Items -> 'codecID'

I can confirm that some of the things it appeared to be freezing on before (due to unicode characters) are now being imported successfully. For the first time i’m able to check idle CPU usage too and it seems to be around 6-7% on an Intel i5-4250U.

Many thanks!

@croneter said:
New release 1.0.5 out: Releases · croneter/PlexKodiConnect · GitHub

Hopefully anyone is now able to connect to any PMS with any user :-). Reset everything via Settings → Advanced → Perform local DB reset (full Resync), then 3x “Yes” if you still experience problems.

I did NOT catch the glitch with the tv shows. However, I expanded on the logs. So if you could please post your logs here in this thread if you find any log entries containing “has crashed”. For now, items are skipped if the processing crashes.

##Changelog##
version 1.0.5

  • Catch exceptions in itemtypes and log them
  • Slightly increased download timeouts
  • Overhaul userclient

Unfortunately no dice here still. Same issue – can’t log in to either of my Plex Home users. Log attached:

http://xbmclogs.com/pej5hsezj

@croneter said:

@DocACE911 said:
So for PLAYLISTS from PLEX we would still need PLEXBMC to get those correct?

Nope, playlists should sync with PKC. At least that’s the goal :smiley:

I was going to ask the same question @croneter but was holding off until some of the more basic stuff was ironed out.

Since its been brought up though :wink:

A typical scenario for myself is, I like to brows my Plex library on my iPhone during the day deciding what movie to watch that evening. When I find something, I add it to a playlist. That night on Plex in my living room I pull up that playlist and away I go. Ive been able to duplicate this scenario with PlexBMC. The playlists are there. I have not however been able to do this with PKC. I have navigated (somewhat blindly I have to admit) to a file folder called “playlists” but its always empty. Ive even found the dialog item thats says something like “resync Plex media/playlists”. When I do that I get a successful confirmation but again, the only menu item that I can find called “playlists” is empty.

I was thinking that I am just not looking in the right place?

@croneter - very happy to report that with 1.05… I managed for the 1st time a complete sync of all my movies and TV shows without a sync stall/crash. Good work, thank you.

@Silvaire said:

@croneter said:
New release 1.0.5 out: Releases · croneter/PlexKodiConnect · GitHub

Hopefully anyone is now able to connect to any PMS with any user :-). Reset everything via Settings → Advanced → Perform local DB reset (full Resync), then 3x “Yes” if you still experience problems.

I did NOT catch the glitch with the tv shows. However, I expanded on the logs. So if you could please post your logs here in this thread if you find any log entries containing “has crashed”. For now, items are skipped if the processing crashes.

##Changelog##
version 1.0.5

  • Catch exceptions in itemtypes and log them
  • Slightly increased download timeouts
  • Overhaul userclient

Unfortunately no dice here still. Same issue – can’t log in to either of my Plex Home users. Log attached:

http://xbmclogs.com/pej5hsezj

Is your plex server connected to plex.tv? In the PMS settings, everything green with your plex.tv settings?

@mini.PLEX said:
@croneter - very happy to report that with 1.05… I managed for the 1st time a complete sync of all my movies and TV shows without a sync stall/crash. Good work, thank you.

Cool! Please check log for “has crashed” errors - otherwise we might be missing crucial items :wink:

@KJKingJ said:
@croneter Updated and reset the local database, and the sync completed this time! Hooray! :smiley:

Looking through the log, there are a number of items that are skipped due to an error and it always seems to be due to the codecID. I’ve picked out a few examples below;

17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Processing item 8560 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Read all attributes 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Path set for item 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> ADD movie itemid: 8560 - Title: [アニメ] MUSIC JAPAN 新世紀アニソンSP.4 完全版 水樹奈々×May'n, 工藤真由, ピコ, Girls Dead Monster(marina/LiSA), ALI PROJECT, May'n, JAM Project, 水樹奈々 20110603 [1h29m00s 1440x810] 17:48:06 T:5536 NOTICE: PlexKodiConnect Items -> Done add or update for item 17:48:06 T:5536 ERROR: PlexKodiConnect Items -> itemtypes.py for movies has crashed for item 8560. Error: 17:48:06 T:5536 ERROR: PlexKodiConnect Items -> 'codecID'

17:50:42 T:5680 NOTICE: PlexKodiConnect Items -> ADD episode itemid: 5281 17:50:42 T:5680 ERROR: PlexKodiConnect Items -> itemtypes.py for tv episode has crashed for item 5281. Error: 17:50:42 T:5680 ERROR: PlexKodiConnect Items -> 'codecID'

17:50:46 T:5680 NOTICE: PlexKodiConnect Items -> ADD episode itemid: 3539 17:50:46 T:5680 ERROR: PlexKodiConnect Items -> itemtypes.py for tv episode has crashed for item 3539. Error: 17:50:46 T:5680 ERROR: PlexKodiConnect Items -> 'codecID'

17:50:56 T:5680 NOTICE: PlexKodiConnect Items -> ADD episode itemid: 4411 17:50:56 T:5680 ERROR: PlexKodiConnect Items -> itemtypes.py for tv episode has crashed for item 4411. Error: 17:50:56 T:5680 ERROR: PlexKodiConnect Items -> 'codecID'

I can confirm that some of the things it appeared to be freezing on before (due to unicode characters) are now being imported successfully. For the first time i’m able to check idle CPU usage too and it seems to be around 6-7% on an Intel i5-4250U.

Many thanks!

Are there some more lines to the error or only “codecID”?

@croneter said:

@Silvaire said:

@croneter said:
New release 1.0.5 out: Releases · croneter/PlexKodiConnect · GitHub

Hopefully anyone is now able to connect to any PMS with any user :-). Reset everything via Settings → Advanced → Perform local DB reset (full Resync), then 3x “Yes” if you still experience problems.

I did NOT catch the glitch with the tv shows. However, I expanded on the logs. So if you could please post your logs here in this thread if you find any log entries containing “has crashed”. For now, items are skipped if the processing crashes.

##Changelog##
version 1.0.5

  • Catch exceptions in itemtypes and log them
  • Slightly increased download timeouts
  • Overhaul userclient

Unfortunately no dice here still. Same issue – can’t log in to either of my Plex Home users. Log attached:

http://xbmclogs.com/pej5hsezj

Is your plex server connected to plex.tv? In the PMS settings, everything green with your plex.tv settings?

Yup. Running Version 0.9.15.6 on Debian with PlexPass.

@croneter said:
Are there some more lines to the error or only “codecID”?

Only codecID unfortunately, the next line is always about another item instead.

I changed the logging to debug during the sync, let me try a DB reset only, leaving the settings intact, and see if I can get any more information.

Edit: Seems the only extra information is about image caching. Otherwise, the only error details are ‘codecID’.

@Silvaire said:

@croneter said:

@Silvaire said:

@croneter said:
New release 1.0.5 out: Releases · croneter/PlexKodiConnect · GitHub

Hopefully anyone is now able to connect to any PMS with any user :-). Reset everything via Settings → Advanced → Perform local DB reset (full Resync), then 3x “Yes” if you still experience problems.

I did NOT catch the glitch with the tv shows. However, I expanded on the logs. So if you could please post your logs here in this thread if you find any log entries containing “has crashed”. For now, items are skipped if the processing crashes.

##Changelog##
version 1.0.5

  • Catch exceptions in itemtypes and log them
  • Slightly increased download timeouts
  • Overhaul userclient

Unfortunately no dice here still. Same issue – can’t log in to either of my Plex Home users. Log attached:

http://xbmclogs.com/pej5hsezj

Is your plex server connected to plex.tv? In the PMS settings, everything green with your plex.tv settings?

Yup. Running Version 0.9.15.6 on Debian with PlexPass.

Your plex machineidentifier is not found in the plex.tv response. Maybe try this: go to pms settings. Then sign PMS out of plex.tv Then sign in again. On your PMS, not Kodi!

@KJKingJ said:

@croneter said:
Are there some more lines to the error or only “codecID”?

Only codecID unfortunately, the next line is always about another item instead.

I changed the logging to debug during the sync, let me try a DB reset only, leaving the settings intact, and see if I can get any more information.

Edit: Seems the only extra information is about image caching. Otherwise, the only error details are ‘codecID’.

OK, new tack on this.

  • Go to item’s page: Could you please open your browser and go to the page of any movie. Then change the end of the URL in the browser to something like this: “details/%2Flibrary%2Fmetadata%2Fxxxx” with xxx being the itemids of the items that fail: 8560, 5281, 3539, 4411
  • Get item’s xml: then please go to “…” → Info → Show XML

Could you then post/send these 4 xmls to me? E.g. private message or xbmclogs ;-). Thanks!!

@croneter said:

@DocACE911 said:
So for PLAYLISTS from PLEX we would still need PLEXBMC to get those correct?

So the use this eventually for library TV shows/movies but use PLEXBMC for playlists and anny channels we need (like iTUNES).

I hope they play well together :slight_smile:

Nope, playlists should sync with PKC. At least that’s the goal :smiley:

sorry just to confirm (slightly confused) should I be seeing an entry for ‘Playlists’ now with PKC? or is this a feature that shall be added in the future?

…I cannot currently see any entry’s to view my ‘Plex Playlists’

@mini.PLEX said:

@croneter said:

@DocACE911 said:
So for PLAYLISTS from PLEX we would still need PLEXBMC to get those correct?

So the use this eventually for library TV shows/movies but use PLEXBMC for playlists and anny channels we need (like iTUNES).

I hope they play well together :slight_smile:

Nope, playlists should sync with PKC. At least that’s the goal :smiley:

sorry just to confirm (slightly confused) should I be seeing an entry for ‘Playlists’ now with PKC? or is this a feature that shall be added in the future?

…I cannot currently see any entry’s to view my ‘Plex Playlists’

Playlists are not yet implemented.

@croneter said:

@DocACE911 said:
So for PLAYLISTS from PLEX we would still need PLEXBMC to get those correct?

Nope, playlists should sync with PKC. At least that’s the goal :smiley:

Since PLEX does not playback ISO or BD folders, how do you suggest we add those to kodi? By TAGS maybe??

But for the time beng we could use PLEXBMC to add a PLAYLIST to say favorites :0 Been doing that for a long time.

I have that also a “Watch With Lucy” PLEX playlist. I add to that from my iPhone adn it is in Favorites on KODI.

@DocACE911 said:

@croneter said:

@DocACE911 said:
So for PLAYLISTS from PLEX we would still need PLEXBMC to get those correct?

Nope, playlists should sync with PKC. At least that’s the goal :smiley:

Since PLEX does not playback ISO or BD folders, how do you suggest we add those to kodi? By TAGS maybe??

Funny thing is - I am not Kodi expert and have no ISOs or BDs :-D. I hope someone else can chime in here

@croneter said:
OK, new tack on this.

  • Go to item’s page: Could you please open your browser and go to the page of any movie. Then change the end of the URL in the browser to something like this: “details/%2Flibrary%2Fmetadata%2Fxxxx” with xxx being the itemids of the items that fail: 8560, 5281, 3539, 4411
  • Get item’s xml: then please go to “…” → Info → Show XML

Could you then post/send these 4 xmls to me? E.g. private message or xbmclogs ;-). Thanks!!

PM sent. Looks like they all have unicode characters in the filename which might be why.

Everything is syncing ok, but when I start a movie a different tittle plays. I selected the same movie 3 times and 3 different movies played. TV shows work fine.

New Log
xbmclogs.com/p31g082mt

Hi,
for all guys having problems with the logon: try to skip the first dialog that comes up after the activation of the plugin and ask you to link via Plex.tv/link ! Skip this dialog (press exit on your remote), then the local server can be selected, without use of plex home…it works - at least here…
sync is still running (but running ;-), after the auto re-starts.

So the PlugIn becomes better and better (as I do not have to create a cronjob to restart).

edit:
i tried to logon with home user: ERROR: PlexKodiConnect PlexAPI -> PlexSwitchHomeUser : No tokens found for your server!

without home user enabled it works, as described above