nomego / Lazyman.bundle

Lazyman Plex Channel
105 stars 24 forks source link

Error on recap playback #25

Closed Thracky closed 6 years ago

Thracky commented 6 years ago

When attempting to play recaps on the latest version running on PMS 1.9.4.4325 (and at least back to 1.9.2) I notice the following error:

2017-10-11 11:50:04,235 (7f6e8d7fa700) : DEBUG (runtime:125) - Calling function 'RecapMetadata' 2017-10-11 11:50:04,236 (7f6e8d7fa700) : CRITICAL (sandbox:303) - Exception when calling function 'RecapMetadata' (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-1bf240a65/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 294, in call_named_function result = f(*args, **kwargs) TypeError: RecapMetadata() got an unexpected keyword argument 'includeBandwidths' Quick solution for me which seemed to work (though I'll admit I have zero actual knowledge of the Plex API) was to add includeBandwidths to the RecapMetadata function signature as follows:

def RecapMetadata(type, date, recapid, sport, includeBandwidths=None):

nomego commented 6 years ago

Is this only happening for recaps? NHL and/or MLB?

But you're welcome to send a PR!

Thracky commented 6 years ago

Have just confirmed that it is also present on MLB recaps, but only recaps. I'll send a PR with my fix.

nomego commented 6 years ago

Pr merged, reopen if still an issue.