diff --git a/python_apps/media-monitor2/media/metadata/process.py b/python_apps/media-monitor2/media/metadata/process.py index 74d008b66..a9c251944 100644 --- a/python_apps/media-monitor2/media/metadata/process.py +++ b/python_apps/media-monitor2/media/metadata/process.py @@ -170,7 +170,7 @@ def normalize_mutagen(path): md['mime'] = m.mime[0] if len(m.mime) > 0 else u'' md['path'] = normpath(path) - # silence detect(set default queue in and out) + # silence detect(set default cue in and out) try: command = ['silan', '-f', 'JSON', md['path']] proc = subprocess.Popen(command, stdout=subprocess.PIPE) diff --git a/python_apps/media-monitor2/media/monitor/pure.py b/python_apps/media-monitor2/media/monitor/pure.py index e808783a6..31863ac2b 100644 --- a/python_apps/media-monitor2/media/monitor/pure.py +++ b/python_apps/media-monitor2/media/monitor/pure.py @@ -166,7 +166,8 @@ def walk_supported(directory, clean_empties=False): def file_locked(path): - proc = Popen(["lsof", '"%s"' % path], stdout=PIPE) + #Capture stderr to avoid polluting py-interpreter.log + proc = Popen(["lsof", path], stdout=PIPE, stderr=PIPE) out = proc.communicate()[0].strip('\r\n') return bool(out)