do not call id2url too early

This commit is contained in:
Christophe Benz 2010-08-12 17:31:33 +02:00 committed by Romain Bignon
commit d27b28d24e

View file

@ -94,7 +94,7 @@ class YoutubeBackend(BaseBackend, ICapVideo):
# if we don't want only the thumbnail, we probably want also every fields
with self.browser:
try:
video = self.browser.get_video(YoutubeVideo.id2url(video.id), video)
video = self.browser.get_video(video.id, video)
except ForbiddenVideo, e:
raise ObjectNotAvailable(e)
if 'thumbnail' in fields: