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

library path makes section mapping crash #164

Open
Antaneyes opened this issue Mar 3, 2021 · 3 comments
Open

library path makes section mapping crash #164

Antaneyes opened this issue Mar 3, 2021 · 3 comments
Labels

Comments

@Antaneyes
Copy link

Describe the bug
when I put something new in drive, it generates an exception.

To Reproduce
add something to the drive

Expected behavior
Section mapping should be done properly.

Logs
ERROR - UTILS [139967663843072]: Exception while trying to map 'Mi unidad/Joshua/Plex/Peliculas/Copia de El prado.mkv' 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 48: ordinal not in range(128)

System Information

  • Plex Autoscan Version: master
  • Operating System: Ubuntu Server 16.04 LTS
@Antaneyes Antaneyes added the Bug label Mar 3, 2021
@Tomarok
Copy link

Tomarok commented Apr 10, 2021

Same problem for me

@bison529
Copy link

I found this solution in Discord:

in utils.py in /plex_autoscan i added the following 2 lines :

reload(sys)
sys.setdefaultencoding("utf-8")

@Tomarok
Copy link

Tomarok commented Apr 13, 2021

Work for me, thanks @bison529

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

3 participants