Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Accentuation in library path makes section mapping crash #129

Open
RomLecat opened this issue Dec 15, 2019 · 0 comments
Open

Accentuation in library path makes section mapping crash #129

RomLecat opened this issue Dec 15, 2019 · 0 comments
Labels

Comments

@RomLecat
Copy link

RomLecat commented Dec 15, 2019

Describe the bug
When Plex Autoscan tries to map Section ID to path, if path is containing an accentuation (such as "é"), it generates an exception.

To Reproduce
Have a library mapped to a path with "é" character.
Start a scan.

Expected behavior
Section mapping should be done properly.

Logs

 2019-12-15 19:41:44,281 -    ERROR -     UTILS [139817094105888]: Exception while trying to map 'REDACTED' to a Section ID in the Plex DB:
Traceback (most recent call last):
  File "/opt/plex_autoscan/utils.py", line 33, in get_plex_section
    if path.startswith(root_path + os.sep):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)

System Information

@RomLecat RomLecat added the Bug label Dec 15, 2019
@RomLecat RomLecat changed the title Accentuation in path makes Section mapping crash Accentuation in library path makes Section mapping crash Dec 15, 2019
@RomLecat RomLecat changed the title Accentuation in library path makes Section mapping crash Accentuation in library path makes section mapping crash Dec 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant