mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +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:
		
							
								
								
									
										35
									
								
								yt_dlp/extractor/gputechconf.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								yt_dlp/extractor/gputechconf.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| # coding: utf-8 | ||||
| from __future__ import unicode_literals | ||||
|  | ||||
| from .common import InfoExtractor | ||||
|  | ||||
|  | ||||
| class GPUTechConfIE(InfoExtractor): | ||||
|     _VALID_URL = r'https?://on-demand\.gputechconf\.com/gtc/2015/video/S(?P<id>\d+)\.html' | ||||
|     _TEST = { | ||||
|         'url': 'http://on-demand.gputechconf.com/gtc/2015/video/S5156.html', | ||||
|         'md5': 'a8862a00a0fd65b8b43acc5b8e33f798', | ||||
|         'info_dict': { | ||||
|             'id': '5156', | ||||
|             'ext': 'mp4', | ||||
|             'title': 'Coordinating More Than 3 Million CUDA Threads for Social Network Analysis', | ||||
|             'duration': 1219, | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     def _real_extract(self, url): | ||||
|         video_id = self._match_id(url) | ||||
|         webpage = self._download_webpage(url, video_id) | ||||
|  | ||||
|         root_path = self._search_regex( | ||||
|             r'var\s+rootPath\s*=\s*"([^"]+)', webpage, 'root path', | ||||
|             default='http://evt.dispeak.com/nvidia/events/gtc15/') | ||||
|         xml_file_id = self._search_regex( | ||||
|             r'var\s+xmlFileId\s*=\s*"([^"]+)', webpage, 'xml file id') | ||||
|  | ||||
|         return { | ||||
|             '_type': 'url_transparent', | ||||
|             'id': video_id, | ||||
|             'url': '%sxml/%s.xml' % (root_path, xml_file_id), | ||||
|             'ie_key': 'DigitallySpeaking', | ||||
|         } | ||||
		Reference in New Issue
	
	Block a user
	 Pccode66
					Pccode66