[Radioob] fix bug when a radio id contains a dot

This commit is contained in:
Bezleputh 2014-06-19 11:58:45 +02:00
commit 347740c831

View file

@ -293,7 +293,7 @@ class Radioob(ReplApplication):
print '%s\nRadio URL: %s' % (e, stream.url)
def retrieve_obj(self, _id):
obj = None
if self.interactive:
try:
obj = self.objects[int(_id) - 1]
@ -303,9 +303,9 @@ class Radioob(ReplApplication):
m = ICapAudio.get_object_method(_id)
if m:
return self.get_object(_id, m)
obj = self.get_object(_id, m)
return self.get_object(_id, 'get_radio')
return obj if obj is not None else self.get_object(_id, 'get_radio')
def do_playlist(self, line):
"""