- video_id=mobj.group('id')
- title=mobj.group('title')
- webpage = self._download_webpage(url, video_id)
- video_url=url+'?dl=1'
- return{
- 'id':video_id,
- 'title':title,
- 'url':video_url
-
- }
-
\ No newline at end of file
+ video_id = mobj.group('id')
+ fn = compat_urllib_parse_unquote(mobj.group('title'))
+ title = os.path.splitext(fn)[0]
+ video_url = (
+ re.sub(r'[?&]dl=0', '', url) +
+ ('?' if '?' in url else '&') + 'dl=1')
+
+ return {
+ 'id': video_id,
+ 'title': title,
+ 'url': video_url,
+ }