From 56cc59cf5ebf0dc00a19bd190da7b6bd940c8d3b Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 26 Sep 2010 21:35:11 +0200 Subject: [PATCH] fix fetching information of a video --- weboob/applications/videoob/videoob.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index 0eb897ae..bfccb6ec 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -150,7 +150,8 @@ class Videoob(ReplApplication): _id, backend_name = self.parse_id(_id) 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): - return video + if video: + return video def do_play(self, _id): """ @@ -189,7 +190,7 @@ class Videoob(ReplApplication): video = self._get_video(_id) if not video: - print 'Video not found: ', _id + print 'Video not found:', _id return self.format(video) self.flush()