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:
|
||||
print("File not found. Bad link?")
|
||||
return
|
||||
except UnicodeDecodeError:
|
||||
mime="NA"
|
||||
|
||||
if change:
|
||||
db.execute("UPDATE list SET date=?, hash=?, size=?, mime=? \
|
||||
|
||||
Reference in New Issue
Block a user