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': r
're:(?s).* Hi, my name is Rene Dreifuss\. And I\'m here to show you some MMA
.*',
30 def _real_extract(self, url):
31 mobj = re.match(self._VALID_URL, url)
32 video_id = os.path.splitext(url.split('/')[-1])[0]
34 return self.url_result(mobj.group('url
'), video_id=video_id)