PlexKodiConnect: Kodi Plex Integration Done Right

PlexKodiConnect worrks nicely on my laptop. Stupid question: It isn’t available for Kodi on Android phones is it?

@brucethevideobug said:
PlexKodiConnect worrks nicely on my laptop. Stupid question: It isn’t available for Kodi on Android phones is it?

Yup, same deal.

Is it possible to have On Deck include both next episodes and shows in progress for both TV shows and Movies, exactly like Plex does it or is this not possible? I’m using the latest Titan Skin on Kodi 17.4

Hi,

i´m trying to run this on a Vu Duo2 stb with Kodi Plugin installed. Here is the Log from Kodi…

! 04:19:33 T:1983090688 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.plexkodiconnect/)
! 04:19:33 T:1983090688 DEBUG: ParentPath = [plugin://plugin.video.plexkodiconnect/]
! 04:19:33 T:1983090688 DEBUG: StartScript - calling plugin PlexKodiConnect(‘plugin://plugin.video.plexkodiconnect/’,‘1’,‘’)
! 04:19:33 T:1983090688 DEBUG: WaitOnScriptResult - waiting on the PlexKodiConnect (id=6) plugin…
! 04:19:33 T:1407186000 DEBUG: Thread LanguageInvoker start, auto delete: false
! 04:19:33 T:1407186000 INFO: initializing python engine.
! 04:19:33 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): start processing
! 04:19:34 T:1407186000 DEBUG: -->Python Interpreter Initialized<–
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): the source file to load is “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py”
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): setting the Python path to /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9:/media/hdd/.kodi/addons/script.module.requests/lib:/usr/lib/enigma2/python:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/PIL:/usr/lib/python2.7/site-packages/gtk-2.0:/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): entering source directory /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): instantiating addon using automatically obtained id of “plugin.video.plexkodiconnect” dependent on version 2.1.0 of the xbmc.python api
! 04:19:34 T:1407186000 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
! - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
! Error Type: <type ‘exceptions.ImportError’>
! Error Contents: No module named cProfile
! Traceback (most recent call last):
! File “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py”, line 34, in
! import entrypoint
! File “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/resources/lib/entrypoint.py”, line 14, in
! from utils import window, settings, language as lang, dialog, tryEncode,
! File “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/resources/lib/utils.py”, line 5, in
! from cProfile import Profile
! ImportError: No module named cProfile
! -->End of Python script error report<–
! 04:19:34 T:1983090688 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
! 04:19:34 T:1407186000 INFO: Python script stopped
! 04:19:34 T:1407186000 DEBUG: Thread LanguageInvoker 1407186000 terminating
! 04:19:34 T:1983090688 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
! 04:19:34 T:1983090688 ERROR: GetDirectory - Error getting plugin://plugin.video.plexkodiconnect/
! 04:19:34 T:1983090688 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexkodiconnect/) failed
! 04:19:34 T:1983090688 DEBUG: CGUIMediaWindow::GetDirectory ()
! 04:19:34 T:1983090688 DEBUG: ParentPath = [plugin://plugin.video.plexkodiconnect/]
! 04:19:34 T:1407186000 DEBUG: Thread BackgroundLoader start, auto delete: false
! 04:19:34 T:1407186000 DEBUG: Thread BackgroundLoader 1407186000 terminating
! 04:19:34 T:1407186000 DEBUG: Thread JobWorker start, auto delete: true
! 04:19:34 T:1407186000 DEBUG: Caching image ‘special://home/addons/plugin.video.emby/icon.png’ to ‘b/b95bdaa2.png’:
! 04:19:34 T:1407186000 DEBUG: cached image ‘special://masterprofile/Thumbnails/b/b95bdaa2.png’ size 256x256
! 04:19:39 T:1983090688 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
! 04:20:05 T:1407186000 DEBUG: Thread JobWorker 1407186000 terminating (autodelete)
! 04:20:05 T:1983090688 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-mips.so)
! 04:20:50 T:1398797392 DEBUG: Thread AESinkNull 1398797392 terminating
! 04:22:33 T:1983090688 DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
! 04:22:33 T:1983090688 DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
! 04:22:33 T:1983090688 DEBUG: ------ Window Init () ------
! 04:22:33 T:1613755472 NOTICE: EMBY.kodimonitor → Method: GUI.OnScreensaverActivated Data: null
! 04:23:16 T:1455420496 NOTICE: EMBY.websocket_client → Message: {“MessageType”:“UserUpdated”,“Data”:{“Name”:“Christian”,“ServerId”:“fdd0102cf3284dcfa8dbda6a1e31d2e2”,“ConnectUserName”:“Damien83”,“ConnectUserId”:“238484”,“ConnectLinkType”:“LinkedUser”,“Id”:“bb086d17e1244e3293a853a114b1f3c2”,“HasPassword”:false,“HasConfiguredPassword”:false,“HasConfiguredEasyPassword”:false,“EnableAutoLogin”:true,“LastLoginDate”:“2017-09-01T15:35:37.7273349Z”,“LastActivityDate”:“2017-09-02T04:23:19.5906633Z”,“Configuration”:{“PlayDefaultAudioTrack”:true,“DisplayMissingEpisodes”:false,“GroupedFolders”:,“SubtitleMode”:“Default”,“DisplayCollectionsView”:false,“EnableLocalPassword”:false,“OrderedViews”:[“7a2175bccb1f1a94152cbd2b2bae8f6d”,“fc76ef625023da8e99b2e1679d93c64b”,“802aaf5c991f8a6a418e2e15340c647e”],“LatestItemsExcludes”:,“HidePlayedInLatest”:true,“RememberAudioSelections”:true,“RememberSubtitleSelections”:true,“EnableNextEpisodeAutoPlay”:true},“Policy”:{“IsAdministrator”:true,“IsHidden”:false,“IsDisabled”:false,“BlockedTags”:,“EnableUserPreferenceAccess”:true,“AccessSchedules”:,“BlockUnratedItems”:,“EnableRemoteControlOfOtherUsers”:true,“EnableSharedDeviceControl”:true,“EnableLiveTvManagement”:true,“EnableLiveTvAccess”:true,“EnableMediaPlayback”:true,“EnableAudioPlaybackTranscoding”:true,“EnableVideoPlaybackTranscoding”:true,“EnablePlaybackRemuxing”:true,“EnableContentDeletion”:true,“EnableContentDownloading”:true,“EnableSyncTranscoding”:true,“EnabledDevices”:,“EnableAllDevices”:true,“EnabledChannels”:,“EnableAllChannels”:true,“EnabledFolders”:,“EnableAllFolders”:true,“InvalidLoginAttemptCount”:0,“EnablePublicSharing”:true,“RemoteClientBitrateLimit”:0}}}
! 04:24:18 T:1622144080 DEBUG: RunQuery took 36 ms for 306 items query: select * from movie_view WHERE ((movie_view.playCount IS NULL OR movie_view.playCount < 1))
! 04:24:19 T:1622144080 DEBUG: RunQuery took 4 ms for 0 items query: select * from episode_view WHERE ((episode_view.playCount IS NULL OR episode_view.playCount < 1))
! 04:24:19 T:1622144080 DEBUG: RunQuery took 2 ms for 0 items query: select * from musicvideo_view
! 04:24:19 T:1622144080 DEBUG: GetAlbumsByWhere query: SELECT albumview., albumartistview. FROM albumview LEFT JOIN albumartistview on albumartistview.idalbum = albumview.idalbum WHERE albumview.strReleaseType = ‘album’
! 04:24:19 T:1622144080 DEBUG: GetAlbumsByWhere - query took 2 ms
! 04:24:19>!

Can anybody help me to get this running?

@daan_vb said:
Is it possible to have On Deck include both next episodes and shows in progress for both TV shows and Movies, exactly like Plex does it or is this not possible? I’m using the latest Titan Skin on Kodi 17.4

No, not currently. Ideally, a Kodi skin would provide this functionality

@damien83 said:
Hi,

i´m trying to run this on a Vu Duo2 stb with Kodi Plugin installed. Here is the Log from Kodi…

! 04:19:33 T:1983090688 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.plexkodiconnect/)
! 04:19:33 T:1983090688 DEBUG: ParentPath = [plugin://plugin.video.plexkodiconnect/]
! 04:19:33 T:1983090688 DEBUG: StartScript - calling plugin PlexKodiConnect(‘plugin://plugin.video.plexkodiconnect/’,‘1’,‘’)
! 04:19:33 T:1983090688 DEBUG: WaitOnScriptResult - waiting on the PlexKodiConnect (id=6) plugin…
! 04:19:33 T:1407186000 DEBUG: Thread LanguageInvoker start, auto delete: false
! 04:19:33 T:1407186000 INFO: initializing python engine.
! 04:19:33 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): start processing
! 04:19:34 T:1407186000 DEBUG: -->Python Interpreter Initialized<–
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): the source file to load is “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py”
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): setting the Python path to /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9:/media/hdd/.kodi/addons/script.module.requests/lib:/usr/lib/enigma2/python:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/PIL:/usr/lib/python2.7/site-packages/gtk-2.0:/usr/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): entering source directory /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9
! 04:19:34 T:1407186000 DEBUG: CPythonInvoker(6, /media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py): instantiating addon using automatically obtained id of “plugin.video.plexkodiconnect” dependent on version 2.1.0 of the xbmc.python api
! 04:19:34 T:1407186000 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
! - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
! Error Type: <type ‘exceptions.ImportError’>
! Error Contents: No module named cProfile
! Traceback (most recent call last):
! File “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/default.py”, line 34, in
! import entrypoint
! File “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/resources/lib/entrypoint.py”, line 14, in
! from utils import window, settings, language as lang, dialog, tryEncode,
! File “/media/hdd/.kodi/addons/PlexKodiConnect-1.8.9/resources/lib/utils.py”, line 5, in
! from cProfile import Profile
! ImportError: No module named cProfile
! -->End of Python script error report<–
! 04:19:34 T:1983090688 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
! 04:19:34 T:1407186000 INFO: Python script stopped
! 04:19:34 T:1407186000 DEBUG: Thread LanguageInvoker 1407186000 terminating
! 04:19:34 T:1983090688 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
! 04:19:34 T:1983090688 ERROR: GetDirectory - Error getting plugin://plugin.video.plexkodiconnect/
! 04:19:34 T:1983090688 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.plexkodiconnect/) failed
! 04:19:34 T:1983090688 DEBUG: CGUIMediaWindow::GetDirectory ()
! 04:19:34 T:1983090688 DEBUG: ParentPath = [plugin://plugin.video.plexkodiconnect/]
! 04:19:34 T:1407186000 DEBUG: Thread BackgroundLoader start, auto delete: false
! 04:19:34 T:1407186000 DEBUG: Thread BackgroundLoader 1407186000 terminating
! 04:19:34 T:1407186000 DEBUG: Thread JobWorker start, auto delete: true
! 04:19:34 T:1407186000 DEBUG: Caching image ‘special://home/addons/plugin.video.emby/icon.png’ to ‘b/b95bdaa2.png’:
! 04:19:34 T:1407186000 DEBUG: cached image ‘special://masterprofile/Thumbnails/b/b95bdaa2.png’ size 256x256
! 04:19:39 T:1983090688 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
! 04:20:05 T:1407186000 DEBUG: Thread JobWorker 1407186000 terminating (autodelete)
! 04:20:05 T:1983090688 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-mips.so)
! 04:20:50 T:1398797392 DEBUG: Thread AESinkNull 1398797392 terminating
! 04:22:33 T:1983090688 DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
! 04:22:33 T:1983090688 DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
! 04:22:33 T:1983090688 DEBUG: ------ Window Init () ------
! 04:22:33 T:1613755472 NOTICE: EMBY.kodimonitor → Method: GUI.OnScreensaverActivated Data: null
! 04:23:16 T:1455420496 NOTICE: EMBY.websocket_client → Message: {“MessageType”:“UserUpdated”,“Data”:{“Name”:“Christian”,“ServerId”:“fdd0102cf3284dcfa8dbda6a1e31d2e2”,“ConnectUserName”:“Damien83”,“ConnectUserId”:“238484”,“ConnectLinkType”:“LinkedUser”,“Id”:“bb086d17e1244e3293a853a114b1f3c2”,“HasPassword”:false,“HasConfiguredPassword”:false,“HasConfiguredEasyPassword”:false,“EnableAutoLogin”:true,“LastLoginDate”:“2017-09-01T15:35:37.7273349Z”,“LastActivityDate”:“2017-09-02T04:23:19.5906633Z”,“Configuration”:{“PlayDefaultAudioTrack”:true,“DisplayMissingEpisodes”:false,“GroupedFolders”:,“SubtitleMode”:“Default”,“DisplayCollectionsView”:false,“EnableLocalPassword”:false,“OrderedViews”:[“7a2175bccb1f1a94152cbd2b2bae8f6d”,“fc76ef625023da8e99b2e1679d93c64b”,“802aaf5c991f8a6a418e2e15340c647e”],“LatestItemsExcludes”:,“HidePlayedInLatest”:true,“RememberAudioSelections”:true,“RememberSubtitleSelections”:true,“EnableNextEpisodeAutoPlay”:true},“Policy”:{“IsAdministrator”:true,“IsHidden”:false,“IsDisabled”:false,“BlockedTags”:,“EnableUserPreferenceAccess”:true,“AccessSchedules”:,“BlockUnratedItems”:,“EnableRemoteControlOfOtherUsers”:true,“EnableSharedDeviceControl”:true,“EnableLiveTvManagement”:true,“EnableLiveTvAccess”:true,“EnableMediaPlayback”:true,“EnableAudioPlaybackTranscoding”:true,“EnableVideoPlaybackTranscoding”:true,“EnablePlaybackRemuxing”:true,“EnableContentDeletion”:true,“EnableContentDownloading”:true,“EnableSyncTranscoding”:true,“EnabledDevices”:,“EnableAllDevices”:true,“EnabledChannels”:,“EnableAllChannels”:true,“EnabledFolders”:,“EnableAllFolders”:true,“InvalidLoginAttemptCount”:0,“EnablePublicSharing”:true,“RemoteClientBitrateLimit”:0}}}
! 04:24:18 T:1622144080 DEBUG: RunQuery took 36 ms for 306 items query: select * from movie_view WHERE ((movie_view.playCount IS NULL OR movie_view.playCount < 1))
! 04:24:19 T:1622144080 DEBUG: RunQuery took 4 ms for 0 items query: select * from episode_view WHERE ((episode_view.playCount IS NULL OR episode_view.playCount < 1))
! 04:24:19 T:1622144080 DEBUG: RunQuery took 2 ms for 0 items query: select * from musicvideo_view
! 04:24:19 T:1622144080 DEBUG: GetAlbumsByWhere query: SELECT albumview., albumartistview. FROM albumview LEFT JOIN albumartistview on albumartistview.idalbum = albumview.idalbum WHERE albumview.strReleaseType = ‘album’
! 04:24:19 T:1622144080 DEBUG: GetAlbumsByWhere - query took 2 ms
! 04:24:19>!

Can anybody help me to get this running?

Kodi probably uses your systems Python environment. A python module that’s usually around is missing:

ImportError: No module named cProfile

Try to install this module, maybe this works for your environment:

sudo apt-get install cProfile

I try this, but apt-get didn´t working on Enigma2.
` www.vuplus-support.org
home of

 /$$    /$$ /$$$$$$$$ /$$
| $$   | $$|__  $$__/|__/
| $$   | $$   | $$    /$$
|  $$ / $$/   | $$   | $$
 \  $$ $$/    | $$   | $$
  \  $$$/     | $$   | $$
   \  $/      | $$   | $$
    \_/       |__/   |__/

   Welcome on your Vu+ !

root@vuduo2:~# sudo apt-get install cProfile
-sh: sudo: command not found
root@vuduo2:~#
`

@damien83 said:
I try this, but apt-get didn´t working on Enigma2.
` www.vuplus-support.org
home of

 /$$    /$$ /$$$$$$$$ /$$
| $$   | $$|__  $$__/|__/
| $$   | $$   | $$    /$$
|  $$ / $$/   | $$   | $$
 \  $$ $$/    | $$   | $$
  \  $$$/     | $$   | $$
   \  $/      | $$   | $$
    \_/       |__/   |__/

   Welcome on your Vu+ !

root@vuduo2:~# sudo apt-get install cProfile
-sh: sudo: command not found
root@vuduo2:~#
`

You’re in for a hack…

Drop the sudo:

apt-get install cProfile 

root@vuduo2:~# apt-get install cProfile -sh: apt-get: command not found root@vuduo2:~#

@damien83 said:
root@vuduo2:~# apt-get install cProfile -sh: apt-get: command not found root@vuduo2:~#

For more Linux magic, check https://www.vuplus-support.org/wbb4/index.php?thread/47861-eine-anleitung-mit-telnet-befehlen-für-anfänger/&pageNo=1

Try this:

opkg update
opkg upgrade
opkg install cProfile

Hi croneter,

It works!

opkg install phyton-profile

Now the plecxonnect addon works…

Thank you for your help and sorry for my english.

Hi croneter,

First of all, i’m so grateful for your work! Thank you!

But i have a little problem:
my PMS runs on an QNAP NAS and Kodi on an HiMedia Q10 Pro

Direct Play only works with the Full Path to the “mkv” (wrapper and kodi crash if i try other settings).
no problem, i can replace the path to a smb link. But my “Movie” Library has 3 different folders. So i have to edit 3 paths?!
That looks like this:
PMS Server Folder --> SMB Link

/share/CACHEDEV2_DATA/Movies1 --> smb://HOME-NAS/Movies1
/share/CACHEDEV1_DATA/Movies2 --> smb://HOME-NAS/Movies2
/share/CACHEDEV4_DATA/Movies3 --> smb://HOME-NAS/Movies3

Is there a way to do that or is there another possibility to watch movies with the internal player of the mediaplayer?

Greetings
Jonas

@Beckflix said:
But my “Movie” Library has 3 different folders. So i have to edit 3 paths?!
That looks like this:
PMS Server Folder → SMB Link

/share/CACHEDEV2_DATA/Movies1 → smb://HOME-NAS/Movies1
/share/CACHEDEV1_DATA/Movies2 → smb://HOME-NAS/Movies2
/share/CACHEDEV4_DATA/Movies3 → smb://HOME-NAS/Movies3

Is there a way to do that or is there another possibility to watch movies with the internal player of the mediaplayer?

I think you can create symlink for your share:

ln -s /share/CACHEDEV1_DATA/Movies2 /share/CACHEDEV2_DATA/
ln -s /share/CACHEDEV4_DATA/Movies3 /share/CACHEDEV2_DATA/

then refresh your plex library and set Customize paths → Replace Plex paths

/share/CACHEDEV2_DATA → smb://HOME-NAS

Wh> @Beckflix said:

Direct Play only works with the Full Path to the “mkv” (wrapper and kodi crash if i try other settings).
no problem, i can replace the path to a smb link. But my “Movie” Library has 3 different folders. So i have to edit 3 paths?!
That looks like this:
PMS Server Folder → SMB Link

/share/CACHEDEV2_DATA/Movies1 → smb://HOME-NAS/Movies1
/share/CACHEDEV1_DATA/Movies2 → smb://HOME-NAS/Movies2
/share/CACHEDEV4_DATA/Movies3 → smb://HOME-NAS/Movies3

Is there a way to do that or is there another possibility to watch movies with the internal player of the mediaplayer?

This has worked for me in the past when I had more than one TV folder in Plex.

When typing in your direct path, just input the root level for your movies. In your case “smb://HOME-NAS/”

I have found that PKC seems to recognize all of the different folders even though technically you can only put in a single path. Even if you have TV folders at the same level it doesn’t seem to confuse PKC.

This was done quite a while ago so I don’t know if it still holds true but its worth trying.

Thank you for your Help!
The variant of xom2000 works perfect! But with the QNAP Interface and “Folder Rights” its a little bit difficult. but i think its a normal QNAP illness :).

I create a completely new folder with the Interface for the symlinks and change my libraries in Plex to the folder symlinks. Now can i create unlimited additional folders and the qnap interface makes no revolt :).

Thank you!!!

Big one, excited to hear back from you!

Changelog

version 1.8.13 (beta only):

  • Background sync now picks up more PMS changes
  • Detect Plex item deletion more reliably
  • Fix changed Plex metadata not synced repeatedly
  • Detect (some, not all) changes to PKC settings and apply them on-the-fly
  • Fix resuming interrupted sync
  • PKC logging now uses Kodi log levels
  • Further code optimizations

Hello,

I have Krypton 17.4 from PlayStore (Android). I can’t install the Repo, because error!

@c_hoch_b said:
Hello,

I have Krypton 17.4 from PlayStore (Android). I can’t install the Repo, because error!

You need to be more specific than that… Try downloading the PKC repo from github.com again, sometimes a download gets corrupted

Hey croneter,
im trying to get this to work on my laptop with linux mint 18.2 installed and kodi 18-alpha1 (git20170909). The reason why i try to use alpha software is because kodi krypton does some weird stuff on my laptop. After googling it seems to be a hardware/driver combination issue of bluez. With Kodi 18-alpha1 it seems to work without giving errors at start.
And the second reason is i like to test things out and if possible provide some help with debugging informations unless this is not wanted i hope you can assist me a bit. (I know alpha software is ONLY intended as test and in ongoing changes and not to be ment to be used as regular basis. But some basic testing couldn’t be wrong, could it?)

The following problems appeared with Kodi 18-alpha1 and PKC 1.8.13 beta:

02:30:14.364 T:139690590074624   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://192.168.2.200:32400/photo/:/transcode?width=4000&height=4000&minSize=1&upscale=0&url=/library/metadata/7977/art/1477376189&X-Plex-Token="removed from me"
02:30:14.398 T:139690590074624   ERROR: CCurlFile::FillBuffer - Failed: SSL connect error(35)
02:30:14.398 T:139690590074624   ERROR: CCurlFile::Open failed with code 0 for https://192.168.2.200:32400/photo/:/transcode/?width=4000&height=4000&minSize=1&upscale=0&url=/library/metadata/7977/art/1477376189&X-Plex-Token="removed from me"
02:30:14.398 T:139690590074624   ERROR: GetDirectory - Unable to get http directory (https://192.168.2.200:32400/photo/:/transcode/?width=4000&height=4000&minSize=1&upscale=0&url=/library/metadata/7977/art/1477376189&X-Plex-Token="removed from me")
02:30:14.418 T:139690590074624   ERROR: GetDirectory - Error getting https://192.168.2.200:32400/photo/:/transcode/?width=4000&height=4000&minSize=1&upscale=0&url=/library/metadata/7977/art/1477376189&X-Plex-Token="removed from me"

I have disabled SSL because PKC seems to loose connection after synchronisation is completed while trying to get artwork from PMS because either the PMS starts to revoke connection or PKC does. Still PKC seems to use SSL connection if im not wrong. (Or is Curl something different?).

Next question, in your wiki you stated that Artwork Downloader can be used alternatively, i tried this but when Artwork Downloader tries to do his magic it tells this:

02:55:36.125 T:139690316613376 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.plexkodiconnect/tvshows/15718/extrafanart/1136524.jpg

and this:

03:06:00.427 T:139690316613376 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.plexkodiconnect/tvshows/3338/extrafanart
03:06:00.427 T:139690316613376   ERROR: Create - Error creating plugin://plugin.video.plexkodiconnect/tvshows/3338/extrafanart

Am i doing something wrong or is it “just to early” for this to work? :smile:

If you need any more log details, i am willing to help and provide them.

I appreciate and like your work.

@HelperServices
Thanks very much for the coffees :smiley:
Yes it’s too early. The error messages you get are from Kodi, not PKC. Seems like the Kodi team changed something related to their SSL implementation. This is probably related to the fact that PKC uses a direct connection to your local PMS without a detour over plex.direct. However, Plex SSL certificates are only issued and valid for plex.tv. If your internet is down, Plex won’t work. I’m thinking of changing this in the future, but that will require major effort…

Is artwork Downloader not working at all? Or are you just getting log messages?

Edit:
Try this as a workaround for the SSL issues: login to https://app.plex.tv/desktop and connect to your PMS. Then navigate to any movie, hit the three dots … in the upper right corner, then Show Information, then Show XML. In the new browser window, copy the url like

https://192-168-0-2.6eb604e9b8c94479bfc096<CUT>.plex.direct

In the PKC connection settings, manually connect to that URL