fix fetching information of a video
This commit is contained in:
parent
79ab361d54
commit
56cc59cf5e
1 changed files with 3 additions and 2 deletions
|
|
@ -150,7 +150,8 @@ class Videoob(ReplApplication):
|
||||||
_id, backend_name = self.parse_id(_id)
|
_id, backend_name = self.parse_id(_id)
|
||||||
backend_names = (backend_name,) if backend_name is not None else self.enabled_backends
|
backend_names = (backend_name,) if backend_name is not None else self.enabled_backends
|
||||||
for backend, video in self.do('get_video', _id, backends=backend_names):
|
for backend, video in self.do('get_video', _id, backends=backend_names):
|
||||||
return video
|
if video:
|
||||||
|
return video
|
||||||
|
|
||||||
def do_play(self, _id):
|
def do_play(self, _id):
|
||||||
"""
|
"""
|
||||||
|
|
@ -189,7 +190,7 @@ class Videoob(ReplApplication):
|
||||||
|
|
||||||
video = self._get_video(_id)
|
video = self._get_video(_id)
|
||||||
if not video:
|
if not video:
|
||||||
print 'Video not found: ', _id
|
print 'Video not found:', _id
|
||||||
return
|
return
|
||||||
self.format(video)
|
self.format(video)
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue