Remove duplicate DailymotionVideo.id2url

It is already in the called function decorator
This commit is contained in:
Laurent Bachelier 2012-10-23 04:17:08 +02:00 committed by Romain Bignon
commit bcbccb4586

View file

@ -53,7 +53,7 @@ class DailymotionBackend(BaseBackend, ICapVideo, ICapCollection):
if fields != ['thumbnail']:
# if we don't want only the thumbnail, we probably want also every fields
with self.browser:
video = self.browser.get_video(DailymotionVideo.id2url(video.id), video)
video = self.browser.get_video(video.id, video)
if 'thumbnail' in fields and video.thumbnail:
with self.browser:
video.thumbnail.data = self.browser.readurl(video.thumbnail.url)