mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-13 07:32:52 +00:00
Another fix for #709.
This commit is contained in:
parent
d4fdee1e9f
commit
5dc8facae7
1 changed files with 2 additions and 2 deletions
|
@ -464,11 +464,11 @@ elif sys.platform.startswith(('linux', 'darwin', 'sunos5')) or 'bsd' in sys.plat
|
||||||
if self._path is None:
|
if self._path is None:
|
||||||
# Make sure both attributes are string
|
# Make sure both attributes are string
|
||||||
try:
|
try:
|
||||||
self._scandir_path = self._scandir_path.decode(encoding="utf-8")
|
self._scandir_path = self._scandir_path.decode('unicode_escape')
|
||||||
except (UnicodeDecodeError, AttributeError):
|
except (UnicodeDecodeError, AttributeError):
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
self.name = self.name.decode(encoding="utf-8")
|
self.name = self.name.decode('unicode_escape')
|
||||||
except (UnicodeDecodeError, AttributeError):
|
except (UnicodeDecodeError, AttributeError):
|
||||||
pass
|
pass
|
||||||
self._path = join(self._scandir_path, self.name)
|
self._path = join(self._scandir_path, self.name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue