Expose collected data in moc module

This commit is contained in:
Raphael Scholer 2016-10-14 02:41:44 +02:00
parent 0df4882ba0
commit 4ca3112331

View File

@ -79,11 +79,16 @@ class Moc(IntervalModule):
'tracknumber': re.match(r'(\d*).*', response.get('Title', '')).group(1) or 0,
}
self.data = fdict
self.output = {
'full_text': formatp(self.format, **fdict),
'full_text': formatp(self.format, **data),
'color': self.color,
}
else:
if hasattr(self, "data"):
del self.data
self.output = {
'full_text': self.format_not_running,
'color': self.color_not_running,