dailymotion: Add support for embed URLs
This commit is contained in:
parent
83a0419e42
commit
d64e50e2a8
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ class DailymotionBrowser(BaseBrowser):
|
||||||
|
|
||||||
@id2url(DailymotionVideo.id2url)
|
@id2url(DailymotionVideo.id2url)
|
||||||
def get_video(self, url, video=None):
|
def get_video(self, url, video=None):
|
||||||
|
# translate embed URLs
|
||||||
|
url = url.replace('dailymotion.com/swf/', 'dailymotion.com/video/')
|
||||||
self.location(url)
|
self.location(url)
|
||||||
return self.page.get_video(video)
|
return self.page.get_video(video)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue