beville / ComicStreamer

Apache License 2.0
168 stars 91 forks source link

Comic importing fails when images inside a comic book have non US characters in their names #14

Open kounch opened 10 years ago

kounch commented 10 years ago

If any image file inside a comic book archive has non US ASCII characters (e.g. "Cómic 001.jpg"), comic streamer importer fails with an exception at ComicStreamer/libs/comictaggerlib/comicarchive.py:

def getPageNameList( self , sort_list=True):
(...)
                files = natsorted(files, key=keyfunc,signed=False)

This is the exception that is raised when comic importing stops:

(...)in natsorted
    UnicodeDecodeError: 'ascii' codec can't decode byte (...