2 from __future__ import unicode_literals
7 from .common import InfoExtractor
10 class DropboxIE(InfoExtractor):
11 _VALID_URL = r'https?://(?:www\.)?dropbox[.]com/s/(?P<id>[a-zA-Z0-9]{15})/(?P<title>[^?#]*)'
13 'url': 'https://www.dropbox.com/s/mcnzehi9wo55th4/20131219_085616.mp4',
14 'file': 'mcnzehi9wo55th4.mp4',
15 'md5': 'f6d65b1b326e82fd7ab7720bea3dacae',
17 'title': '20131219_085616'
21 def _real_extract(self, url):
22 mobj = re.match(self._VALID_URL, url)
23 video_id = mobj.group('id')
24 title = os.path.splitext(mobj.group('title'))[0]
25 video_url = url + '?dl=1'