From c5d722cce9b5ac007d3038af03cffa4dacc6307a Mon Sep 17 00:00:00 2001 From: RandomRhythm Date: Sun, 15 Dec 2024 15:36:46 -0700 Subject: [PATCH] Update plex_dupefinder.py - fix no episode number fix https://github.com/l3uddz/plex_dupefinder/issues/76 --- plex_dupefinder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plex_dupefinder.py b/plex_dupefinder.py index dcdb01b..22ca84b 100755 --- a/plex_dupefinder.py +++ b/plex_dupefinder.py @@ -348,6 +348,11 @@ def build_tabulated(parts, items): # loop returned duplicates for item in dupes: if item.type == 'episode': + if item.index == None: + #print(f"error on {item.seasonEpisode} of {item.grandparentTitle} - no item index") + title = "%s - %02dx%02d - %s" % ( + item.grandparentTitle, int(item.parentIndex), -1, item.title) + continue title = "%s - %02dx%02d - %s" % ( item.grandparentTitle, int(item.parentIndex), int(item.index), item.title) elif item.type == 'movie':