VideoClipObject - IncludeRelated, IncludeRelatedCount - Android client

Hi I’ve recently had a problem that I think I’ve solved on my NextPVR channel for plex.

Users with android devices would have issues with playback. And it looked like the android client was passing two extra parameters IncludeRelated and IncludeRelatedCount.

Are these known parameters? No other client I’ve experienced seem to pass them.

I’ve seen this with the Android client as well. No other client does this. I’m not sure why it’s doing this, but it hasn’t been a problem with channel devving for me. Are there any problems you run into because of those extra parameters?

Yeah it was crashing a call to play video. I had to add the parms to the createvideoobject method I had and ignore them so it didn’t crash.

Instead of adding the exact “missing” parameters to my functions, I usually have added **kwargs (example) at the end of the function/parameters declaration. That way it’ll keep working, even if anything new is (accidentally) added later in time.

@sander1 said:
Instead of adding the exact “missing” parameters to my functions, I usually have added **kwargs (example) at the end of the function/parameters declaration. That way it’ll keep working, even if anything new is (accidentally) added later in time.

python - What does ** (double star/asterisk) and * (star/asterisk) do for parameters? - Stack Overflow

Ahh, cool, good tip.

Hi,

Actually, having this issue right now … ;-). And I checked the logs, yep, this is an issue. Do you have a fix for it? If not I can try to modify the code locally.

Thanks!

FYI, I have it working locally now - not sure if you want the input for your code or not. More than happy to provide it though, if it helps.

Thanks!

I do have a version I was supposed to add to GitHub but I think was supposed to change it from naming the problem arguments to kwargs

NP! Have it working here, if you want the minor changes.

I also made some local updates, to show the thumbs in the Recordings menu also - again, completely your call. Minor updates to an excellent plug-in.

Thanks!

Sure if you have some updates. Pm me if you just want to post it and I’ll update git hub with it.