1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00

Fixed scanner scanning untouched files

This commit is contained in:
spl0k 2014-06-12 14:25:58 +02:00
parent c29a2284b8
commit d1d3d4416e

View File

@ -87,7 +87,7 @@ class Scanner:
tr = filter(lambda t: t.path == path, self.__tracks) tr = filter(lambda t: t.path == path, self.__tracks)
if tr: if tr:
tr = tr[0] tr = tr[0]
if not os.path.getmtime(path) > tr.last_modification: if not int(os.path.getmtime(path)) > tr.last_modification:
return return
tag = self.__try_load_tag(path) tag = self.__try_load_tag(path)