mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-25 03:31:03 +00:00 
			
		
		
		
	 86e5f3ed2e
			
		
	
	
		86e5f3ed2e
		
			
		
	
	
	
	
		
			
			Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from .common import InfoExtractor
 | |
| 
 | |
| 
 | |
| class BibelTVIE(InfoExtractor):
 | |
|     _VALID_URL = r'https?://(?:www\.)?bibeltv\.de/mediathek/videos/(?:crn/)?(?P<id>\d+)'
 | |
|     _TESTS = [{
 | |
|         'url': 'https://www.bibeltv.de/mediathek/videos/329703-sprachkurs-in-malaiisch',
 | |
|         'md5': '252f908192d611de038b8504b08bf97f',
 | |
|         'info_dict': {
 | |
|             'id': 'ref:329703',
 | |
|             'ext': 'mp4',
 | |
|             'title': 'Sprachkurs in Malaiisch',
 | |
|             'description': 'md5:3e9f197d29ee164714e67351cf737dfe',
 | |
|             'timestamp': 1608316701,
 | |
|             'uploader_id': '5840105145001',
 | |
|             'upload_date': '20201218',
 | |
|         }
 | |
|     }, {
 | |
|         'url': 'https://www.bibeltv.de/mediathek/videos/crn/326374',
 | |
|         'only_matching': True,
 | |
|     }]
 | |
|     BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5840105145001/default_default/index.html?videoId=ref:%s'
 | |
| 
 | |
|     def _real_extract(self, url):
 | |
|         crn_id = self._match_id(url)
 | |
|         return self.url_result(
 | |
|             self.BRIGHTCOVE_URL_TEMPLATE % crn_id, 'BrightcoveNew')
 |