Merge pull request #350 from mkwardakov/mocp-refactor

Fix ending newline from mocp on some systems
This commit is contained in:
tobi-wan-kenobi 2019-01-16 20:10:36 +01:00 committed by GitHub
commit 61e64044b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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