Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ironwoox opened this issue Feb 25, 2024 · 0 comments · May be fixed by #80
Open

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

ironwoox opened this issue Feb 25, 2024 · 0 comments · May be fixed by #80
Labels

Comments

@ironwoox
Copy link

Describe the bug
I ran Dupefinder on new TV Show libary and recived the following error.

line 352, in
item.grandparentTitle, int(item.parentIndex), int(item.index), item.title)
^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

However I'm total pleb. I asked ChatGPT and it provided me with this

title = "%s - %02dx%02d - %s" % (
    item.grandparentTitle, int(item.parentIndex) if item.parentIndex is not None else 0, int(item.index) if item.index is not None else 0, item.title)

and it fixed my issue. and I decided to share it here

@ironwoox ironwoox added the Bug label Feb 25, 2024
RandomRhythm added a commit to RandomRhythm/plex_dupefinder that referenced this issue Dec 15, 2024
@RandomRhythm RandomRhythm linked a pull request Dec 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant