]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/savefrom.py
198a08c1c9ea1032b130903cd1c013f6ed22c31e
2 from __future__
import unicode_literals
7 from .common
import InfoExtractor
10 class SaveFromIE(InfoExtractor
):
11 IE_NAME
= 'savefrom.net'
12 _VALID_URL
= r
'https?://[^.]+\.savefrom\.net/\#url=(?P<url>.*)$'
15 'url': 'http://en.savefrom.net/#url=http://youtube.com/watch?v=UlVRAPW2WJY&utm_source=youtube.com&utm_medium=short_domains&utm_campaign=ssyoutube.com',
19 'title': 'About Team Radical MMA | MMA Fighting',
20 'upload_date': '20120816',
21 'uploader': 'Howcast',
22 'uploader_id': 'Howcast',
23 'description': 'md5:4f0aac94361a12e1ce57d74f85265175',
30 def _real_extract(self
, url
):
31 mobj
= re
.match(self
._VALID
_URL
, url
)
32 video_id
= os
.path
.splitext(url
.split('/')[-1])[0]
36 'url': mobj
.group('url'),