Remove some cruft in mpd module

This commit is contained in:
enkore 2014-08-04 01:45:02 +02:00
parent 0cfc680080
commit 92519b8d3e

View File

@ -40,7 +40,6 @@ class MPD(IntervalModule):
port = 6600
s = None
format = "{title} {status}"
format_sparse = None
status = {
"pause": "",
"play": "",
@ -48,7 +47,6 @@ class MPD(IntervalModule):
}
color = "#FFFFFF"
vol = 100
def _mpd_command(self, sock, command):
try:
@ -68,10 +66,6 @@ class MPD(IntervalModule):
except Exception as e:
return None
def init(self):
if not self.format_sparse:
self.format_sparse = self.format
def run(self):
try:
status = self._mpd_command(self.s, "status")