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

Ah yeah. Lower the Plex.tv connect timeout to 1 and read to 2 or 1. That should fix it. (in PM4Ks AddonSettings, system (long press enter on the icon)). If you want it even faster, lower max retries.

That should get you up and running in below 9 seconds. If you lower max retries to the old default, 1, or even zero (bad idea), it should be really fast.

I’ll lower the defaults a little for 0.8.0 and maybe add a specific retries setting for Plex.tv requests.

Edit: maybe a “fast offline detection” mode that sets those limits very low.

Awesome! Followed your settings. With internet 2 second start. W/O internet 4 seconds. Excellent! Thanks.
A fast offline detection would be cool though.

Which settings did you use?

Attention everyone: the “adaptive” readfactor might be bugged in Kodi 21. It seems like after pausing, then resuming, the buffer empties itself completely in this mode. I haven’t been able to fully confirm this, yet.

For local PMS this doesn’t seem to be an issue, I’m experiencing this in a remote environment and was able to fix this by changing the readfactor back to 4. This might introduce hitching in high bitrate scenarios, though, so not recommended for local streaming via HTTP.

Even with 4 the buffer will empty itself at first, but will continue filling after a couple of seconds. Adaptive runs itself completely dry, then the stream pauses and it fills up again.

Forget this. Pretty sure it was a network issue on my end.

I used all the ones you outlined in your previous post.

“ Ah yeah. Lower the Plex.tv connect timeout to 1 and read to 2 or 1. That should fix it. (in PM4Ks AddonSettings, system (long press enter on the icon)). If you want it even faster, lower max retries.

That should get you up and running in below 9 seconds. If you lower max retries to the old default, 1, or even zero (bad idea), it should be really fast.

I’ll lower the defaults a little for 0.8.0 and maybe add a specific retries setting for Plex.tv requests.

Edit: maybe a “fast offline detection” mode that sets those limits very low.”

So connect on 1, read on 2 and retries at default?

1 Like

Connect 1, read 2, max retries 2.

1 Like

I have a Vero4K+ and a new Vero5, both obviously running OSMC.

I installed the zip repository on both. The 4K+ has been successfully running PM4K for a few years. No real issues. It is running v.0.7.9-rev2.

I just got the Vero5 and it is up to date with Kodi v21.1. I was able to add the zip 2.6.1 repository without issue, but when I try to install PM4K I get a message that says “Failed to install a dependency”.

It’s been a long time since I installed this from scratch, but am I missing something I need to do to get this to install properly?

Got any logs? You can DM me if you want.

Edit: you can also look at PM4Ks plugin info and see which dependencies aren’t met.

Edit 2: these are PM4Ks dependencies: plex-for-kodi/addon.xml at 31f814b3306ffae16f11fad5918bdbc05a508b4d · pannal/plex-for-kodi · GitHub

It’s possible 21.1 has dropped some, but I doubt it. It’s probably the OSMC mirror that has dropped one or a specific version

Edit 3: possibly/probably related/root cause: Failed to install dependency after fresh install vero V - Help and Support - OSMC Forums

1 Like

I got it worked out. When I went in to the plugin dependencies and manually installed all of the ones listed, PM4K installed just fine.

Thanks!

This addon is awesome btw congrats !

Am I missing something or is there anyway to sort by bitrate for movies ?

2 Likes

Where do you mean? In libraries?

Yeah,

I asked for that here too :slight_smile:

Yeah, it helps when those ideas get posted in the discussion section on github, as it’s hard to keep track via this thread. Added the Bitrate sort to my list.

2 Likes

I am confused, please tell can’t we use the Lets encrypt Chains of Trust - Let's Encrypt for plex.direct domains
It tells R10<–ISRG ROOT X1

-----BEGIN CERTIFICATE-----
MIIFBTCCAu2gAwIBAgIQS6hSk/eaL6JzBkuoBI110DANBgkqhkiG9w0BAQsFADBP
MQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFy
Y2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBYMTAeFw0yNDAzMTMwMDAwMDBa
Fw0yNzAzMTIyMzU5NTlaMDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBF
bmNyeXB0MQwwCgYDVQQDEwNSMTAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQDPV+XmxFQS7bRH/sknWHZGUCiMHT6I3wWd1bUYKb3dtVq/+vbOo76vACFL
YlpaPAEvxVgD9on/jhFD68G14BQHlo9vH9fnuoE5CXVlt8KvGFs3Jijno/QHK20a
/6tYvJWuQP/py1fEtVt/eA0YYbwX51TGu0mRzW4Y0YCF7qZlNrx06rxQTOr8IfM4
FpOUurDTazgGzRYSespSdcitdrLC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n
jh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw
qHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI
rU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq
hkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL
ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ
3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK
NFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5
ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur
TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC
jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc
oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq
4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA
mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----

Is this a wrong chain to use? It might have shorter expiry.

I don’t really understand the question. Anyhow, this will be the new default bundle: plex-for-kodi/lib/_included_packages/plexnet/certs/acme.bundle.crt at develop_kodi21 · pannal/plex-for-kodi · GitHub

Contains the root CA for letsencrypt and zerossl, so it’ll probably cover 99% of all PMS installations. And it expires 2035.

Intermediates are not necessary in a root CA bundle, it’s not a chain.

Ok got it, thanks.
Its only a CA Bundle, aka collections of CA Certs, so we can add more as per our external server certs.

Just like we add it in our plexserver trusted store Plex Media Server: add root ca cert to trusted bundle | Knowledge Base

Yes. The server sends a certificate (or a chain of), and we verify it using the root certificate to make sure it wasn’t tampered with. If the server sends a chain, the intermediates verify the previous ones until we verify the last one in the chain with the root certificate.

This has probably been requested before, but can episode synopses (synopsises?) be moved up slightly on the Post Play screen to avoid this from happening?