Describe the bug
in keep_item, it is expecting a "s", "b" or a number. If you type ss by mistake, you will get
Choose item to keep (0 or s = skip | 1 or b = best): ss
Traceback (most recent call last):
File "./plex_dupefinder.py", line 413, in
if (keep_item.lower() != 's') and (keep_item.lower() == 'b' or 0 < int(keep_item) <= len(media_items)):
ValueError: invalid literal for int() with base 10: 'ss'
To Reproduce
Start plex_dupefinder
Get to an entry
Enter "ss" for example
Expected behavior
Either reask for input (it should validate that the input is correct) and prompt (ideally) or skip with unexpected
Screenshots
Choose item to keep (0 or s = skip | 1 or b = best): ss
Traceback (most recent call last):
File "./plex_dupefinder.py", line 413, in
if (keep_item.lower() != 's') and (keep_item.lower() == 'b' or 0 < int(keep_item) <= len(media_items)):
ValueError: invalid literal for int() with base 10: 'ss'
Logs
Link to debug or trace log files.
You can enable debug mode by adding --loglevel=DEBUG to the run command.
Describe the bug in keep_item, it is expecting a "s", "b" or a number. If you type ss by mistake, you will get Choose item to keep (0 or s = skip | 1 or b = best): ss Traceback (most recent call last): File "./plex_dupefinder.py", line 413, in
if (keep_item.lower() != 's') and (keep_item.lower() == 'b' or 0 < int(keep_item) <= len(media_items)):
ValueError: invalid literal for int() with base 10: 'ss'
To Reproduce
Expected behavior Either reask for input (it should validate that the input is correct) and prompt (ideally) or skip with unexpected
Screenshots Choose item to keep (0 or s = skip | 1 or b = best): ss Traceback (most recent call last): File "./plex_dupefinder.py", line 413, in
if (keep_item.lower() != 's') and (keep_item.lower() == 'b' or 0 < int(keep_item) <= len(media_items)):
ValueError: invalid literal for int() with base 10: 'ss'
Logs Link to debug or trace log files.
You can enable debug mode by adding
--loglevel=DEBUG
to the run command.System Information
900d4a0
Additional context Add any other context about the problem here.