modify nihonnooto module to use the modified ICapRadio
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
5f76ea4eef
commit
6716787ad9
2 changed files with 19 additions and 6 deletions
|
|
@ -57,3 +57,10 @@ class NihonNoOtoBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
if rad.id == radio:
|
||||
return rad
|
||||
return None
|
||||
|
||||
def fill_radio(self, radio, fields):
|
||||
if 'current' in fields:
|
||||
return self.get_radio(radio.id)
|
||||
return radio
|
||||
|
||||
OBJECTS = {Radio: fill_radio}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue