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

All is working fine for me as expected.
Good work!

Thanks guys, I’ll keep the prerelease for a day and will probably finally release 0.7.5 tomorrow night.

Then it’s on to 0.7.6 with full force. My currently planned major feature list is:

  • assisted offline mode (adds a ā€œGo Offlineā€ menu item once signed in, and goes offline ā€œforeverā€, until you use ā€œGo Onlineā€ again), which will hopefully preserve also server and user switching
  • native offline mode (the ability to use Plex without plex.tv with manual connections only, hopefully including user switching based on the server itself and not a single plex.tv request ever)
  • just an idea, but might work: special subtitles handler in case of DirectStream/Transcoding, that downloads the intended subtitle to a temporary local file and feeds it into the Kodi player, circumventing any Plex Server restrictions and subtitle burn-in, always
  • support videos in photo/image viewer

Please tell me your thoughts on those!

Edit: BTW, seems like we’re close to getting PM4K into the official repository: [script.plexmod] 0.7.4 by pannal Ā· Pull Request #2571 Ā· xbmc/repo-scripts Ā· GitHub - sadly that version is almost out of date already :smiley:

7 Likes

That sounds great

I also have some ideas for future improvements in the music area:

  • Option for sorting of albums in artist view. E.g. Sort by release date descending (currently fixed to ascending)
  • Solution for current limit of albums on artist view. Is more and more getting an issue on my side with growing library. Great would be the same logic that is used on the music / movie hubs where it also shows X entries but you can scroll to the right and the next chunk of items gets loaded.

The issue is that it doesn’t work that way. The other media types such as TV Shows have one source of its children. The artist view includes albums from the artist and 8 more potential sources that come from ā€œrelatedā€ content (no idea why it’s that complicated). I’m not sure it’s possible to properly paginate that, as we can’t simply paginate the results of one query.

Hmm, includeRelatedCount is at 20, though. Not sure why it would top out at 10 for you.

0.7.5-rev1 - That’s what she said

Oh wow. I slightly miscalculated how big 0.7.5 would be. This might be the biggest changelog, yet.

There have been SO many fixes and additions, most notably:

Library Love :heart:

@bowlingbeeg took it upon themselves to massively clean up the library code and at the same time potentially making it orders of magnitude faster by chunking the requests made to the server.

This leads to a faster library UI, faster browsing and less strain on your device, depending on the library size.

Guaranteed watch progress

The playback stop/next/prev logic has been revamped, virtually guaranteeing now that any progress made inside a video is also reflected back to the Plex server. This was a little buggy until now.

–

Apart from that, there’s too much to really summarize, so I’ll leave you to the changelog.
As always, a big thanks to The Squadā„¢ and everyone else who stuck with me and the endless beta and prerelease iterations.

Changelog:

  • Fix: transcoding is broken due to deepcopy usage
  • Add IMDB ID to video info
  • Fix: Libraries: Missing items when filters applied and collections exist (thanks @bowlingbeeg )
  • Fix: Libraries: Removed most filters from collections view as they don’t work (thanks @bowlingbeeg)
  • Fix: Chapters not available in episodes during playback after manually changing watch status
  • Fix: next episode receives resume state from previously resumed episode when pressing NEXT
  • Fix: Items with non-existant files get removed from the home hubs when visited
  • Fix: When using ACTION_PLAYER_PLAY to autoplay an item on Home that resumes, all title2 titles of the underlying screen disappear
  • Fix: PPI: CPU core usage overlaps items when playing something with enabled subtitles
  • Fix: SeekDialog/Handler/Player: Edge case where progress wasn’t updated in certain situations
  • Fix: Non-Home-Hubs: hub elements limited to 10 after modifying an underlying item
  • Update Spanish translations (thanks @Deci8BelioS)
  • TV Shows: Allow deleting TV shows if possible
  • TV Shows: Allow deleting seasons if possible
  • TV Shows: Add CONTEXT_MENU handler on seasons, allowing changing watched status and deletion
  • TV Shows: More accurately show progress bar including in progress episodes
  • Player: Don’t use old resume info when going to next video in playlist
  • Player: Simplify and optimize stop/end/next logic
  • Core: Fall back properly when Kodi version string couldn’t be parsed
  • Core: Correctly reload addon settings on maximize from minimized state (so yes, you can minimize the addon, change addon settings, then maximize it again and the settings will be applied)
  • Core: Edge-case: Ensure TV background music isn’t recognized as audio
  • Core: Logging: Clean Plex tokens from constructed item for playback dict
  • Core: SeekHandler: fix usage of player.video.duration erroring
  • Core: Home: Store last BG on minimize and on home select as well; don’t store the same background URL if it hasn’t changed
  • Core: VideoPlayer: Make sure we’re the only active player, try to stop all other active players for 5 seconds
  • Core: Instead of using Action(back) before running addon, navigate to Home and try to guarantee that
  • Home: Don’t round robin while loading the next hub pagination chunk
  • Home: Sections: Increase section select timeout from 300 to 500ms
  • Home: Fix autoplay from home on episodes (ACTION_PLAYER_PLAY)
  • Home: Don’t fail on empty hub
  • InfoScreen: Add DV stream metadata info
  • Episodes: Show episode options menu on long press select/OK (CONTEXT_MENU)
  • Episodes/Seasons/Shows: Calculate and show season watched percentage including in-progress episodes
  • Episodes/Seasons/Shows: Show progress even for shows/seasons with only an in progress episode, no fully watched ones
  • Episodes: Adjust ratings/userratings positioning and label widths; add autoscroll to show and episode titles
  • Episodes: Wait for full episode data to be loaded before enabling playback
  • Episodes: Add directors/writers to episode view
  • Episodes: BGM: Fix show() accessor failing
  • Episodes: Don’t play background music when current volume is zero
  • Movies/TV/Episodes: Support ratings from non-legacy agents (also when primary provider is IMDB)
  • Movies: Scroll long titles as well
  • Movies/Preplay: Move userRating/stars in line with other ratings
  • Movies/Preplay: Show writers besides directors as well
  • PlayerSettings: Add Kodi Resolution Settings for Kodi >= 18 (only when you have a whitelist configured in Kodi/Video)
  • PlayerSettings: Add Kodi Colour Management for Kodi >= 20 (when applicable)
  • SeekDialog: Ignore immediate OK/SELECT on auto-skipping marker with countdown during the first second of the marker shown
  • SeekDialog: Make sure we only send the correct timeline request on certain actions
  • SeekDialog: Make sure we send a timeline request on certain actions
  • SeekDialog: Remove now unnecessary negative offset on manual marker skip on final credits marker, as we’ve got much more robust PostPlay handling now
  • SeekDialog: Avoid showing the final credits marker twice (after it’s been manually skipped already)
  • SeekDialog: Hide once-manually-skipped markers and move them to the OSD as well
  • SeekDialog: Don’t react to SELECT/ENTER on counting down autoskip marker if marker is only visible in OSD
  • SeekDialog: Bingemode: Don’t autoskip the credits of the last available episode of a TV show
  • Player/SeekDialog: Simplify and harden PostPlay behaviour
  • Libraries: Clean up code, improve performance (memory usage, CPU load) and optimize viewing experience by properly chunking the view’s requests based on the view position (thanks @bowlingbeeg)
  • Addon Settings: Add setting for Library view chunk size
  • Settings: Add separate playback setting to skip Post Play in TV shows (separate from binge mode)
  • Settings: Clarify and reorder playback settings
9 Likes

Pushed a modified SubScene addon to Don’t Panic. Might need a couple of retries, but should workā„¢.

Hello Everyone,

I’m getting intermittent reboots of my Odroid N2 which seem to be related to PM4K. Disabling PM4K and no reboots.

Can anyone see what might be causing these reboots, as it only happens when the N2 is idle.

TIA

You’re running 0.7.4, does the same happen with the latest release (0.7.5)?

Edit: Do you have any idle setting active in PM4K? (System: Screensaver, idle, etc.)
Edit: Can you reproduce this without other addons active (such as service.aml-vnc)?

Have not tried, but has been happening for a month or so now.

No, nothing.

PM4K and VNC are the only add-ons installed. I need VNC to support this remotely. It’s being used by my mother just to watch Plex. The box gets rebooted daily at 5AM and automatically starts PM4K for her.

OK, let’s continue this in DM.

Question is pm4k 0.7.5 able to run on kodi 20.3 or should i wait for now with upgrading my mediaplayer.

Yes you are right 20 is the current limit.

What about splitting the albums row in multiple ones - so one row per Type / related content? Plexamp is doing the same in artist view.
It would also have the additional advantage to have a better overview and find albums etc. Easier.
In this case you could maybe load the rows per type and you don’t have that mixture?.

The answer you seek is in the first post :smiling_face:

Thank you for answering. Yes i saw that post. But i was still unsure if it also applied for all kodi 20 versions.
But now i am reassured that i can upgrade my device from kodi 20.2 to 20.3.

Yeah maybe, I’d have to investigate. In the meantime you can play around with script.plexmod/windows/subitems.py line 650 and adjust includeRelatedCount to your liking.

1 Like

@panni

Hi Panni. Long time no see

Something is wrong with the latest version of PM4K on LibreELEC beta build (Kodi 20 - Raspberry Pi)

It was working in the previous version.

When I try to play anything that requires transcoding an error message appears.

I logged everything hopefully in the archived log below.

Hope it helps.

LibreELEC-Rpi.zip (42.1 KB)

Jup I see that. Probably time for 0.7.5-rev1. I’ll take a look ASAP.

3 Likes

Hope can help me and find a solution for this matter.

I’ll take a look :slight_smile:

4 Likes

Please don’t ever update this UI! I use this addon because I don’t like the new UI across all the plex apps. This UI is the best and they need to stop ruining crap trying to update it lol. I really appreciate your work! I’ll lose my mind if I have to use the android plex app.

2 Likes