fix description data removal from audioaddict API
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
72f4e6c224
commit
8e3ababc74
1 changed files with 2 additions and 3 deletions
|
|
@ -169,7 +169,6 @@ class AudioAddictModule(Module, CapRadio, CapCollection):
|
|||
radio = info['key']
|
||||
self.RADIOS[selectedNetwork][radio] = {}
|
||||
self.RADIOS[selectedNetwork][radio]['id'] = info['id']
|
||||
self.RADIOS[selectedNetwork][radio]['description'] = info['description']
|
||||
self.RADIOS[selectedNetwork][radio]['name'] = info['name']
|
||||
self.RADIOS[selectedNetwork][radio]['playlist'] = info['playlist']
|
||||
|
||||
|
|
@ -182,7 +181,7 @@ class AudioAddictModule(Module, CapRadio, CapCollection):
|
|||
for network in self.config['networks'].get().split():
|
||||
for radio in self.RADIOS[network]:
|
||||
radio_dict = self.RADIOS[network][radio]
|
||||
if pattern in radio_dict['name'].lower() or pattern in radio_dict['description'].lower():
|
||||
if pattern in radio_dict['name'].lower() :
|
||||
yield self.get_radio(radio+"."+network)
|
||||
|
||||
def iter_resources(self, objs, split_path):
|
||||
|
|
@ -234,7 +233,7 @@ class AudioAddictModule(Module, CapRadio, CapCollection):
|
|||
|
||||
radio_dict = self.RADIOS[network][radioName]
|
||||
radio.title = radio_dict['name']
|
||||
radio.description = radio_dict['description']
|
||||
radio.description = radio_dict['name']
|
||||
|
||||
artist, title = self.get_current(network, radioName)
|
||||
current = StreamInfo(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue