fix fillobj

This commit is contained in:
Romain Bignon 2010-11-09 11:58:01 +01:00
commit f41d8c516c
2 changed files with 6 additions and 7 deletions

View file

@ -50,6 +50,7 @@ class CanalplusBackend(BaseBackend, ICapVideo):
return self.browser.get_video(_id) return self.browser.get_video(_id)
def fill_video(self, video, fields): def fill_video(self, video, fields):
return self.browser.get_video(CanalplusVideo.id2url(video.id)) with self.browser:
return self.browser.get_video(CanalplusVideo.id2url(video.id), video)
OBJECTS = {CanalplusVideo: fill_video} OBJECTS = {CanalplusVideo: fill_video}

View file

@ -26,8 +26,6 @@ class VideoPage(BasePage):
def get_video(self, video, quality): def get_video(self, video, quality):
if not video: if not video:
video = CanalplusVideo(self.group_dict['id']) video = CanalplusVideo(self.group_dict['id'])
print quality
print video.id
for vid in self.document.getchildren(): for vid in self.document.getchildren():
url = None url = None
lastest = None lastest = None