dailymotion: Add support for embed URLs

This commit is contained in:
Laurent Bachelier 2012-08-19 17:42:49 +02:00
commit d64e50e2a8

View file

@ -40,6 +40,8 @@ class DailymotionBrowser(BaseBrowser):
@id2url(DailymotionVideo.id2url)
def get_video(self, url, video=None):
# translate embed URLs
url = url.replace('dailymotion.com/swf/', 'dailymotion.com/video/')
self.location(url)
return self.page.get_video(video)