aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/moc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/moc.py')
-rw-r--r--src/plugins/moc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/moc.py b/src/plugins/moc.py
index 560370a..04bda65 100644
--- a/src/plugins/moc.py
+++ b/src/plugins/moc.py
@@ -58,7 +58,7 @@ class MOC:
Constructor
'''
self.__info = {}
- for line in spawn_read('mocp', '--info').split('\n'):
+ for line in MOC.__interact('--info').stdout.read().decode('utf-8', 'replace').split('\n'):
if ': ' in line:
line = line.split(': ')
self.__info[line[0]] = ': '.join(line[1:])
@@ -99,7 +99,7 @@ class MOC:
@return :Popen The spawned process
'''
command = ['mocp'] + list(args)
- return subprocess.Popen(command, stderr = sys.stderr, stdout = subprocess.PIPE)
+ return subprocess.Popen(command, stderr = subprocess.PIPE, stdout = subprocess.PIPE)
@staticmethod