Remove some cruft in mpd module
This commit is contained in:
parent
0cfc680080
commit
92519b8d3e
@ -40,7 +40,6 @@ class MPD(IntervalModule):
|
|||||||
port = 6600
|
port = 6600
|
||||||
s = None
|
s = None
|
||||||
format = "{title} {status}"
|
format = "{title} {status}"
|
||||||
format_sparse = None
|
|
||||||
status = {
|
status = {
|
||||||
"pause": "▷",
|
"pause": "▷",
|
||||||
"play": "▶",
|
"play": "▶",
|
||||||
@ -48,7 +47,6 @@ class MPD(IntervalModule):
|
|||||||
}
|
}
|
||||||
color = "#FFFFFF"
|
color = "#FFFFFF"
|
||||||
|
|
||||||
vol = 100
|
|
||||||
|
|
||||||
def _mpd_command(self, sock, command):
|
def _mpd_command(self, sock, command):
|
||||||
try:
|
try:
|
||||||
@ -68,10 +66,6 @@ class MPD(IntervalModule):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def init(self):
|
|
||||||
if not self.format_sparse:
|
|
||||||
self.format_sparse = self.format
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
status = self._mpd_command(self.s, "status")
|
status = self._mpd_command(self.s, "status")
|
||||||
|
Loading…
Reference in New Issue
Block a user