| 
									
										
										
										
											2014-12-03 22:22:36 -08:00
										 |  |  | from __future__ import unicode_literals | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from .common import InfoExtractor | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class MyVidsterIE(InfoExtractor): | 
					
						
							| 
									
										
										
										
											2016-03-21 21:36:32 +06:00
										 |  |  |     _VALID_URL = r'https?://(?:www\.)?myvidster\.com/video/(?P<id>\d+)/' | 
					
						
							| 
									
										
										
										
											2014-12-03 22:22:36 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     _TEST = { | 
					
						
							|  |  |  |         'url': 'http://www.myvidster.com/video/32059805/Hot_chemistry_with_raw_love_making', | 
					
						
							|  |  |  |         'md5': '95296d0231c1363222c3441af62dc4ca', | 
					
						
							|  |  |  |         'info_dict': { | 
					
						
							|  |  |  |             'id': '3685814', | 
					
						
							|  |  |  |             'title': 'md5:7d8427d6d02c4fbcef50fe269980c749', | 
					
						
							|  |  |  |             'upload_date': '20141027', | 
					
						
							| 
									
										
										
										
											2016-09-01 16:42:35 +08:00
										 |  |  |             'uploader': 'utkualp', | 
					
						
							| 
									
										
										
										
											2014-12-03 22:22:36 -08:00
										 |  |  |             'ext': 'mp4', | 
					
						
							| 
									
										
										
										
											2014-12-04 08:31:55 +01:00
										 |  |  |             'age_limit': 18, | 
					
						
							| 
									
										
										
										
											2014-12-03 22:22:36 -08:00
										 |  |  |         }, | 
					
						
							|  |  |  |         'add_ie': ['XHamster'], | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def _real_extract(self, url): | 
					
						
							|  |  |  |         video_id = self._match_id(url) | 
					
						
							|  |  |  |         webpage = self._download_webpage(url, video_id) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return self.url_result(self._html_search_regex( | 
					
						
							|  |  |  |             r'rel="videolink" href="(?P<real_url>.*)">', | 
					
						
							|  |  |  |             webpage, 'real video url')) |