[Radioob] fix bug when a radio id contains a dot
This commit is contained in:
parent
c751b80bb6
commit
347740c831
1 changed files with 3 additions and 3 deletions
|
|
@ -293,7 +293,7 @@ class Radioob(ReplApplication):
|
||||||
print '%s\nRadio URL: %s' % (e, stream.url)
|
print '%s\nRadio URL: %s' % (e, stream.url)
|
||||||
|
|
||||||
def retrieve_obj(self, _id):
|
def retrieve_obj(self, _id):
|
||||||
|
obj = None
|
||||||
if self.interactive:
|
if self.interactive:
|
||||||
try:
|
try:
|
||||||
obj = self.objects[int(_id) - 1]
|
obj = self.objects[int(_id) - 1]
|
||||||
|
|
@ -303,9 +303,9 @@ class Radioob(ReplApplication):
|
||||||
|
|
||||||
m = ICapAudio.get_object_method(_id)
|
m = ICapAudio.get_object_method(_id)
|
||||||
if m:
|
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):
|
def do_playlist(self, line):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue