From 8e3ababc746334a606a6e34abb0587fdd4f0e293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 15 Dec 2014 18:48:54 +0100 Subject: [PATCH] fix description data removal from audioaddict API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- modules/audioaddict/module.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/audioaddict/module.py b/modules/audioaddict/module.py index 7ac1498d..933144a6 100644 --- a/modules/audioaddict/module.py +++ b/modules/audioaddict/module.py @@ -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)