Fix ending newline from mocp on some systems

This commit is contained in:
Michael Kwardakov 2019-01-16 07:42:44 +03:00
parent 18b0e793cb
commit f2052c21be

View file

@ -52,7 +52,7 @@ class Module(bumblebee.engine.Module):
def _load_song(self):
try:
self._info = bumblebee.util.execute("mocp -Q '" + self._format + "'" )
self._info = bumblebee.util.execute("mocp -Q '" + self._format + "'" ).strip()
self._running = 1
except RuntimeError:
self._running = 0