Skip to content

Update plex_dupefinder.py - fix no episode number#80

Open
RandomRhythm wants to merge 1 commit intol3uddz:masterfrom
RandomRhythm:patch-1
Open

Update plex_dupefinder.py - fix no episode number#80
RandomRhythm wants to merge 1 commit intol3uddz:masterfrom
RandomRhythm:patch-1

Conversation

@RandomRhythm
Copy link

fix #76

Error processing unattributed TV episode:

  File "C:\git\plex_dupefinder\plex_dupefinder.py", line 353, in <module>
    item.grandparentTitle, int(item.parentIndex), int(item.index), item.title)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

The above errors happens when an episode is encountered that does not have season/episode number attribution. Example:

<Episode:81092:Animals-Unscripted-s2024eNone>

Not much can be done by dupefinder since there is no episode attribution. Decided against printing or logging an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error int(item.index) when it doesn't exists

1 participant