This commit is contained in:
Jonathan Baecker 2020-10-15 10:47:38 +02:00
parent 66234077a4
commit d15793f14e

View File

@ -84,13 +84,8 @@ class MediaWatcher:
def __init__(self, media):
self._media = media
print(_storage.extensions)
self.extensions = ['*{}'.format(ext) for ext in _storage.extensions]
print(self.extensions)
self.event_handler = PatternMatchingEventHandler(
patterns=self.extensions)
self.event_handler.on_created = self.on_created