mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-14 22:22:18 +00:00
fixed indenting with vim pymode plugin, woops (been a while for python)
This commit is contained in:
parent
5252111e91
commit
3c1c26390b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user