PM4K / PlexMod for Kodi (18, 19, 20, 21, 22+)

Excellent work as always! :+1: Nice to finally have proper chapters.

Question: Why would we want to change the Kodi Cache/Buffer settings? :thinking:

Oh good lord no, the native Plex app’s UI is awful. PlexMod’s is perfect just the way it is.

Has been added :slight_smile:

4 Likes

Heya! I was wondering if the fix for the embedded subtitles not showing until after 10 seconds, will be added to the main release? I’m using the latest 0.6.0-RC1, and encountering the well-reported problem of subtitles not showing until 10 seconds in.

I’m sorry if I missed something! I’m not very technically adept, but trying my best to keep up!

2 Likes

Is there any way to hide a library similar to unpinning in the Plex Android TV app?
I have some libraries I would like to hide from the UI in PlexMod for the main account.

1 Like

I’d like to have this feature too.

1 Like

Well-reported where? Please open an issue here and post logs with Kodi DEBUG logging and PM4K DEBUG logging enabled, thank you!

From the library selection or the home screen, or both?

By home screen, do you mean rows such as ā€œrecently released moviesā€ etc?

At the very least Id like to hide certain libraries from the library selection at the very top of the home screen. But ideally, yes i’d like to hide certain libraries entirely from showing up anywhere (hidden from library selection and its content hidden from any other rows)

In January 2020.

And then you (I think) figured it out in May. At least the person below you said it worked. But it was in a separate branch you were working on, not the main build you were patching, so it would have been necessary to manually install that version to get it. I also asked about the fix being merged a year later, so it would be easier to install, and didn’t get a reply.

1 Like

Weird, I never got around to merging that change, as it seems. I’m reinvestigating the issue and the next release will incorporate it.

3 Likes

OK, another pretty massive release. Lots of core hardening and a couple of nice things.

Most notable is the rewrote connection logic, which also automatically tries to use locally detected servers if possible. As long as a server connection’s domain returned by plex.tv/resources resolves to a local IP, PM4K will try to use the server (so no manual connection necessary).

Local+insecure servers now also have a little icon in the serverlist, which additionally also is now ā€œliveā€ (reacts to reachability changes during reachability tests) and significantly less broken. The refresh servers button has been removed and any changes to network settings in the plugin are now live.

Ah, and the last used server is remembered per user now.

Binge mode has been hardened (and the setting actually works per user now, was broken), together with a refactoring of marker handling and a countdown just before a chapter/marker would be autoskipped.

Chapters and markers/virtual chapters also get merged automagically now, when both are available and they don’t individually overlap.

When ā€œEnable video preview thumbnailsā€ is enabled in the PMS and a library, virtual chapters will now use the generated BIF preview images automatically.

A long standing embedded subtitles issue has been fixed as well, which I missed when merging years ago, sorry!

Well, I’m just reiterating the changelog now, here it is:

0.6.2

  • Add system setting to execute action upon sleep event (e.g. exit Kodi when display goes to sleep; fixes passthrough issues on SHIELD)
  • Allow canceling postplay timeout with enter/OK
  • Binge mode: show postplay if video was exited manually
  • Show local/LAN server status in status bar and server list via new icon; server list is live now
  • Discover local/LAN servers automatically (if any of the plex.tv/resource’s DNS points to a local IP and is reachable)
  • plexapp/account/main: init account earlier to pick up ID early; slightly reorder initialization sequence to pick up preferred servers earlier
  • Connection logic: refactor connection significance; wait for manual connections if necessary/wanted; add way more logging (as this might break things)
  • Remember last used server per user
  • Refactor seekdialog autoskip handling and chapter/marker display logic
  • Harden the episodeswindow’s paginator, making it less easy to generate a huge amount of requests when paging quickly (holding down left/right)
  • Harden chapter/marker autoskip
  • Add ā€œcombined chaptersā€, intelligently merging chapters and markers into one, if available
  • Add BIF preview images to markers if available (ā€œEnable video preview thumbnailsā€ needs to be enabled on server and library)
  • Add separate ā€œshow autoskip info earlyā€ offset to addon settings (default: 2.5s)
  • Add countdown to autoskip info button, informing the user that we’re about to auto skip the next marker (intro/credits)
  • Set skip intro button show early threshold to 60s (was 120s) to skip recaps but only those
  • Seek as fast as possible on immediately occurring intro; skip directly to next video if possible on last credits with autoskip enabled
  • Add separate connectivity check timeout; properly set up timeouts for async requests; log ping in local network tests
  • Harden server discovery; further improvements to preferring local over secure
  • Update reachability of servers live in server list;
  • Remove server refresh button due to issues;
  • Add fontawesome license
  • Show busy dialog when selecting a new user, preventing errors
  • Trigger force available servers/connections refresh when changing network settings;
  • Fix Bingemode not properly stored per user
  • Fix multiple credits naming in seekdialog
  • Fix error upon episodes window reinit; catch error upon missing listitem
  • Remove time left tag after watching more than one episode
  • Add some missing advanced/addon setting descriptions; cleanup
  • Disable GDM discovery by default
  • Fix late display of embedded subtitles; the change has been forgotten, sorry; fixes #54
6 Likes

Sorry @panni - I think I’ve found a bug in your latest release. I have kodi log viewer set to show the log whenever one occurs. When I play music from my server, it spits out an error as each track starts to play.

I’d have sent you a screenshot if I knew how to but I’m pretty sure you’ll be able to recreate this for yourself. If not, let me know and I’ll teach myself screenshotting.

Thank you once again for your work on this, I love it.

Oh wow, I just browsed through the media part handling of P4K, which I’ve rarely touched in the past. There’s basically no separation of media versions and/or parts. For the media preplay view it just takes the first media item and part, and then gets all streams across all items/parts. Someone was very lazy there.

The only place where it actually selects a media part is when using ā€œplay versionā€.

I’ll have to rewrite that completely. That’ll probably also fix multi part resume.

Will be fixed in the next version. I didn’t properly double check the embedded subtitles fix - apparently Audio can’t set a subtitle :smiley:

1 Like

Do you want a 0.6.2-1 fix release for this or is it working well enough for now?

Edit: I’ve drafted (but not published) 0.6.2-1, if you want to use it in the meantime (For Kodi 19 and above with the issue fixed). You can just overwrite your local one and the next official release will auto update again.

Wow, that’s so kind. I’d intended to wait for the release and just turn off the error log reporting. I’ve downloaded your .zip and will use it in the interim.

Edit, just to say it works as expected with no errors.

Thank you @panni !
I discover your forum this afternoun and i just finished to install the app on my nvidia shield pro 2019 with kodi nexus 20.2.

It is working with remux 4k bluray, m2ts files with pgs subtitles wich is not supported by the current android app from plex.
I’ve just seen a graphical bug, when choosing an audio track or subtitles pist, on different not all movies (besides the fact that they are all hevc m2ts files), the number of track or subtitles options is double what it should be. For example i see 4 english tracks and 4 french tracks whereas i should see only 2 and 2.

It’s not a big deal because now i can enjoy 4k hdr m2ts files with pgs sub.
Let me know if you need anything in order to debug this, i’ll be happy to help.

Sure, please open up an issue on Github, so we don’t clutter this thread up with a discussion, thanks!

I’m currently working on the pretty broken preplay media handling - it would be helpful if you could open an issue and post some MediaInfo of the items in question.

2 Likes

Let’s use this as a central point to work on this issue.

Fix late display of embedded subtitles

Thank God this has finally been fixed! I brought it up on Kodi’s forums over a year ago, maybe even 2, never got a reply.

I’m currently working on the pretty broken preplay media handling

This sounds interesting. Looking forward to it. Any chance of fixing how extras handle their audio and subs as well? Right now we’re unable to enable subtitles or change audio tracks. Also I’ve just noticed that scrolling to the end of a season’s episodes doesn’t automatically move back to the first episode anymore.

Well, Kodi has nothing to do with this, why would they answer? :smiley:

Edit: Hmm, might actually be a Kodi issue, though.

Maybe.

Whoops, I might have ā€œover hardenedā€ the episodePaginator on that one, will investigate.

Proper media selection comes first, though. This is a major blocker IMHO.

1 Like