PlexKodiConnect: Kodi Plex Integration Done Right

@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 :smiley:

My movies synced up fine, but I am getting stuck on TV shows. Even after a re-start it cannot make it passed the point of the original freeze.

New Log
http://xbmclogs.com/phd93mrdu

@croneter said:

@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 :-).

Yup, did the reset. This is for a Plex server that is on a different machine on the LAN. Here is what happens:

  1. Prompted for pin. Put it in, hit ok.
  2. Eventually get an error saying can’t locate server.
  3. I put in the IP address of PMS server on LAN on the first page of the addon configuration and hit OK.
  4. Now I get a pop up asking me to choose between the two Plex Home user accounts I have.
  5. Either one refuses to log in.

Here is a log with debug enabled:

http://xbmclogs.com/perspx3g6

Looks like Silvaire and I have exact the same issue

@Silvaire and @sylus

Will need an update. If you still want to test, try creating a second plex home user.

@croneter said:
@Silvaire and @sylus

Will need an update. If you still want to test, try creating a second plex home user.

Happy to help. However, I already have 2 Plex Home users, do you want me to create a third one for this purpose?

I already had 2. Created a third which needs a special pin to login. The others are without any requirements for a pin. If I try to login to the new “third” user i am asked to enter the user pin.

But then refuses to login.

@Silvaire said:

@croneter said:
@Silvaire and @sylus

Will need an update. If you still want to test, try creating a second plex home user.

Happy to help. However, I already have 2 Plex Home users, do you want me to create a third one for this purpose?

Shoot, thought you had only 1. No, thanks

@croneter said:
Thanks, very useful!

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

Haha, oops!

The music sync appears to have completed OK, but I think i’m now running in to the same issue that @Silvaire and @sylus are having - TV show sync freezes. New log uploaded at http://xbmclogs.com/ptgrvsryb .

Hi,
I checked the playback again - works fine a full movie without any problems.
After that I checked the logon procedure again - because I wanted to use a dedicated user with only parts of my library to scan and BOMM I stuck in the LogOn nightmare again ;-(.

For me it doesn’t work with a second user…, I tried with PIN, without…no luck, I linked the app 10 times, 20 times…
BUT after I disabled the home function (“leave home”-button) at my PMS (because I don’t use it in other cases) -> I was able to LogOn again: after disabling plex home, I restarted, tried 5 times to LogIn via the popup dialog without success and then I press back (!) not yes or no, just back: the user dialog disappears and I was “welcome” to my Plex… strange…
So the only thing left here is the a “sync info PopUp” that did not go away…It stays on top…

Edit 1: the sync info stays as long as all items have been synced, so potentially until a lot of restarts
Edit 2: the LogOn dialog comes up at any restart, as long as I changed the plugIn settings.xml to “plexhome” value=“false”

TV syncing isnt working for me. Movies worked fine. It went through the tv progress bar at the top… but there’s no tv library. I’ve restarted multiple times now.

fresh install of 1.0.4. Tv scan still locks up. Log attached.

Noted this time that the TV scan stops at the same files every time. Also noting that once I get past the scan lookups my library is incomplete. The “repair local database” option I. Setting seems to do nothing.

@croneter said:

@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

Emby has the option of playing via the addon (HTTP) or direct (via SMB) share, Is PKC pulling the stream via PMS (either via http or linked SMB) or is it resolving the path to the local media path, ie \PMS\Media\TV\show,mkv)?

Reason I ask is that I found that Emby added a bit of overhead (from what I can tell, Emby uses an ‘id’ for each piece of media) that slightly affects load times and fast forward/rewind functions.

So basically just wanting to know if PKC streams directly and if not, can you enable it or can it be coded to work that way as an option?

@xyrgh said:

Emby has the option of playing via the addon (HTTP) or direct (via SMB) share, Is PKC pulling the stream via PMS (either via http or linked SMB) or is it resolving the path to the local media path, ie \PMS\Media\TV\show,mkv)?

Reason I ask is that I found that Emby added a bit of overhead (from what I can tell, Emby uses an ‘id’ for each piece of media) that slightly affects load times and fast forward/rewind functions.

So basically just wanting to know if PKC streams directly and if not, can you enable it or can it be coded to work that way as an option?

PKC currently only uses HTTP.

However, it’s possible to get a local file path for a specific file from the PMS metadata, e.g. “E:\PlexMovies\Kung.Fu.Panda.(2008).720p.mkv” for Windows. Seems like if you’re setting up Plex with Shares “\PMS\Media\TV\show.mkv”, PKC could also be tricked in using local paths.

First got to get everyone to sync their complete libraries though :wink:

BUT - PKC and Emby for Kodi will always get the latest metadata for a specific item before starting playback. This does introduce a slight delay.

Hi Croneter, thank you very much for your work.
Hippojay’s app was great, but being able to get integrated libraries in Kodi is the icing on the cake.
I tested version 1.0.1 and i was able to login, see my servers, and start synching one of them (local). The sync hung in the movies, probably teh same issues as seen here by others.

This morning I quickly tested version 1.0.4 (deleted sync dB, three times yes, and deleted the addon settings folder). I was immediately asked to login in to plex home and did that successfully. Then it told me:

  • cannot find any servers
  • adding a server IP manually (with https, no ssl cert checking) brought up the user list (I use plex home without pin, 4 users)
  • After selecting a user I got an error message saying I could not access the server
    I can provide logs tonight if required

I also have a question, I have my libraries on two servers (one local and one remote). Will it be possible to access the libraries from both sometime in the future ? they both have different library names(Movies site1 vs movies site2 etc).

Thanks again for your hard work.

Best
Charles

@croneter 1.0.4 still hangs when syncing for me, here is the debug log: http://pastebin.com/xBZWNiEv

And here is another (Kodi debug logging on too). There’s a lot of PlexCompanion errors too:
http://pastebin.com/47rfCHuK

@MartinAyla said:
@croneter 1.0.4 still hangs when syncing for me, here is the debug log: http://pastebin.com/xBZWNiEv

And here is another (Kodi debug logging on too). There’s a lot of PlexCompanion errors too:
http://pastebin.com/47rfCHuK

Same for me… Still hangs… But only tv shows… It scanned in my new movie as soon as it started. I will try to start fresh to see what happens.

So how would one in KODI propose to have a ?separate? library for my ISO/BD rips?? This is the oNE area where KODI excels over plex (plex does not supprot ISO or BD structure).

Use TAGS in KODI maybe??

This is really a wonderful solution - I am happy Emby devs helped you with this. Thank you. I will start testing (on my surface 3) and try to help wtih bug fixing and suggestions for setups.

The wonderful thing is the skins will just “work” since it is seen as a kodi library (like confluence).

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:

@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: