mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Completely change project name to yt-dlp (#85)
* All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan
This commit is contained in:
		
							
								
								
									
										34
									
								
								yt_dlp/extractor/savefrom.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								yt_dlp/extractor/savefrom.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| # coding: utf-8 | ||||
| from __future__ import unicode_literals | ||||
|  | ||||
| import os.path | ||||
| import re | ||||
|  | ||||
| from .common import InfoExtractor | ||||
|  | ||||
|  | ||||
| class SaveFromIE(InfoExtractor): | ||||
|     IE_NAME = 'savefrom.net' | ||||
|     _VALID_URL = r'https?://[^.]+\.savefrom\.net/\#url=(?P<url>.*)$' | ||||
|  | ||||
|     _TEST = { | ||||
|         'url': 'http://en.savefrom.net/#url=http://youtube.com/watch?v=UlVRAPW2WJY&utm_source=youtube.com&utm_medium=short_domains&utm_campaign=ssyoutube.com', | ||||
|         'info_dict': { | ||||
|             'id': 'UlVRAPW2WJY', | ||||
|             'ext': 'mp4', | ||||
|             'title': 'About Team Radical MMA | MMA Fighting', | ||||
|             'upload_date': '20120816', | ||||
|             'uploader': 'Howcast', | ||||
|             'uploader_id': 'Howcast', | ||||
|             'description': r're:(?s).* Hi, my name is Rene Dreifuss\. And I\'m here to show you some MMA.*', | ||||
|         }, | ||||
|         'params': { | ||||
|             'skip_download': True | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     def _real_extract(self, url): | ||||
|         mobj = re.match(self._VALID_URL, url) | ||||
|         video_id = os.path.splitext(url.split('/')[-1])[0] | ||||
|  | ||||
|         return self.url_result(mobj.group('url'), video_id=video_id) | ||||
		Reference in New Issue
	
	Block a user
	 Pccode66
					Pccode66