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/0qr9sai2veej4f8/THE_DOCTOR_GAMES.mp4',
14 'md5': '8ae17c51172fb7f93bdd6a214cc8c896',
16 'id': '0qr9sai2veej4f8',
18 'title': 'THE_DOCTOR_GAMES'
22 def _real_extract(self, url):
23 mobj = re.match(self._VALID_URL, url)
24 video_id = mobj.group('id')
25 title = os.path.splitext(mobj.group('title'))[0]
26 video_url = url + '?dl=1'