cc-4359: normpath'd music dir before passing it to manager.py to remove
watch
This commit is contained in:
parent
0ab08af48f
commit
259a3eb792
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from kombu.messaging import Exchange, Queue, Consumer
|
||||
from kombu.connection import BrokerConnection
|
||||
from os.path import normpath
|
||||
|
||||
import json
|
||||
import os
|
||||
|
@ -133,7 +134,7 @@ class AirtimeMessageReceiver(Loggable):
|
|||
def remove_watch(self, msg):
|
||||
self.logger.info("Removing watch from directory: '%s'" %
|
||||
msg['directory'])
|
||||
self.manager.remove_watch_directory(msg['directory'])
|
||||
self.manager.remove_watch_directory(normpath(msg['directory']))
|
||||
|
||||
def rescan_watch(self, msg):
|
||||
self.logger.info("Trying to rescan watched directory: '%s'" %
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue