diff --git a/resources/lib/plex_functions.py b/resources/lib/plex_functions.py index 27f1ab04..7d644d8a 100644 --- a/resources/lib/plex_functions.py +++ b/resources/lib/plex_functions.py @@ -48,10 +48,9 @@ def GetPlexKeyNumber(plexKey): try: result = utils.REGEX_END_DIGITS.findall(plexKey)[0] except IndexError: - result = (None, None) + return (None, None) else: - result[1] = utils.cast(int, result[1]) - return result + return (result[0], utils.cast(int, result[1])) def ParseContainerKey(containerKey):