cc-4105: Added problem dir moving. Also locale config from old media monitor

This commit is contained in:
Rudi Grinberg 2012-07-20 11:13:18 -04:00
parent 4525bd5e4c
commit 9964c826ab
7 changed files with 53 additions and 9 deletions

View file

@ -38,6 +38,12 @@ class Bootstrapper(Loggable):
for pc in self.watch_channels:
for f in mmp.walk_supported(pc.path, clean_empties=False):
songs.add(f)
# We decide whether to update a file's metadata by checking
# its system modification date. If it's above the value
# self.last_run which is passed to us that means media monitor
# wasn't aware when this changes occured in the filesystem
# hence it will send the correct events to sync the database
# with the filesystem
if os.path.getmtime(f) > self.last_ran:
modded += 1
dispatcher.send(signal=pc.signal, sender=self, event=DeleteFile(f))