Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2015 14:25:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 205696] multimedia/plexmediaserver localmedia agent fails when reading subtitles containing UTF-8 characters
Message-ID:  <bug-205696-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205696

            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@FreeBSD.org
          Reporter: freebsd@ettinsmoor.net
             Flags: maintainer-feedback?(feld@FreeBSD.org)
          Assignee: feld@FreeBSD.org

The out-of-the-box configuration of Plex on FreeBSD causes the localmedia a=
gent
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=3Den' (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.bun=
dle/Contents/Code/__init__.py",
line 56, in update
    localmedia.findSubtitles(part)
  File
"/usr/local/share/plexmediaserver/Resources/Plug-ins-f38ac80/LocalMedia.bun=
dle/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/genericpat=
h.py",
line 29, in isfile
    st =3D 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=3D"C"
export LANG=3D"C"

to

export LC_ALL=3D"en_US.UTF-8"
export LANG=3D"en_US.UTF-8"

This fix is described in the Plex forums here:
https://forums.plex.tv/discussion/comment/780533/#Comment_780533

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205696-13>