FIX leftover files from filtered out events

fixes #3
This commit is contained in:
boyska 2017-08-22 10:32:43 +02:00
parent 362e32464f
commit 3a034a0754

View file

@ -160,6 +160,9 @@ class Player:
filterok, reason = self.enqueue_filter(songs) filterok, reason = self.enqueue_filter(songs)
if not filterok: if not filterok:
self.log.debug('Ignoring <%s>, filtered: %s', nicks, reason) self.log.debug('Ignoring <%s>, filtered: %s', nicks, reason)
# delete those files
for uri in reversed(songs['uris']):
self.tmpcleaner.watch(uri.strip())
return return
mpd_client = self._get_mpd() mpd_client = self._get_mpd()
for uri in reversed(songs['uris']): for uri in reversed(songs['uris']):