Skip to content

Special Character causes a crash during scanning #442

@efalsken

Description

@efalsken

Scanner Log:

Jun 19, 2023 20:38:38.554 [140589647653696] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
  File "/config/Library/Application Support/Plex Media Server/Scanners/Series/Absolute Series Scanner.py", line 1316, in Scan
    Scan(path, sorted(subdir_files), media, sorted(subdir_dirs), language=language, root=root, kwargs_trigger=True)  #relative path for dir or it will show only grouping folder series
  File "/config/Library/Application Support/Plex Media Server/Scanners/Series/Absolute Series Scanner.py", line 1190, in Scan
    standard_holding.append([file, root, path, show, season, int(ep), title, year, int(ep2) if ep2 and ep2.isdigit() else None, rx, tvdb_mapping, unknown_series_length, offset_season, offset_episode, mappingList])
ValueError: invalid literal for int() with base 10: '\xb2'
Jun 19, 2023 20:38:38.561 [140589647653696] ERROR - We got an error scanning in /data/Videos/Anime
Jun 19, 2023 20:40:09.080 [140589647653696] WARN - Scanning the location /data/Videos/Anime did not complete

The file in question was: [Anime Time] Neon Genesis Evangelion - Death (True)².mkv

Apparently, the code that was trying to identify the episode number thought that the ^2 superscript was a digit. I'd recommend an extra regex filter [0-9] if your environment not support the \d subclass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions