[Bug 205696] multimedia/plexmediaserver localmedia agent fails when reading subtitles containing UTF-8 characters
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 29 14:25:27 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205696
Bug ID: 205696
Summary: multimedia/plexmediaserver localmedia agent fails when
reading subtitles containing UTF-8 characters
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: feld at FreeBSD.org
Reporter: freebsd at ettinsmoor.net
Flags: maintainer-feedback?(feld at FreeBSD.org)
Assignee: feld at FreeBSD.org
The out-of-the-box configuration of Plex on FreeBSD causes the localmedia agent
to barf when trying to read subtitles containing Unicode characters. In
"/usr/local/plexdata/Plex Media Server/Library/Logs/PMS Plugin
Logs/com.plexapp.agents.localmedia.log" you get something like:
CRITICAL (agentkit:1057) - Exception in the update function of agent named
'Local Media Assets (Movies)', called with guid
'com.plexapp.agents.imdb://tt1617661?lang=en' (most recent call last):
File
"bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py",
line 1055, in _update
File
"/usr/local/share/plexmediaserver/Resources/Plug-ins-f38ac80/LocalMedia.bundle/Contents/Code/__init__.py",
line 56, in update
localmedia.findSubtitles(part)
File
"/usr/local/share/plexmediaserver/Resources/Plug-ins-f38ac80/LocalMedia.bundle/Contents/Code/localmedia.py",
line 260, in findSubtitles
if os.path.isfile(os.path.join(path, file_path_listing)):
File
"/usr/local/share/plexmediaserver/Resources/Python/lib/python2.7/genericpath.py",
line 29, in isfile
st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 43-44:
ordinal not in range(128)
This can be fixed by editing the startup script
"/usr/local/etc/rc.d/plexmediaserver", changing the lines:
export LC_ALL="C"
export LANG="C"
to
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
This fix is described in the Plex forums here:
https://forums.plex.tv/discussion/comment/780533/#Comment_780533
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list