Expose collected data in moc module
This commit is contained in:
parent
0df4882ba0
commit
4ca3112331
@ -79,11 +79,16 @@ class Moc(IntervalModule):
|
|||||||
'tracknumber': re.match(r'(\d*).*', response.get('Title', '')).group(1) or 0,
|
'tracknumber': re.match(r'(\d*).*', response.get('Title', '')).group(1) or 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.data = fdict
|
||||||
|
|
||||||
self.output = {
|
self.output = {
|
||||||
'full_text': formatp(self.format, **fdict),
|
'full_text': formatp(self.format, **data),
|
||||||
'color': self.color,
|
'color': self.color,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
if hasattr(self, "data"):
|
||||||
|
del self.data
|
||||||
|
|
||||||
self.output = {
|
self.output = {
|
||||||
'full_text': self.format_not_running,
|
'full_text': self.format_not_running,
|
||||||
'color': self.color_not_running,
|
'color': self.color_not_running,
|
||||||
|
Loading…
Reference in New Issue
Block a user