PlexKodiConnect: Kodi Plex Integration Done Right

If you want an AppleTV (which I understand as apple fanboy) your best option is https://www.plex.tv/apps/streaming-devices/apple-tv/

Regarding the Apple TV, I just read many used Infuse. As stated I’m not into the Apple world, but what I mean by missing in Shield is no Dolby Vision, no auto refresh rate on apps like Netflix (I know it’s up to Netflix), not working auto colorspace and using the Shield as scaler, I don’t think it handle that very well.

@croneter said:

@bleomycin said:
Sorry if this has been asked, but I checked the wiki and attempted a thread search. Are there any optimal recommended sync settings for plexkodiconnect on the shield? Kodi definitely seems to stutter during playback when pkc is doing a library update/sync from time to time. I dropped the sync threads down to 1 some time ago but the problem persists. This has happened for quite a while across spmc, kodi, spmc 17 alpha. On my htpc this is never an issue it always flies so I figure it’s a setting.

PKC should NOT be doing a sync while you watch something and even interrupt any sync if you start playback. It’s very likely another issue you’re having, unrelated to PKC.

Thanks for the reply! Does this same logic apply when i’m watching something via the youtube addon in kodi? That’s when I seem to have by far the most issues.

@bleomycin said:

@croneter said:

@bleomycin said:
Sorry if this has been asked, but I checked the wiki and attempted a thread search. Are there any optimal recommended sync settings for plexkodiconnect on the shield? Kodi definitely seems to stutter during playback when pkc is doing a library update/sync from time to time. I dropped the sync threads down to 1 some time ago but the problem persists. This has happened for quite a while across spmc, kodi, spmc 17 alpha. On my htpc this is never an issue it always flies so I figure it’s a setting.

PKC should NOT be doing a sync while you watch something and even interrupt any sync if you start playback. It’s very likely another issue you’re having, unrelated to PKC.

Thanks for the reply! Does this same logic apply when i’m watching something via the youtube addon in kodi? That’s when I seem to have by far the most issues.

Depends on how the YouTube addon registers itself as playing something. Could you please share your debug logs of this happening on github.com according to How to Report A Bug · croneter/PlexKodiConnect Wiki · GitHub

Been away for awhile and was just trying out the latest beta. Noticing that when fast forwarding a show then stopping, upon resuming it is starting back up where I initially started fast forwarding. I can get you logs but wanted to ask if this is a known issue?

Play show… Fast forward 15 minutes…Play show…Stop…Resume… Show resumes 15 minutes back.

@hstamas said:
Been away for awhile and was just trying out the latest beta. Noticing that when fast forwarding a show then stopping, upon resuming it is starting back up where I initially started fast forwarding. I can get you logs but wanted to ask if this is a known issue?

Play show… Fast forward 15 minutes…Play show…Stop…Resume… Show resumes 15 minutes back.

What happens if you do exactly the same, but do the “Resume” using another client, e.g. Plex Web?

I just updated my kodi to latest version, but now I am getting this

12:31:16.023 T:1814352640 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 405
12:31:16.024 T:1814352640 ERROR: CCurlFile::Open failed with code 405 for https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:31:16.024 T:1814352640 ERROR: Open - failed to open source https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:31:16.024 T:1814352640 ERROR: CRepository: failed read ‘https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:32:08.211 T:1924939776 WARNING: CGUIWindowManager - HandleAction - ignoring action 92, because topmost modal dialog closing animation is running
12:32:27.324 T:1814352640 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 405
12:32:27.324 T:1814352640 ERROR: CCurlFile::Open failed with code 405 for https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:32:27.324 T:1814352640 ERROR: Open - failed to open source https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:32:27.324 T:1814352640 ERROR: CRepository: failed read ‘https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:32:29.131 T:1924939776 ERROR: GetDirectory - Error getting addons://repository.plexkodiconnectbeta/
12:32:29.131 T:1924939776 ERROR: CGUIMediaWindow::GetDirectory(addons://repository.plexkodiconnectbeta/) failed
12:37:35.971 T:1694495488 ERROR: EXCEPTION: Non-Existent Control 300
12:37:40.599 T:1564467968 WARNING: CPythonInvoker(3): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
12:38:24.949 T:1805964032 NOTICE: Skin Helper Widgets --> Backgroundservice started
12:38:26.491 T:1924939776 WARNING: CGUIWindowManager - HandleAction - ignoring action 92, because topmost modal dialog closing animation is running
12:39:03.342 T:1549792000 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 405
12:39:03.342 T:1549792000 ERROR: CCurlFile::Open failed with code 405 for https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:39:03.342 T:1549792000 ERROR: Open - failed to open source https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:39:03.342 T:1549792000 ERROR: CRepository: failed read ‘https://dl.bintray.com/croneter/PlexKodiConnect_BETA/bin-BETA/addons.xml.md5
12:39:06.191 T:1924939776 ERROR: GetDirectory - Error getting addons://repository.plexkodiconnectbeta/
12:39:06.191 T:1924939776 ERROR: CGUIMediaWindow::GetDirectory(addons://repository.plexkodiconnectbeta/) failed
osmc@OfficeTV:~/.kodi/temp$

@FIGHT
I take it you’re using Kodi 17 still. This is probably a problem with Kodi and the python requests package. Make sure that your python is up to date, especially requests

@croneter said:
@FIGHT
I take it you’re using Kodi 17 still. This is probably a problem with Kodi and the python requests package. Make sure that your python is up to date, especially requests

I am running version 18 of kodi, but this has been working for a long time now.

@FIGHT said:

@croneter said:
@FIGHT
I take it you’re using Kodi 17 still. This is probably a problem with Kodi and the python requests package. Make sure that your python is up to date, especially requests

I am running version 18 of kodi, but this has been working for a long time now.

Sorry, no support for Kodi 18. As it’s still in alpha state, things break regularly

@croneter said:

@FIGHT said:

@croneter said:
@FIGHT
I take it you’re using Kodi 17 still. This is probably a problem with Kodi and the python requests package. Make sure that your python is up to date, especially requests

I am running version 18 of kodi, but this has been working for a long time now.

Sorry, no support for Kodi 18. As it’s still in alpha state, things break regularly

@cronter I do understand that, but it was only for your info since I know that you are testing this also. :slight_smile: So if you could see if your own version still runs ok or not :slight_smile:

@FIGHT said:

@croneter said:

@FIGHT said:

@croneter said:
@FIGHT
I take it you’re using Kodi 17 still. This is probably a problem with Kodi and the python requests package. Make sure that your python is up to date, especially requests

I am running version 18 of kodi, but this has been working for a long time now.

Sorry, no support for Kodi 18. As it’s still in alpha state, things break regularly

@cronter I do understand that, but it was only for your info since I know that you are testing this also. :slight_smile: So if you could see if your own version still runs ok or not :slight_smile:

Actually I’m not testing Kodi 18 :wink: . There’s more than enough stuff unrelated to Kodi 18 that I’d like to improve or implement. Currently keeping me awake: Plex Companion and some undocumented changes to the PMS backend on the Plex side.

there is a simple guide to let your Kodi talk to your Plex or connect both of them and the guide is here olpair kodi

Manual intervention needed to receive further automatic updates

Unfortunately, the PKC Kodi repository had to move because it stopped working (thanks https://bintray.com). If you installed PKC before December 15, 2017, you need to MANUALLY update the repo once: https://github.com/croneter/PlexKodiConnect/wiki/Update-PKC-Repository

I’m really sorry for that :disappointed:

@croneter said:

Manual intervention needed to receive further automatic updates

Unfortunately, the PKC Kodi repository had to move because it stopped working (thanks https://bintray.com). If you installed PKC before December 15, 2017, you need to MANUALLY update the repo once: Update PKC Repository · croneter/PlexKodiConnect Wiki · GitHub

I’m really sorry for that :disappointed:

Ahh nice so there was a bug, great that you found it @croneter, I will do some test tomorrow and see if my kodi 18 will run again…

the channels with LIVE TV don’t work with PKC 1.8.18 on my libreelec 8.2.1 - see the debug log
https://pastebin.com/t7rse4pG

  • there is error Unauthorized for PMS for working channels

@croneter I can see that the Library sync thread crashes in version 18 just for your info. :slight_smile:

Osmc log info : https://paste.osmc.tv/uxereqirax

Hi Croneter,

not sure if this is related to PKC, but often when I want to play a movie, i need to wait several minutes (3-4) before the movie starts. I checked kodi / pkc logs, you can see there was 5min of delay.
Do you have any idea what can cause this ?

Thank you

20:52:46.383 T:544562184416 NOTICE: PLEX.default: plugin.video.plexkodiconnect started
20:52:46.439 T:544963293408 NOTICE: PLEX.playback_starter: Process_play called with plex_id 1395, kodi_id 492
20:57:03.937 T:544963293408 NOTICE: PLEX.playbackutils: Playbackutils called
20:57:03.945 T:544963293408 NOTICE: PLEX.playutils: videoCodec: {‘videocodec’: ‘mpeg4’, ‘container’: ‘avi’, ‘bitrate’: ‘1083’, ‘height’: ‘400’, ‘width’: ‘720’, ‘bitDepth’: ‘8’, ‘aspectratio’: None, ‘resolution’: ‘sd’}
20:57:03.959 T:544963293408 NOTICE: PLEX.playutils: No video resolution from PMS, not transcoding.
20:57:03.967 T:544963293408 NOTICE: PLEX.playutils: videoCodec: {‘videocodec’: ‘mpeg4’, ‘container’: ‘avi’, ‘bitrate’: ‘1083’, ‘height’: ‘400’, ‘width’: ‘720’, ‘bitDepth’: ‘8’, ‘aspectratio’: None, ‘resolution’: ‘sd’}
20:57:03.980 T:544963293408 NOTICE: PLEX.playutils: No video resolution from PMS, not transcoding.
20:57:03.981 T:544963293408 NOTICE: PLEX.playutils: File is direct streaming.
20:57:03.982 T:544963293408 NOTICE: PLEX.playutils: The playurl is: https://192.168.50.10:32400/library/parts/1456/1504710242/file.avi?X-Plex-Platform=Linux&X-Plex-Client-Platform=Linux&Connection=keep-alive&X-Plex-Device-Name=PlexKodiConnect&X-Plex-Provides=client%2Ccontroller%2Cplayer%2Cpubsub-player&X-Plex-Token=XXX&X-Plex-Client-Identifier=XXX&Accept=*%2F*&X-Plex-Device=PlexKodiConnect&X-Plex-Product=PlexKodiConnect&Content-Type=application%2Fx-www-form-urlencoded&X-Plex-Version=1.8.18
20:57:03.998 T:544963293408 NOTICE: PLEX.playbackutils: Playing from contextmenu: False
20:57:03.998 T:544963293408 NOTICE: PLEX.playbackutils: Playlist start position: 250
20:57:03.998 T:544963293408 NOTICE: PLEX.playbackutils: Playlist plugin position: 250
20:57:03.998 T:544963293408 NOTICE: PLEX.playbackutils: Playlist size: 376
20:57:04.000 T:544963293408 NOTICE: PLEX.playbackutils: Setting up properties in playlist.
20:57:04.089 T:544963293408 NOTICE: PLEX.PlexAPI: Found external subs: []
20:57:04.090 T:544963293408 NOTICE: PLEX.playbackutils: Play as a regular item
20:57:04.245 T:544963293408 NOTICE: PLEX.playback_starter: Done process_play, playqueues: [<Playqueue_Object: ID: None, items: [<Playlist_Item: kodi_id: 61, uri: library://2623/item/library%2Fmetadata%2F2623, plex_UUID: 2623, kodi_type: movie, file: plugin://plugin.video.plexkodiconnect/movies/?dbid=61&mode=play&id=2623&filename=%2Flibrary%2Fmetadata%2F2623, plex_type: movie, plex_id: 2623, guid: com.plexapp.agents.imdb://tt1187043?lang=en, ID: 12727>, <Playlist_Item: kodi_id: 63, uri: library://8027/item/library%2Fmetadata%2F8027, plex_UUID: 8027, kodi_type: movie, file: plugin://plugin.video.plexkodiconnect/movies/?dbid=63&mode=play&id=8027&filename=%2Flibrary%2Fmetadata%2F8027, plex_type: movie, plex_id: 8027, guid: com.plexapp.agents.imdb://tt2304933?lang=en, ID: 12728>, <Playlist_Item: kodi_id: 62, uri: library://5834/item/library%2Fmetadata%2F5834, plex_UUID: 5834, kodi_type: movie, file: plugin://plugin.video.plexkodiconnect/movies/?dbid=62&mode=play&id=5834&filename=%2Flibrary%2Fmetadata%2F5834, plex_type: movie, plex_id: 5834, guid: com.plexapp.agents.imdb://tt1179933?lang=en, ID: 12729>, <Playlist_Item: kodi_id: 64, uri: library://5436/item/library%2Fmetadata%2F5436, plex_UUID: 5436, kodi_type: movie, file: plugin://plugin.video.plexkodiconnect/movies/?dbid=64&mode=play&id=5436&filename=%2Flibrary%2Fmetadata%2F5436, plex_type: movie, plex_id: 5436, guid: com.plexapp.agents.imdb://tt4172430?lang=en, ID: 12731>, <Playlist_Item: kodi_id: 58, uri: library://6992/item/library%2Fmetadata%2F6992, plex_UUID: 6992, kodi_type: movie, file: plugin://plugin.video.plexkodiconnect/movies/?dbid=58&mode=play&id=6992&filename=%2Flibrary%2Fmetadata%2F6992, plex_type: movie, plex_id: 6992, guid: com.plexapp.agents.imdb://tt0120657?lang=en, ID: 12732>, <Playlist_Item: kodi_id: 73, uri: library://1775/item/library%2Fmetadata%2F1775, plex_UUID: 1775, kodi_type: movie, file: plugin://plugin.video.plexkodiconnect/movies/?dbid=73&mode=play&id=1775&filename=%2Flibrary%2Fmetadata%2F1775, plex_type: movie, plex_id: 1775, guid: com.plexapp.agents.imdb://tt2006295?lang=en, ID: 12733>, <Playlist_Item: kodi_id: 67, uri: library://3502/item/library%2Fmetadata%2F3502, plex_UUID: 3502,

@cyriltra I see that PKC wants to play 376 items in a playlist! How do you initiate playback?

This spam is getting annoying in this thread