Comment 41 for bug 245836

Kuisathaverat (kuisathaverat) wrote :

this version works, it still has some problems with filenames with no ascii characters in de names

Traceback (most recent call last):
  File "gui/main.pyc", line 925, in onFolderTreeClicked
  File "gui/main.pyc", line 762, in SearchVideos
  File "FileManagement/FileScan.pyc", line 43, in ScanFilesFolders
  File "FileManagement/FileScan.pyc", line 91, in ScanFolder
  File "encodings/utf_8.pyc", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0303' in position 42: ordinal not in range(128)

I tried to upload the bundle but fails, i will tried tomorrow
i make changes in metadata.py

#!/usr/bin/env python
# Copyright (c) 2009 SubDownloader Developers - See COPYING - GPLv3

import logging

log = logging.getLogger("subdownloader.modules.metadata")
try:
    import kaa.metadata as metadata
except ImportError:
    try:
        import mmpython as metadata
    except ImportError:
        log.warning("Failed to import metadata module. This means you will be unable to upload your videos with all details.")

# expose metadata parsing method for global usage
def parse(filepath):
 try:
  return metadata.parse(filepath)
 except:
  log.warning("Failed to import metadata module. This means you will be unable to upload your videos with all details.")
  return 1