PlexKodiConnect: Kodi Plex Integration Done Right

@croneter said:
About time for an update. PKC received a big overhaul on the PMS connection side. Looking forward to your feedback… :wink:

Download repo: GitHub - croneter/PlexKodiConnect: Plex integration in Kodi done right

##Changelog##
version 1.2.0

  • Re-wired connection manager completely
  • Periodically check if PMS address has changed
  • Smarter, faster way to tell that PMS went offline
  • Fix DTS-HD audio is not correctly identified (you will need to manually reset your Kodi DB)
  • Improvements to PMS connection checks
  • Fix default transcoding quality / network speed (so that PKC won’t transcode initially)
  • Fix direct path replacing possibly several times
  • Initialize Kodi DBs only once
  • Correctly update views on server switch

Hi croneter,

Do you consider to implement long awaited (at least by myself :D) the pictures view in your next update plz?

Cheers

I’ve noticed an issue where whenever I try to play something on Watch Later, it just brings up a keyboard with “Enter the movie name” instead of playing the video.

@lock571 said:
I’ve noticed an issue where whenever I try to play something on Watch Later, it just brings up a keyboard with “Enter the movie name” instead of playing the video.

How about some logs?

I’m using pkc to populate my spmc database with local file paths (not using Plex to stream the content). When I’m in a TV show there is no submenu that says “episode information”. Additionally over in Movies the “Movie Information” screen doesn’t have an option for trailers. As this is a native Kodi feature I expected it to still be there.

@rcrh said:
I’m using pkc to populate my spmc database with local file paths (not using Plex to stream the content). When I’m in a TV show there is no submenu that says “episode information”. Additionally over in Movies the “Movie Information” screen doesn’t have an option for trailers. As this is a native Kodi feature I expected it to still be there.

How exactly did you navigate to these episodes where the episode info screen is missing? For On Deck and Recently Added video nodes, there is a kodi (and not PKC) bug sometimes (not always) preventing you to access this info screen.

PKC populates the Kodi trailers with links to plex pass trailers. No plex pass no links, obviously. As PKC completely takes over the Kodi database and the Kodi movie scanner that would add trailers is omitted, you cannot get “kodi trailers”.
Plus, as I elaborated a couple of posts ago, trailers are a plex pass feature. Plex needs to make money somehow to implement new features (unlike me ;-))

Just some feedback on the new version. Checking for new IP is working. Local server is found as local and not as remote anymore. So far everthing works.

@sylus said:
Just some feedback on the new version. Checking for new IP is working. Local server is found as local and not as remote anymore. So far everthing works.

My server is local again too.

@cculpepp said:
Just updated to v1.2.0. Running SPMC 16.3 on Shield. Did a database reset after the upgrade and now artwork won’t download (discart, clear logos, etc.) Artwork that is supplied by the Plex server is fine, just the artwork that PKC adds isnt downloading. It was working flawlessly in the previous version.

I’m also getting the same with the most recent version. @croneter do you know what happened here (have not had time to look at the code yet)

@im85288 said:

@cculpepp said:
Just updated to v1.2.0. Running SPMC 16.3 on Shield. Did a database reset after the upgrade and now artwork won’t download (discart, clear logos, etc.) Artwork that is supplied by the Plex server is fine, just the artwork that PKC adds isnt downloading. It was working flawlessly in the previous version.

I’m also getting the same with the most recent version. @croneter do you know what happened here (have not had time to look at the code yet)

If you know how to interpret debug logs (I sure can’t), I posted my logs on the issue on the PKC Github bug forum.

@im85288 said:

@cculpepp said:
Just updated to v1.2.0. Running SPMC 16.3 on Shield. Did a database reset after the upgrade and now artwork won’t download (discart, clear logos, etc.) Artwork that is supplied by the Plex server is fine, just the artwork that PKC adds isnt downloading. It was working flawlessly in the previous version.

I’m also getting the same with the most recent version. @croneter do you know what happened here (have not had time to look at the code yet)

Please check Artwork not downloading on SPMC · Issue #47 · croneter/PlexKodiConnect · GitHub; especially if you are not using SPMC, then I’d love to get more info :wink:

@croneter said:

@rcrh said:
I’m using pkc to populate my spmc database with local file paths (not using Plex to stream the content). When I’m in a TV show there is no submenu that says “episode information”. Additionally over in Movies the “Movie Information” screen doesn’t have an option for trailers. As this is a native Kodi feature I expected it to still be there.

How exactly did you navigate to these episodes where the episode info screen is missing? For On Deck and Recently Added video nodes, there is a kodi (and not PKC) bug sometimes (not always) preventing you to access this info screen.

PKC populates the Kodi trailers with links to plex pass trailers. No plex pass no links, obviously. As PKC completely takes over the Kodi database and the Kodi movie scanner that would add trailers is omitted, you cannot get “kodi trailers”.
Plus, as I elaborated a couple of posts ago, trailers are a plex pass feature. Plex needs to make money somehow to implement new features (unlike me ;-))

I’m navigating to my shows by selecting “TV SHOWS”, and then the show and then the season and then the episode; and not from the submenu.

Concerning the trailers I get the conflict now. Since the Kodi scanner isn’t running it can’t add the trailer info.

I watched progress with excitement and finally got time to give PKC a try (coffee time for croneter) :slight_smile:

I have different Movie Libraries in Plex and learned that there are different ways of splitting them in Kodi thanks to PKCs extra information.
I found out that these three ways of creating a new custom entry in the main menu seem to lead to similar results (based on Aeon Nox, at least browsing the movies looks same in the first moment):

  1. Choose “Video Library” → “Movies” → “Tags” → “name-of-my-plex-movielibrary”
    Results in select action: ActivateWindow(Videos,videodb://movies/tags/2/,return)

  2. Choose “Video Library” → “name-of-my-plex-movielibrary” → “name-of-my-plex-movielibrary”
    Results in select action: ActivateWindow(Videos,Library://video/Plex-7/7_all.xml/,return)

  3. Choose Video Library → Playlist → “Plex name-of-my-plex-movielibrary” (choose show playlist)
    Results in select action: ActivateWindow(VideoLibrary,special://profile/playlists/video/Plex 7.xsp,return)

I’m not in to Kodi that much. Is 2) a so called video-node? (yes, I saw the other entries which give me started movies etc which is very useful). Are the playlists in 3) updated with every PKC sync?

Are there key advantages or disadvantages with either of these three methods?

Quick bugfix update. Some bugs really do persist :-(. Any help of fellow developers is really appreciated, see https://github.com/croneter/PlexKodiConnect/issues for the latest info on known bugs.

##Changelog##
version 1.2.1

  • Fix crash when Kodi not playing as expected
  • Improve player.py stability
  • Background sync: don’t try to process infinitely
  • Only tell PMS we’re connected to what we’re playing. This should enable the Plex Media Server to fall to sleep because PKC is not constantly bugging it
  • Ensure credentials are known when reconnecting
  • Remove some emby references
  • Ask on first run if we have a low powered device

By the way - many, many thanks for all the coffee guys!!! :smiley:

Sometimes the resume point has some weird numbers. I have been seeing this for a while . I am using direct paths. Has anyone else experienced this?

@daywalker said:
I watched progress with excitement and finally got time to give PKC a try (coffee time for croneter) :slight_smile:

I have different Movie Libraries in Plex and learned that there are different ways of splitting them in Kodi thanks to PKCs extra information.
I found out that these three ways of creating a new custom entry in the main menu seem to lead to similar results (based on Aeon Nox, at least browsing the movies looks same in the first moment):

  1. Choose “Video Library” → “Movies” → “Tags” → “name-of-my-plex-movielibrary”
    Results in select action: ActivateWindow(Videos,videodb://movies/tags/2/,return)

  2. Choose “Video Library” → “name-of-my-plex-movielibrary” → “name-of-my-plex-movielibrary”
    Results in select action: ActivateWindow(Videos,Library://video/Plex-7/7_all.xml/,return)

  3. Choose Video Library → Playlist → “Plex name-of-my-plex-movielibrary” (choose show playlist)
    Results in select action: ActivateWindow(VideoLibrary,special://profile/playlists/video/Plex 7.xsp,return)

I’m not in to Kodi that much. Is 2) a so called video-node? (yes, I saw the other entries which give me started movies etc which is very useful). Are the playlists in 3) updated with every PKC sync?

Are there key advantages or disadvantages with either of these three methods?

Many thanks for the coffee! :slight_smile:

Yes, 2 is video nodes. If you can, use that, because it will give you useful sub categories like on deck and recently added. The other methods don’t do that.

The playlist in 3 is never updated,but contains a smart filter for the respective library. So in a sense, if you sync and get new pms items, the playlist will indeed show them immediately.

If not using video nodes, it doesn’t matter which of the other methods you’re using

Movie Collection art work:
This might be swinging for the fence but I’ll ask anyway.
I’ve created movie collections in Plex and they have successfully been passed over to Kodi. However there is no poster or fanart for the collection. Each movie in the collection has the right artwork but the main collection is blank. This often also happens in Kodi but you can then select the set and choice artwork from the items in the set. With PKC you don’t get the choice of any of the items in the collection. You can only “browse”. If the items in the set can’t be made available it would be nice if PKC selected one of the items.
Like I said, this is a small feature but it sure would be great.

@rcrh said:

@croneter said:

@rcrh said:
I’m using pkc to populate my spmc database with local file paths (not using Plex to stream the content). When I’m in a TV show there is no submenu that says “episode information”. Additionally over in Movies the “Movie Information” screen doesn’t have an option for trailers. As this is a native Kodi feature I expected it to still be there.

How exactly did you navigate to these episodes where the episode info screen is missing? For On Deck and Recently Added video nodes, there is a kodi (and not PKC) bug sometimes (not always) preventing you to access this info screen.

I’m navigating to my shows by selecting “TV SHOWS”, and then the show and then the season and then the episode; and not from the submenu.

Concerning the trailers I get the conflict now. Since the Kodi scanner isn’t running it can’t add the trailer info.

Here is a bit more info concerning the “EPISODE INFO” screen: If I’m in a show with only one season the menu item is there. However, if the show has multiple seasons the menu item is missing.
I hope that helps track down the issue.

@rcrh said:
Movie Collection art work:
This might be swinging for the fence but I’ll ask anyway.
I’ve created movie collections in Plex and they have successfully been passed over to Kodi. However there is no poster or fanart for the collection. Each movie in the collection has the right artwork but the main collection is blank. This often also happens in Kodi but you can then select the set and choice artwork from the items in the set. With PKC you don’t get the choice of any of the items in the collection. You can only “browse”. If the items in the set can’t be made available it would be nice if PKC selected one of the items.
Like I said, this is a small feature but it sure would be great.

A little confused on what you are asking but to get the collection poster, just browse to it and select it, I have done this and it works perfect for posters but no fanart.

If this isn’t what you mean then my apologies :slight_smile:

Finally, PKC notices correctly if you’ve changed a movie’s or tv episode’s filename!

##Changelog##
version 1.2.2

  • Fix filename change recognition for episodes and movies - finally! If you experienced this, you will have to manually reset the Kodi database in the PKC settings
  • Fix PKC resume points set way too high
  • Clarify that transcode settings are TARGET quality