This is the problem with VideoFile object. It's _filepath attribute is one time encoded as a 'str' and other time as 'unicode'.
The fix:
in source: FileManagement/FileScan.py:
def ScanFolder(folderpath, recursively=True, report_progress=None, progress_end=None):
+ if (type(folderpath) is not str):
+ folderpath = folderpath.encode(sys.getfilesystemencoding())
# Let's reset the progress bar to 0%
log.debug("Scanning Folder %s" % folderpath)
This is the problem with VideoFile object. It's _filepath attribute is one time encoded as a 'str' and other time as 'unicode'.
The fix: FileScan. py:
in source: FileManagement/
def ScanFolder( folderpath, recursively=True, report_ progress= None, progress_end=None): encode( sys.getfilesyst emencoding( )) debug(" Scanning Folder %s" % folderpath)
+ if (type(folderpath) is not str):
+ folderpath = folderpath.
# Let's reset the progress bar to 0%
log.
in source modules/ videofile. py:
=== modified file 'modules/ videofile. py' videofile. py 2011-02-13 09:15:02 +0000 videofile. py 2014-06-01 14:33:54 +0000
--- modules/
+++ modules/
@@ -25,6 +25,9 @@
def __init__(self, filepath):
self. _filepath = filepath encode( sys.getfilesyst emencoding( )) getsize( filepath) SDBHash( )
+ if (type(filepath) is not str):
+ import sys
+ self._filepath = filepath.
self._size = os.path.
self._hash = self.calculateO
try: