Private GIT

Skip to content
Snippets Groups Projects
Commit 9e6ba950 authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

Fix subliminal not working properly on Windows.

parent 5bdd364a
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,10 @@ class Video(object):
self._path = None
self.hashes = {}
if sys.platform == 'win32':
if isinstance(path, str):
path = unicode(path.encode('utf-8'))
else:
if isinstance(path, unicode):
path = path.encode('utf-8')
......@@ -228,6 +232,10 @@ def scan(entry, max_depth=3, scan_filter=None, depth=0):
"""
if sys.platform == 'win32':
if isinstance(entry, str):
entry = unicode(entry.encode('utf-8'))
else:
if isinstance(entry, unicode):
entry = entry.encode('utf-8')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment