1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-15 06:32:16 +00:00

fixed indenting with vim pymode plugin, woops (been a while for python)

This commit is contained in:
Emory P 2013-11-01 17:12:38 -04:00
parent 5252111e91
commit 3c1c26390b

View File

@ -23,10 +23,10 @@ class Scanner:
self.__deleted_tracks = 0 self.__deleted_tracks = 0
def scan(self, folder): def scan(self, folder):
print "scanning", folder.path print "scanning", folder.path
for root, subfolders, files in os.walk(folder.path, topdown=False): for root, subfolders, files in os.walk(folder.path, topdown=False):
for p in subfolders: for p in subfolders:
db.session.flush() db.session.flush()
for f in files: for f in files:
self.__scan_file(os.path.join(root, f), folder) self.__scan_file(os.path.join(root, f), folder)
folder.last_scan = int(time.time()) folder.last_scan = int(time.time())
@ -63,7 +63,7 @@ class Scanner:
self.__remove_track(tr) self.__remove_track(tr)
return return
else: else:
print "Added ", path print "Added ", path
tag = self.__try_load_tag(path) tag = self.__try_load_tag(path)
if not tag: if not tag:
return return