Commit 347740c8 authored by Bezleputh's avatar Bezleputh

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

parent c751b80b
......@@ -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:
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):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment