From 55e45f0e08eb81d695562b061849fb806559ee93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 9 Sep 2013 23:15:53 +0200 Subject: [PATCH] fix stream selection in radioob MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- weboob/applications/radioob/radioob.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weboob/applications/radioob/radioob.py b/weboob/applications/radioob/radioob.py index cdce2fee..8b7a9b39 100644 --- a/weboob/applications/radioob/radioob.py +++ b/weboob/applications/radioob/radioob.py @@ -83,12 +83,14 @@ class Radioob(ReplApplication): if not _id: print >>sys.stderr, 'This command takes an argument: %s' % self.get_command_help('play', short=True) return 2 - _stream_id = 0 if _stream_id: try: _stream_id = int(_stream_id) except: + _stream_id = 0 pass + else: + _stream_id = 0 radio = self.get_object(_id, 'get_radio', ['streams']) if not radio: