ukdtom / WebTools.bundle

WebTools is a collection of tools for Plex Media Server. Like the Unsupported AppStore (UAS)
https://forums.plex.tv/discussion/288191
Mozilla Public License 2.0
1.3k stars 170 forks source link

The FindMedia tool is showing file with foreign characters (ë,é,ö,ñ etc) as missing. #468

Closed alexander-paterson closed 5 years ago

alexander-paterson commented 6 years ago

Environment

Error shown

capture

ukdtom commented 6 years ago

Need logs!

alexander-paterson commented 6 years ago

Are there logs in particular I need to upload or just the main Plex logs?

ukdtom commented 6 years ago

The WebTools logs, in a zip, since they roll over

alexander-paterson commented 6 years ago

PMS Plugin Logs.zip

Hopefully this is what you need?

ukdtom commented 6 years ago

Sorry about the delay in responding here.... Sidetracked by real work :(

But logs are perfect, and I'll look into this

ukdtom commented 6 years ago

Note to self: Seems like on OSx, the language is reported as None?

rcork commented 6 years ago

Same issue here with Les Misérables. Logs attached screenshot Archive.zip

ukdtom commented 6 years ago

Hi there, care to try this very experimental build, and do note, that Playlist module might be broken in this, since that's work in progress

https://github.com/ukdtom/WebTools.bundle/archive/tommy-464.zip

You'll need to replace the existing WebTools bundle with this one

Please report back both good and bad....

And FUI, it seems like on Mac OSx, the lang variable is not set, so I try and force filesystem encoding in WebTools to utf-8 with this

ukdtom commented 6 years ago

And regarless of it works or not, I'll need a zip with all the WebTools logs

rcork commented 6 years ago

I get a critical error in the plugin at start up. Looks like reload is not defined

2018-02-25 08:52:08,045 (7fff9fafe340) : CRITICAL (sandbox:303) - Exception when calling function 'Start' (most recent call last): File "/Applications/Plex Media Server.app/Contents/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 294, in call_named_function result = f(*args, **kwargs) File "/Users/rob/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle/Contents/Code/__init__.py", line 87, in Start reload(sys) NameError: global name 'reload' is not defined

I tried commenting out the reload(sys) call and it let the plugin start normally and i see that it went down the code path where locale.getpreferredencoding is not set but it still can't match Les Misérables.

I wasn't sure if this was an issue with python 2.x vs 3.x so i tried changing to imp.reload(sys) and importlib.reload(sys) but got the same critical error.

com.plexapp.plugins.WebTools.log

rcork commented 6 years ago

Interesting article on this setdefaultencoding "hack". Sounds like python 3 fixes a lot of this ascii vs utf-8 headache.

https://anonbadger.wordpress.com/2015/06/16/why-sys-setdefaultencoding-will-break-code/

ukdtom commented 6 years ago

Darn, and thanks for testing, and sadly, I have to keep it at Python 2, since that's what the framework is.

I'll try some more here

ukdtom commented 5 years ago

Sadly, dev work has been put on hold, due to plugins been discontinued by Plex

Ref: https://www.plex.tv/blog/subtitles-and-sunsets-big-improvements-little-housekeeping/

No new versions will be release, and this project has been put on hold

UAS will still be maintained for as long as it lasts