1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 17:06:17 +00:00

Scanner: exposing scan_file

This commit is contained in:
spl0k 2014-06-11 17:55:01 +02:00
parent 21f14a6dc1
commit f2ca878301

View File

@ -49,7 +49,7 @@ class Scanner:
current = 0
for path in files:
self.__scan_file(path)
self.scan_file(path)
current += 1
if progress_callback:
progress_callback(current, total)
@ -83,7 +83,7 @@ class Scanner:
return True
return os.path.splitext(path)[1][1:].lower() in self.__extensions
def __scan_file(self, path):
def scan_file(self, path):
tr = filter(lambda t: t.path == path, self.__tracks)
if tr:
tr = tr[0]