From owner-freebsd-ports-bugs@freebsd.org Tue Dec 29 14:25:27 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48B64A54278 for ; Tue, 29 Dec 2015 14:25:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FDB31777 for ; Tue, 29 Dec 2015 14:25:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tBTEPQrF054235 for ; Tue, 29 Dec 2015 14:25:26 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Tue, 29 Dec 2015 14:25:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: freebsd@ettinsmoor.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: feld@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2015 14:25:27 -0000 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.=