Private GIT

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

Merge branch 'abeloin-patch-subliminal_ascii_error_master'

parents 019a8b36 649821f7
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,8 @@ class Video(object):
self._path = None
self.hashes = {}
if isinstance(path, str):
path = unicode(path.encode('utf-8'))
if isinstance(path, unicode):
path = path.encode('utf-8')
self.release = path
......@@ -228,8 +228,8 @@ def scan(entry, max_depth=3, scan_filter=None, depth=0):
"""
if isinstance(entry, str):
entry = unicode(entry.encode('utf-8'))
if isinstance(entry, unicode):
entry = entry.encode('utf-8')
if depth > max_depth and max_depth != 0: # we do not want to search the whole file system except if max_depth = 0
return []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment