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

Oh? max retries is 1? It should be 3. Did you change it in the past so the default doesn’t apply?

No, I don’t think I’ve ever changed it.

Actually, if I’m being honest with you, I always forget about those outside the addon AddonSettings.

I should’ve looked there, even before I bothered you.

EDIT: For a couple of days or until this happens again, I’ll keep it with default values (5s for requests timeout and 3 for max retries). I’ll let you know.

That might not help much, if the endpoint times out within 5 seconds. Doesn’t really matter if it tries that three times :smiley:

Just keep the 10, should be fine.

OK. I’ll leave it with 10.

Thank you for your advice. I really appreciate it.

I noticed that you had said Max Retries above would be 3 by default, but even with the updates it was still 1, so I changed it to 3 manually. In other words, the default remains 1, it has not changed to 3.

Yeah I noticed that as well. Seems like the settings.xml defaults don’t get updated once you’ve seen them and have never set them. I’ll rename the setting keys for the next version so everyone gets the new updated values.

It’s not much of an issue, as the max_retries defaults have only been introduced in the 0.7.9 betas.

Edit: Oh, that was my bad. max_retries was set to default 3, but to 1 when interpreting the setting.

0.7.9-beta16.2: script.plexmod.zip (2.8 MB)

Temporary Changelog:

  • Core/AddonSettings: Split connect and read timeouts for Plex and Plex.tv connections; correctly set default max_retries to 3; New defaults: Plex (connect: 5s, read: 10s), Plex.tv (connect: 5s, read: 20s)
  • Core/AddonSettings: change stepping for non-local-check timeouts from 0.1 to 0.5

@MadVet please check if this works for you out of the box!

5 Likes

It seems to be working out of the box for me, indeed. I’ve just checked.

I can also confirm AddonSettings are according to described.

Thank you so much.

1 Like

Not sure if this is PM4K related or not.
I was trying to remap a few buttons on my TV remote using the Add-on:Keymap Editor.
In my case, I tried to remap the buttons green, yellow, and blue, but when using PM4K, it always defaults back to the default commands for those buttons when looking at the logs. Could it be hardcoded in the PM4K?

Hmm, no idea. We react to the onAction events sent by Kodi. I guess the keymap editor does the same, but we might receive the “raw” event.

Blockquote
2024-07-27 11:46:30.181 T:22953 debug : CAndroidKey: key down (dev: -1; src: 33554433; code: 185; repeat: 0; flags: 0x8; alt: no; shift: no; sym: no)
2024-07-27 11:46:30.248 T:22953 debug : CAndroidKey: key up (dev: -1; src: 33554433; code: 185; repeat: 0; flags: 0x8; alt: no; shift: no; sym: no)
2024-07-27 11:46:30.256 T:22954 debug : Keyboard: scancode: 0xb9, sym: 0x149, unicode: 0x00, modifier: 0x0
2024-07-27 11:46:30.256 T:22954 debug : HandleKey: yellow (0xf0e5) pressed, window 13006, action is ActivateWindow(Music)
2024-07-27 11:46:30.258 T:22954 debug : Activating window ID: 10502
2024-07-27 11:46:30.258 T:22954 info : Activate of window ‘10502’ refused because there are active modal dialogs

and

Blockquote
2024-07-27 11:46:25.997 T:22953 debug : CAndroidKey: key up (dev: -1; src: 33554433; code: 186; repeat: 0; flags: 0x8; alt: no; shift: no; sym: no)
2024-07-27 11:46:26.001 T:22954 debug : Keyboard: scancode: 0xba, sym: 0x14a, unicode: 0x00, modifier: 0x0
2024-07-27 11:46:26.001 T:22954 debug : HandleKey: blue (0xf0e6) pressed, window 13006, action is ActivateWindow(Pictures)
2024-07-27 11:46:26.001 T:22954 debug : Activating window ID: 10002
2024-07-27 11:46:26.001 T:22954 info : Activate of window ‘10002’ refused because there are active modal dialogs

This is the error I’m getting

And this is what the keymap editor created

<keymap>
	<fullscreenvideo>
		<keyboard>
			<key id="61669">subtitledelayminus</key>
			<key id="61670">subtitledelayplus</key>
			<key id="61668">info</key>
		</keyboard>
	</fullscreenvideo>
</keymap>

61669 = yellow
61670 = blue

Yeah, pretty certain I can’t change that.

Edit: Perhaps in the future I could allow mapping buttons to certain actions (such as I did with Home). But that’s a different ballpark. I’ll add it to the long term list of features.

I’ll try to ask in the support topic of the keyboard edit add-on if it exis, when I get home. Thx

Apply these settings in the Global tab of the Keymap editor

1 Like

Might still not work for their case. Kodi is trying to activate a window while we’re a modal dialog. Will probably not work.

On the android TV client, the Ch Pg button on my harmony remote brings up the OSD, would it be possible to add that in PM4K as a default please? Makes switching between clients smoother. Right now I press OK and that brings up the OSD.

Why not just press down? (needs the “Behave like Plex clients” option active)

I’ve just gotten used to it so it would be a nice thing to have. Not a big deal.

Ah so it’s a functionality of the official clients? If so, I’ll add it, for sure.

Yep. Cheers!