PlexKodiConnect: Kodi Plex Integration Done Right

@hstamas said:

@croneter said:

@hstamas said:

@croneter said:

@hstamas said:

@croneter said:

@hstamas said:
Anyone notice that actor thumbnails seem to be messed up? I’m talking the regular default view, not within the extended info script. I have no idea when or how it happened as I’ve been doing a lot of experimenting lately with clean installs I between but no I’m consistently getting a single actor image (the same actor go matter what movie). It’s definately PKC as my Kodi install that is set up with regular sources doesn’t display this. I’ll try and get a screenshot and log submitted later.

Now that sounds weird. All PKC does is pass Kodi the artist names, and names only. The actor image scraping and everything else is done by Kodi

Edit: to be more precise, PKC passes the artist’s actor image URL to Kodi, if there is one

Yeah I just don’t get it as these have been all fresh installs of Jarvis and Krypton. Only when I set up The PKC plugin does this happen and then, only recently without any updates that I’m aware of.

What does the pms tell you about this movie? In your browser, navigate to this element, then the" three dots", info, then view XML.

Here is the actor part of the XML @croneter. LMK if you need the entire thing. Looks like PMS is identifying it correctly but the image links all point to the same thumbnail.

ADDITIONAL: Looked at some of my other movie XML files and they all point to the same URL image so something got hosed on my PMS. Any suggestions?

That sure wasn’t PKC :-D. As you correctly concluded, the PMS has all actors’ images pointing to the same URL (which PKC will then pick up). Try a PMS refresh, https://support.plex.tv/hc/en-us/articles/200289306-Updating-vs-Refreshing-a-Library

Yup doing that as I type this and it seems to be fixing the issue thanks. Will I need to do a complete resync of PKC or will it pick up the changes?

PKC should pick up the changes automatically

@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

Thank you for all your great work on PKC, its a great piece of software.
I use plex with kodi 16.1 and got the following issue.
Everytime when i play a file that is transcoded by the plex server, kodi doesnt fill the forward cache that is used to buffer the movie. The forward cache can be seen in the debug menu overlay when a movie is playing. It always shows “forward 0 B 0%”, if its a transcoded movie, else it works fine. I would like to transcode movies and buffer them before they are played, nobody else has this issue?

@hstamas said:
@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

@hstamas said:
@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

go for it

@herlax8 said:
Thank you for all your great work on PKC, its a great piece of software.
I use plex with kodi 16.1 and got the following issue.
Everytime when i play a file that is transcoded by the plex server, kodi doesnt fill the forward cache that is used to buffer the movie. The forward cache can be seen in the debug menu overlay when a movie is playing. It always shows “forward 0 B 0%”, if its a transcoded movie, else it works fine. I would like to transcode movies and buffer them before they are played, nobody else has this issue?

Buffering is handled completely by Kodi. Does your playback get stuck? See http://kodi.wiki/view/how-to:modify_the_video_cache

@xyrgh said:
I’ve set up my skin (Mimic) with submenus under TV and Movies for recently added, on deck and random. When I go into them, they show the movie/TV show, but the poster is square and doesn’t show any info about the show name or movie title.

Is this a skin issue or a PKC issue?

Since you seem the only one, this is probably a skin issue

@croneter said:

@hstamas said:
@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

@hstamas said:
@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

go for it

I need to get you logs but in a nutshell with Krypton PMS rarely recognized that a file is being played if initiated from a home screen widget. The On Deck node is the most reliable but not consistent. Using the basic Kodi nodes (next episode, recommended episodes, in progress episodes) as recommended they never initiate a PMS playback indicator.

@croneter said:

@xyrgh said:
I’ve set up my skin (Mimic) with submenus under TV and Movies for recently added, on deck and random. When I go into them, they show the movie/TV show, but the poster is square and doesn’t show any info about the show name or movie title.

Is this a skin issue or a PKC issue?

Since you seem the only one, this is probably a skin issue

I use Mimic too, but I don’t use recently added, on deck or random. When you enter into one of those menus, press the left key and the menu to let you change the view should pop up. You’ll probably have to do that for each one.

Hey, currently using PKC and Amber having came from plexbmc and it works great, awesomely stable. Is there any way to disable auto play as we get distracted and sometimes leave it running which powers through the season unattended? Can’t spot it any settings! Cheers

@nikotime said:
Hey, currently using PKC and Amber having came from plexbmc and it works great, awesomely stable. Is there any way to disable auto play as we get distracted and sometimes leave it running which powers through the season unattended? Can’t spot it any settings! Cheers

I’m not 100% sure, but I believe that is a service addon called Nextup Service. If you look through your addons, you can change the settings or disable it all together.

First off excellent work on PKC!

I have an idea. The is guy has been working for a few years on a Kodi Addon GDrive forum.kodi.tv/showthread.php?tid=177557 and it works very well to play content directly from Google Drive.
Bandwidth from Google servers is so good using this addon I am able to easily stream full 20-30gb Blu-ray rips directly to Kodi. The plugin in also allows you to select the smaller transcoded versions of video files that Google Drive creates using its Youtube api.

I have all my media stored on Google Drive and would love to use GDrive Kodi addon for playback with help from PKC.

I did some testing and found that current PMS server software allows you to add .strm files to your Plex library. GDrive uses Kodi .strm files for playback. So a single title in a Plex library could have muiltiple versions. Normal one pointing to actual video file and second one pointing to a .strm file.

So if I add said GDrive .strm files to the titles in my Plex library. If PKC could grab those .strms and use those for playback instead of direct play, direct stream or transcoding from the PMS. That would be amazing.

Amazing especially for sharing content with others that are at a different location from my physical PMS.

Thoughts??

@hstamas said:

@croneter said:

@hstamas said:
@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

@hstamas said:
@croneter is it too early to be asking about Kodi 17/Krypton issues with PKC?

go for it

I need to get you logs but in a nutshell with Krypton PMS rarely recognized that a file is being played if initiated from a home screen widget. The On Deck node is the most reliable but not consistent. Using the basic Kodi nodes (next episode, recommended episodes, in progress episodes) as recommended they never initiate a PMS playback indicator.

Yes I’m experiencing the same, checking the logs I see:

17:43:08 T:2180 NOTICE: PlexKodiConnect KodiMonitor → Method: Player.OnPlay Data: {“item”:{“title”:“”,“type”:“movies”},“player”:{“playerid”:1,“speed”:1}}
17:43:08 T:2180 NOTICE: PlexKodiConnect KodiMonitor → Currently playing file is: smb://DISKSTATION/share/TV/Orange Is The New Black/Season 03/Orange Is the New Black - 03x07 - Tongue-Tied.mkv
17:43:08 T:2180 NOTICE: PlexKodiConnect KodiMonitor → No kodi id passed. Playing itemtype is:
17:43:08 T:2180 NOTICE: PlexKodiConnect KodiMonitor → Item is invalid for PMS playstate update.
17:43:12 T:2180 ERROR: PlexKodiConnect Player → Could not find itemId, cancelling playback report!

So it seems it fails to located the itemId, however when you stop the episode it reports

17:44:49 T:2180 NOTICE: PlexKodiConnect KodiMonitor → Method: Player.OnStop Data: {“end”:false,“item”:{“id”:3457,“type”:“episode”}}

Which seems to have the id and correct type (note above onPlay type is “movies”

EDIT -

One possible way to overcome not finding a kodi id here would be to reuse the code I use in the next up addon which onplayback retrieves the kodi id using json.

Here’s the example getting back the tvshowid for episodes playing

       playerid = data["player"]["playerid"]

        # Get details of the playing media
        self.logMsg("Getting details of playing media", 1)
        result = xbmc.executeJSONRPC(
            '{"jsonrpc": "2.0", "id": 1, "method": "Player.GetItem", "params": {"playerid": ' + str(
                playerid) + ', "properties": ["showtitle", "tvshowid", "episode", "season", "playcount"] } }')
        result = unicode(result, 'utf-8', errors='ignore')
        self.logMsg("Got details of playing media" + result, 2)
        kodiID = result["result"]["item"]["tvshowid"]

@sciascia88 said:

@croneter said:

@xyrgh said:
I’ve set up my skin (Mimic) with submenus under TV and Movies for recently added, on deck and random. When I go into them, they show the movie/TV show, but the poster is square and doesn’t show any info about the show name or movie title.

Is this a skin issue or a PKC issue?

Since you seem the only one, this is probably a skin issue

I use Mimic too, but I don’t use recently added, on deck or random. When you enter into one of those menus, press the left key and the menu to let you change the view should pop up. You’ll probably have to do that for each one.

I use shift, when I’m in on deck, i go to the sidebar settings and it’s still showing shift, and theres no other options you can really configure.

I can live with it for now, I assumed ith was a skin issue to begin with. I’m just waiting on Openelec 7 stable to be released and will move over to that, which means I can then use the updated version of the skin.

@xyrgh said:

@sciascia88 said:

@croneter said:

@xyrgh said:
I’ve set up my skin (Mimic) with submenus under TV and Movies for recently added, on deck and random. When I go into them, they show the movie/TV show, but the poster is square and doesn’t show any info about the show name or movie title.

Is this a skin issue or a PKC issue?

Since you seem the only one, this is probably a skin issue

I use Mimic too, but I don’t use recently added, on deck or random. When you enter into one of those menus, press the left key and the menu to let you change the view should pop up. You’ll probably have to do that for each one.

I use shift, when I’m in on deck, i go to the sidebar settings and it’s still showing shift, and theres no other options you can really configure.

I can live with it for now, I assumed ith was a skin issue to begin with. I’m just waiting on Openelec 7 stable to be released and will move over to that, which means I can then use the updated version of the skin.

I tested it out on my end and replicated the issue you were having when I chose the item for menu as Addon>Video addon>PKC>Movie>on deck. When I set it as Video Library>Movies>on deck, it seemed to solve the problem. Hope that works for you too!

@sciascia88 said:

@xyrgh said:

@sciascia88 said:

@croneter said:

@xyrgh said:
I’ve set up my skin (Mimic) with submenus under TV and Movies for recently added, on deck and random. When I go into them, they show the movie/TV show, but the poster is square and doesn’t show any info about the show name or movie title.

Is this a skin issue or a PKC issue?

Since you seem the only one, this is probably a skin issue

I use Mimic too, but I don’t use recently added, on deck or random. When you enter into one of those menus, press the left key and the menu to let you change the view should pop up. You’ll probably have to do that for each one.

I use shift, when I’m in on deck, i go to the sidebar settings and it’s still showing shift, and theres no other options you can really configure.

I can live with it for now, I assumed ith was a skin issue to begin with. I’m just waiting on Openelec 7 stable to be released and will move over to that, which means I can then use the updated version of the skin.

I tested it out on my end and replicated the issue you were having when I chose the item for menu as Addon>Video addon>PKC>Movie>on deck. When I set it as Video Library>Movies>on deck, it seemed to solve the problem. Hope that works for you too!

Nice, thanks! I’ll try this out when I get home.

@Chris Teasdale said:
First off excellent work on PKC!

I have an idea. The is guy has been working for a few years on a Kodi Addon GDrive forum.kodi.tv/showthread.php?tid=177557 and it works very well to play content directly from Google Drive.
Bandwidth from Google servers is so good using this addon I am able to easily stream full 20-30gb Blu-ray rips directly to Kodi. The plugin in also allows you to select the smaller transcoded versions of video files that Google Drive creates using its Youtube api.

I have all my media stored on Google Drive and would love to use GDrive Kodi addon for playback with help from PKC.

I did some testing and found that current PMS server software allows you to add .strm files to your Plex library. GDrive uses Kodi .strm files for playback. So a single title in a Plex library could have muiltiple versions. Normal one pointing to actual video file and second one pointing to a .strm file.

So if I add said GDrive .strm files to the titles in my Plex library. If PKC could grab those .strms and use those for playback instead of direct play, direct stream or transcoding from the PMS. That would be amazing.

Amazing especially for sharing content with others that are at a different location from my physical PMS.

Thoughts??

I think that scenario could be covered soon by PKC as I plan to implement a pop-up that let’s you select different versions, streams, whatever if they are present on the pms (say a 1080p and a 720p version of the same movie).

Time for some fixes. PKC should now always figure out what Kodi is playing (this is a rather fancy hack :-)). PKC will now also ask you what media-streams to play, if you have severel (e.g. several Youtube quality streams, or several files for the same movie item).

##Changelog##
version 1.2.7

  • Let the user pick between several streams or if you have, several different files for the same movie (can be deactivated in the settings)
  • Use the playing item’s filename and path to figure out the Plex id. Now Plex should really always be informed what you’re currently playing

Hi,

anybody seen that:

21:30:09 64.471725 T:1807709088 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.ValueError’>
Error Contents: invalid literal for int() with base 10: ‘’
Traceback (most recent call last):
File “/storage/.kodi/addons/plugin.video.plexkodiconnect/service.py”, line 360, in
Service().ServiceEntryPoint()
File “/storage/.kodi/addons/plugin.video.plexkodiconnect/service.py”, line 141, in ServiceEntryPoint
library = librarysync.LibrarySync(queue)
File “/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/librarysync.py”, line 282, in init
self.fullSyncInterval = int(utils.settings(‘fullSyncInterval’)) * 60
ValueError: invalid literal for int() with base 10: ‘’
–>End of Python script error report<–

running 1.2.7 with OE Jarvis (16.1) on PI3.
Is there a easy way out before do a complete resync?

Thanks,
Olli

@UschiGlas said:
Hi,

anybody seen that:

21:30:09 64.471725 T:1807709088 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.ValueError’>
Error Contents: invalid literal for int() with base 10: ‘’
Traceback (most recent call last):
File “/storage/.kodi/addons/plugin.video.plexkodiconnect/service.py”, line 360, in
Service().ServiceEntryPoint()
File “/storage/.kodi/addons/plugin.video.plexkodiconnect/service.py”, line 141, in ServiceEntryPoint
library = librarysync.LibrarySync(queue)
File “/storage/.kodi/addons/plugin.video.plexkodiconnect/resources/lib/librarysync.py”, line 282, in init
self.fullSyncInterval = int(utils.settings(‘fullSyncInterval’)) * 60
ValueError: invalid literal for int() with base 10: ‘’
–>End of Python script error report<–

running 1.2.7 with OE Jarvis (16.1) on PI3.
Is there a easy way out before do a complete resync?

Thanks,
Olli

Yes there is. Seems like your settings got corrupted. Go to your PKC settings, sync options, and change ‘Do a full library sync every x minutes’ to another number. Exit and restart Kodi

Merci !!
Thanks again,
Olli