Just a minor issue I'm sure, but the following error was raised when a movie finished playing and there was nothing queued for afterwards:
INFO - Found ended session 63 [157736] (Luck) Roku|dddf31cbe30050cccbb61462054c09e2 that has reached the end of its duration 6324266 with viewOffset 6299801 with skip-next enabled, will skip to next
ERROR - Exception, removing from cache to prevent false triggers, will be restored with next sync
Traceback (most recent call last):
File "C:\Users\Alain Bryden\Utilities\Plex\PlexAutoSkip\resources\skipper.py", line 217, in _seekTo
self.seekPlayerTo(mediaWrapper.player, mediaWrapper, targetOffset)
File "C:\Users\Alain Bryden\Utilities\Plex\PlexAutoSkip\resources\skipper.py", line 232, in seekPlayerTo
return self.skipPlayerTo(player, mediaWrapper, pq, server)
File "C:\Users\Alain Bryden\Utilities\Plex\PlexAutoSkip\resources\skipper.py", line 307, in skipPlayerTo
if mediaWrapper.media.type == "episode" and not pq or not pq.items:
AttributeError: 'NoneType' object has no attribute 'items'
Looks like you have a pre-check on pq here, but it might be an order of operations issue, e.g. you might have intended to go:
if mediaWrapper.media.type == "episode" and (not pq or not pq.items):
Just a minor issue I'm sure, but the following error was raised when a movie finished playing and there was nothing queued for afterwards:
Looks like you have a pre-check on pq here, but it might be an order of operations issue, e.g. you might have intended to go:
if mediaWrapper.media.type == "episode" and (not pq or not pq.items):