PlexKodiConnect: Kodi Plex Integration Done Right

@agasi34 said:
Hi Croneter,

thx for your quick answer.

You have to elaborate a bit. When can you not change subtitles? When i start a movie or when i’m in the osd, i try to change the subtitles but there is only the first subtitle which worked… When i try to change subtitles, nothing work (but i can change subtitle when i use plex app on my android phone so subtitles exist
Are you using direct paths or add on paths? Does this always happen or just when you resume a video?** i use direct paths and it always happen.**

PKC only hands Kodi a list of subtitles apart from the ones Kodi discovers by itself. “changing” and displaying subtitles etc is all done by Kodi____

Some subtitles are stored in the Plex database and cannot be directly accessed or downloaded. These PKC cannot (yet) forward to Kodi; they are “missing”.
However, I almost always use Kodi to download the correct subtitles anyway :wink:

Thx Croneter for your, answer,

In fact, i see subtitles in kodi, but when i want to activate these, nothing happened … and when i switch back to the first subtitle language, it works … it’s a little bit strange. And these subtitles have worked with previous version of PKC.

@agasi34 said:
Thx Croneter for your, answer,

In fact, i see subtitles in kodi, but when i want to activate these, nothing happened … and when i switch back to the first subtitle language, it works … it’s a little bit strange. And these subtitles have worked with previous version of PKC.

Please follow How to Report A Bug · croneter/PlexKodiConnect Wiki · GitHub

I have make a Partial or Full Reset of Database but now nothing work, library Sync thread crashed every Time… I have test to remove pkc and reinstall it but again samedi library Sync error… Im trying to give you my logs

@agasi34 said:
I have make a Partial or Full Reset of Database but now nothing work, library Sync thread crashed every Time… I have test to remove pkc and reinstall it but again samedi library Sync error… Im trying to give you my logs

Yes please, logs would greatly help me in fixing the bug you’re suffering from

HI Croneter,

i send you a private message with my logs.

@agasi34 said:
I have make a Partial or Full Reset of Database but now nothing work, library Sync thread crashed every Time… I have test to remove pkc and reinstall it but again samedi library Sync error… Im trying to give you my logs

Many thanks for your bug report, much appreciated. I opened an issue on github:

@agasi34 said:
HI Croneter,

i send you a private message with my logs.

I think your Python installation is rather old and you need to update it. Please check and reply here: Library sync crashes every time with UnicodeDecodeError · Issue #344 · croneter/PlexKodiConnect · GitHub

Changelog

version 1.8.16:

  • Add premiere dates for movies, thanks @dazedcrazy
  • Fix items not getting marked as fully watched

Hi croneter et al, thanks for such an awesome addon, PKC is amazing.

I was just wondering if PKC supports “video preview thumbnails”? I’ve tried searching and cant see an answer yay or nay anywhere.

Thanks again.

@jhalewood said:
Hi croneter et al, thanks for such an awesome addon, PKC is amazing.

I was just wondering if PKC supports “video preview thumbnails”? I’ve tried searching and cant see an answer yay or nay anywhere.

Thanks again.

Glad you’re enjoying the ride :blush:
PKC doesn’t do anything special to support these video preview thumbnails. Did you try using PKC with Direct Paths? Might be that Kodi automatically generates them :lol: . If not, you’d have a candidate for a feature request: Feathub.comfeathub.com | Tempat rekomendasi situs judi online terbaik dengan bonus yang beragam dan terpercaya

Edit - having done my research, I must tell you that you need a feature request for PKC to additionally sync chapter bookmarks from the PMS to Kodi.

Finally installed and configured PKC a few days ago, and I have to say, amazing work! Having the best media server feeding the best media client is just awesome. Digging around Kodi and customizing the views to my liking was like returning home after a long absence. (Up until I switched to Plex, I’d been using Kodi since it was called XBox Media Player - yes, Player).

I am running into one issue, though. For some reason, my On Deck widgets for each library usually don’t update. I can finish an episode, and it stays on deck instead of the next episode appearing. Even after opening the addon and forcing a refresh of libraries and nodes (I think that’s what it said), they still don’t update. I am using Titan skin and added widgets using the pre-configured On Deck libraries from the PKC addon. When I made a couple of changes to the menus, and skinshortcuts rebuilt them, the widgets updated once, but now they’re stuck again. If I launch the official Plex add-on or use a different client, the On Deck row shows the correctly updated episodes.

Is this a known issue, or should I provide logs the next time this occurs?

@hegemon13 said:
Finally installed and configured PKC a few days ago, and I have to say, amazing work! Having the best media server feeding the best media client is just awesome. Digging around Kodi and customizing the views to my liking was like returning home after a long absence. (Up until I switched to Plex, I’d been using Kodi since it was called XBox Media Player - yes, Player).

I am running into one issue, though. For some reason, my On Deck widgets for each library usually don’t update. I can finish an episode, and it stays on deck instead of the next episode appearing. Even after opening the addon and forcing a refresh of libraries and nodes (I think that’s what it said), they still don’t update. I am using Titan skin and added widgets using the pre-configured On Deck libraries from the PKC addon. When I made a couple of changes to the menus, and skinshortcuts rebuilt them, the widgets updated once, but now they’re stuck again. If I launch the official Plex add-on or use a different client, the On Deck row shows the correctly updated episodes.

Is this a known issue, or should I provide logs the next time this occurs?

Sounds like the Titan skin is not reloading the On Deck widget after you’ve stopped playback and drop back to the Kodi homescreen (not calling the respective PKC widget to refresh the listed items). Did you try another skin? You might have some possibility to tweak this behavior in Titan, try asking in the Kodi forum Titan thread.

Using a force refresh of playlists and nodes on the PKC side unfortunately doesn’t help

Croneter, your last updated solve my synchro problem (see github). Thank you very much for your support, i send you a coffee for your work.

Thx again.

Hi Croneter,

I finally got my C2 and use PKC with libreElec 8.1.2, so far everything seems to work quite well. I want to thank you for your plugin, it’s a very smart idea and combine the best of 2 worlds.

I have one question, it’s maybe related to Kodi only or PKC, not sure… : in my PMS i have 2 libraries: 1 for Movies and 1 for Videos. The videos are actually samples to test my set up (4k, 2k, TrueHD, Atmos etc.). My issue is when I go to Kodi Movies, these videos appear within the movie list. is there a way to exclude them ? Ideally i would like to access them only via the Video section from Kodi (aeon nox skin).

Thank you

@cyriltra said:
Hi Croneter,

I finally got my C2 and use PKC with libreElec 8.1.2, so far everything seems to work quite well. I want to thank you for your plugin, it’s a very smart idea and combine the best of 2 worlds.

I have one question, it’s maybe related to Kodi only or PKC, not sure… : in my PMS i have 2 libraries: 1 for Movies and 1 for Videos. The videos are actually samples to test my set up (4k, 2k, TrueHD, Atmos etc.). My issue is when I go to Kodi Movies, these videos appear within the movie list. is there a way to exclude them ? Ideally i would like to access them only via the Video section from Kodi (aeon nox skin).

Thank you

Thanks @croneter , I will have a look :slight_smile:

Another issue I have when i boot libreElec is the following message: Kodi cannot parse sources.xml. PKC will not function correctly. But it seems PKC is working fine so far (or it appears). What should I do to get rid of this message ?

When i SSH and go to userdata/sources.xml, the file is actually empty

Thank you

Edit: I deleted the empty sources.xml file then reboot. Kodi has recreated a new sources.xml file (this time not an empty one) and the error message has disappeared.

well, now i have another weird issue: whenever i start libreelec the very first movie I want to play takes a longtime to start (around 5min). I can see the skin loader turning (ie loading the movie) but nothing. There is nothing played yet by PMS (I checked PlexPy)
So i went into the logs and it appears there is a full scan of my plex library happening and the movie is played once this scan is complete. This happens everytime I reboot. is this normal behaviour ?

here are the logs:

17:12:41.477 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 29}, u'playlistid': 1, u'position': 1} 17:12:41.477 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 35}, u'playlistid': 1, u'position': 2} 17:12:41.478 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 28}, u'playlistid': 1, u'position': 3} 17:12:41.478 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 26}, u'playlistid': 1, u'position': 4} 17:12:41.479 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 24}, u'playlistid': 1, u'position': 5} 17:12:41.479 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 27}, u'playlistid': 1, u'position': 6}
etc. until id 427 (my last movie)

then i got
DEBUG: PLEX.playqueue: Comparing new Kodi playqueue [{u'title': u'3 Idiots', u'type': u'movie', u'id': 23, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=23&mode=play&id=2623&filename=%2Flibrary%2Fmetadata%2F2623', u'label': u'3 Idiots'}, {u'title': u'The 33', u'type': u'movie', u'id': 29, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=29&mode=play&id=1775&filename=%2Flibrary%2Fmetadata%2F1775', u'label': u'The 33'}, {u'title': u'300', u'type': u'movie', u'id': 35, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=35&mode=play&id=2521&filename=%2Flibrary%2Fmetadata%2F2521', u'label': u'300'}, {u'title': u'300: Rise of an Empire', u'type': u'movie', u'id': 28, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=28&mode=play&id=2217&filename=%2Flibrary%2Fmetadata%2F2217', u'label': u'300: Rise of an Empire'}

etc until my last movie

and then once the scan is finished, the video starts to play normally

Im using libreElec 8.1.2 with Kodi Krypton 17.4 and latest PMS server 1.9.0.4252


Another issue i have is regarding subtiles: I’ve downloaded a lot of subtitles (SRT or SSA) in Chinese. These subtitles are located on PMS in each folder movies, correctly named for PMS / PMP to locate them. However they do not appear at all in Kodi or PKC.
I’m using Add On path and in customize path, the 1st option is selected: replace UNC path by smb://

When I play a movie and I go to OSD, Audio, the subtitle line is greyed (cannot change) and is set to Unknown - Subtitle00 (external) (1/1). And when I go to the subtitle OSD (when I can select and download), it says “Local subtitle available”.
When I checked the log it says: openstream: unable to create subtitle parser

I tried a movie with English subtitles and it works: the subtitle line is also grey but it displays English and the subtitles are correctly displaying along the movie.

So I believe there is an issue either on PKC side or on Kodi

So for the moment i’m using Kodi to download subtitles but I would like to use the ones I already have as I know they are good

Thank you

Hi,

This is a feature request I guess. I have home video Plex libraries that I do not want exposed to KODI, so would it be possible to have a setting in PKC that ignores all videos that have a certain path? Current I’m getting a prompt to delete these from the library when KODI is started, and lots of log errors.

Thanks!

@cyriltra said:
well, now i have another weird issue: whenever i start libreelec the very first movie I want to play takes a longtime to start (around 5min). I can see the skin loader turning (ie loading the movie) but nothing. There is nothing played yet by PMS (I checked PlexPy)
So i went into the logs and it appears there is a full scan of my plex library happening and the movie is played once this scan is complete. This happens everytime I reboot. is this normal behaviour ?

here are the logs:

17:12:41.477 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 29}, u'playlistid': 1, u'position': 1} 17:12:41.477 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 35}, u'playlistid': 1, u'position': 2} 17:12:41.478 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 28}, u'playlistid': 1, u'position': 3} 17:12:41.478 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 26}, u'playlistid': 1, u'position': 4} 17:12:41.479 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 24}, u'playlistid': 1, u'position': 5} 17:12:41.479 T:546937237728 DEBUG: PLEX.kodimonitor: Method: Playlist.OnAdd Data: {u'item': {u'type': u'movie', u'id': 27}, u'playlistid': 1, u'position': 6}
etc. until id 427 (my last movie)

then i got
DEBUG: PLEX.playqueue: Comparing new Kodi playqueue [{u'title': u'3 Idiots', u'type': u'movie', u'id': 23, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=23&mode=play&id=2623&filename=%2Flibrary%2Fmetadata%2F2623', u'label': u'3 Idiots'}, {u'title': u'The 33', u'type': u'movie', u'id': 29, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=29&mode=play&id=1775&filename=%2Flibrary%2Fmetadata%2F1775', u'label': u'The 33'}, {u'title': u'300', u'type': u'movie', u'id': 35, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=35&mode=play&id=2521&filename=%2Flibrary%2Fmetadata%2F2521', u'label': u'300'}, {u'title': u'300: Rise of an Empire', u'type': u'movie', u'id': 28, u'file': u'plugin://plugin.video.plexkodiconnect/movies/?dbid=28&mode=play&id=2217&filename=%2Flibrary%2Fmetadata%2F2217', u'label': u'300: Rise of an Empire'}

etc until my last movie

and then once the scan is finished, the video starts to play normally

Im using libreElec 8.1.2 with Kodi Krypton 17.4 and latest PMS server 1.9.0.4252


Another issue i have is regarding subtiles: I’ve downloaded a lot of subtitles (SRT or SSA) in Chinese. These subtitles are located on PMS in each folder movies, correctly named for PMS / PMP to locate them. However they do not appear at all in Kodi or PKC.
I’m using Add On path and in customize path, the 1st option is selected: replace UNC path by smb://

When I play a movie and I go to OSD, Audio, the subtitle line is greyed (cannot change) and is set to Unknown - Subtitle00 (external) (1/1). And when I go to the subtitle OSD (when I can select and download), it says “Local subtitle available”.
When I checked the log it says: openstream: unable to create subtitle parser

I tried a movie with English subtitles and it works: the subtitle line is also grey but it displays English and the subtitles are correctly displaying along the movie.

So I believe there is an issue either on PKC side or on Kodi

So for the moment i’m using Kodi to download subtitles but I would like to use the ones I already have as I know they are good

Thank you

Please open a new Github issue and share your entire Kodi debug log in full length where you reproduce this behavior. Many thanks!