mirror of https://github.com/morpheus65535/bazarr
Fix for #709.
This commit is contained in:
parent
26b48b1759
commit
133787cf23
|
@ -462,6 +462,15 @@ elif sys.platform.startswith(('linux', 'darwin', 'sunos5')) or 'bsd' in sys.plat
|
|||
@property
|
||||
def path(self):
|
||||
if self._path is None:
|
||||
# Make sure both attributes are string
|
||||
try:
|
||||
self._scandir_path = self._scandir_path.decode(encoding="utf-8")
|
||||
except (UnicodeDecodeError, AttributeError):
|
||||
pass
|
||||
try:
|
||||
self.name = self.name.decode(encoding="utf-8")
|
||||
except (UnicodeDecodeError, AttributeError):
|
||||
pass
|
||||
self._path = join(self._scandir_path, self.name)
|
||||
return self._path
|
||||
|
||||
|
|
Loading…
Reference in New Issue