utf problem fixed by NaN for mime
This commit is contained in:
@@ -193,6 +193,8 @@ def add_single(conn,filename,change=False,hash=None,minsize=0):
|
|||||||
except IOError:
|
except IOError:
|
||||||
print("File not found. Bad link?")
|
print("File not found. Bad link?")
|
||||||
return
|
return
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
mime="NA"
|
||||||
|
|
||||||
if change:
|
if change:
|
||||||
db.execute("UPDATE list SET date=?, hash=?, size=?, mime=? \
|
db.execute("UPDATE list SET date=?, hash=?, size=?, mime=? \
|
||||||
|
|||||||
Reference in New Issue
Block a user