fix description data removal from audioaddict API

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2014-12-15 18:48:54 +01:00 committed by Florent
commit 8e3ababc74

View file

@ -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)