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

@panni the kodi 20 version works just fine with kodi 19.
I also made a PR to allow all users to have skip intro if the server admin has plex pass (how it works on other clients)

LE: that PR Is based off your work actually :wink: - your initial PR to add support for skip intro in the official plex-for-kodi client

The Server Disocvery (GDM) Feature never worked for me. Not on Kodi 19 and not now.

In the past this was no problem, i used the ā€œManual Serversā€ feature. I entered the Plex IP and the Port manually and everything was fine.

Now with Kodi 20 and Plex 0.4.2 for Kodi the ā€œManual Serversā€ stopped working. I can’t get a connection to my Plex Server. Can you please have a look at this?

Thank you

That should hopefully be fixed with the next release.

I’ll include that, thank you!

I will take a look but I can’t promise anything. I’m not super familiar with how P4K does all the network/auth handling.

1 Like

I believe I’ve just fixed long-standing (since Kodi 19, or basically since Kodi uses Python 3) broken GDM for Linux and Windows (especially non-English Windows). Those changes should make it into the next release.

The manual server handling is a different kind of beast. I’m still trying to figure out how the implementation was done; it doesn’t seem to even use local connections as a fallback, even if it could.

If I can change that, I will try.

1 Like

Great job @panni

Kodi Plex addon is far, FAR better than native app, especially for subtitles, which you can manually adjust in height pixel by pixel inside Kodi UI. Nexus v20 also brings a lot of subtitle improvements.

It is a shame that Plex is trying to forget it even exists. They should pay you for maintaining it. This is actually really sad, how clueless they are. They are putting all the resources into the native app, and it is still bad. If Kodi Plex addon ceases to exist, I will have to switch to Jelly, or something else. I just want to say that your work is really appreciated!

1 Like

Thank you for the kind words.

As you might’ve noticed: I’m not super active in this project anymore. After the huge amount of changes I submitted years ago for Kodi 18/19, I look at the issues every couple of months (or when a new Kodi version gets released), then fix what needs fixing.

I doubt I’ll have time to really maintain it; e.g. implement new features, new visuals etc.

When it comes to upcoming stuff like outro-skipping, that’s something I’ll handle, for sure, once the API/data is available.

Renaming it to PlexMod, branching off of the official Plex4Kodi, and exclusively hosting it in my repository will change that a little. Also the fact that Sub-Zero is practically EOL helps me with available time to do so.

2 Likes

0.4.3 (Kodi 19/20)

  • Byebye Kodi 18
  • Final major Kodi double version changelog. Upcoming releases will just be the version itself. 19/20 will be supported in the same codebase as long as it’s possible.

Changelog
hybrid codebase for 19/20
Allow skip-intro for users on a plexpass enabled server (thanks @fvlaicu)
Fix visual issues (due to botched addon rename)
Make AV1 setting Kodi major version dependant; pave way for hybrid codebase for 19/20
Implement new network discovery mech on windows (GDM) using powershell (experimental)
Possibly fix GDM on windows (especially on non-english variants)
Possibly fix GDM on Linux (non-BSD)

Notes
GDM was broken since Kodi 19 at least (Python 3). At least on Linux (non-BSD) and Windows.
Both might have been fixed with 0.4.3. Without a lot more work I’m not able to properly confirm this, as my PMS doesn’t have the ability to answer to local network discovery (PMS inside wireguard-docker-network). If GDM is still broken, please message me directly.

Manual connections are still a bit ominous to me. Investigating.

1 Like

I’m having trouble installing this. I can see that the repo should be 0.2.4 but when I look at your dontpanic repo in file manager it’s 0.2.3 still. I’m show an available update in my add-ons but the update (to 0.2.4) fails

If it helps, I’m on Kodi 19 using CoreElec.

P.S. Just checked this on Kodi 20 in Coreelec. Addon has updated to 0.4.3 but the repo won’t update to 0.2.4.

I’m so happy that you’re updating this addon - it’s a pleasure to use it.

I tried this Addon (version 0.4.3) on Kodi20 on my FireTV. It seems it finds automaticaly my Plex-server on QNAP, because it it listed on the server dropdown, but it cannot connect. Addon shows ā€œno Servers foundā€. I do not know why.
The native Plex-App on the same FireTV works well. So it is not a network problem.
Then I tried to disable force to HTTPS on server side. But when HTTP is enabled its the same problem.

Any Ideas. ?

Ryker

Exactly the same problem for me. My QNAP PLEX Server is listed in the Server Dropdown Menu, but it never connects. The wheel is spinning all the time.

I don’t have a github account but I’ve been using this addon for a while so thought I would attempt to give something back.

This is a patch I created against the latest version from @panni that adds a basic auto skip intro toggle / functionality, configurable skip intro button timeout and a couple of other fixes I seen in forks on github. It works for me on an odroid n2+, amd minipc and an android box so I think it’s functional enough.
patch.txt (10.6 KB)

3 Likes

@Ryker1409 @Lightwizzard so you’re not able to use this addon at all after the last update? Does disabling GDM do anything for you?

Please post logs. Preferrably DEBUG logs (enable debug logging in Kodi and PlexMod)

Edit: Repository should be populated to 0.2.4 now; somehow the index.html didn’t get updated.
Edit 2: Repository should update properly, soon.

I do not know if it would work with Kodi19. I started with Plex very new and my Kodi was alread upgraded to 20.
Disabling GDM or using a specific Server-Ip-adress in Servers does not help.
I already tried to generate a DEBUG-Log, but cannot find it. What is the Path where it is stored ?

Inside your Kodi user folder. It’s usually a ā€œ.kodiā€ folder where ā€œtempā€ or ā€œuserdataā€ hold ā€œkodi.logā€.

On FireTV it should be /Android/data/org.xbmc.kodi/files/.kodi/temp/kodi.log. You can install the Kodi Logfile Uploader from the official Kodi repository alternatively, and post the link here.

Not necessarily, but we’ll see.

In kodi.log, I found wich URL the addon tries to reach and this seems not to be correct.

https://10-0-3-1.790cf497dc84fd6xxxxxxxx.plex.direct:32400

This look wrong. The correct URL must be https://qnap1.fritz.box:32400 or https://192.168.178.40:32400

What’s Custom server access URLs set to in your Plex Server config? Try adding https://qnap1.fritz.box:32400 there.

The URL it tries to use is retrieved from plex.tv’s API. Not sure why it’s using a different one compared to the Android addon, but I can’t tell without logs.

Edit: You might also be running into DNS rebind protection (see here). You can try adding plex.direct to the whitelist.

Is very much correct. At least for remote connections.

Neither of these can be used as they most likely don’t have a valid cryptographic certificate for their domain names.

See https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/
particularly the section ā€œWhy doesn’t it work?ā€
I know for certain that the Fritzbox has the necessary settings for correcting a DNS rebinding protection issue.

1 Like

My Plex Server runs with default Network Settings, but I only forced https.
No custom server access urls are definded. But with webbrowser a cann access it with https://qnap1.fritz.box:32400

LogFile is now uploaded to hastebin

Even if it loads the web app, don’t do it. It will cause all sorts of unpredictable behavior.
You can’t force https if a fitting certificate is missing. At least not in Plex.
This has nothing to do with custom server access URLs either.

OK, Plex brings a ā€œLet’s Encrypt Certificateā€. But, ok, now HTTPS is now set to ā€œPreferedā€ on Plex Server and Plex-Sever is restarted, But the addin has the same problem.