mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[bild] Strip title
This commit is contained in:
		@@ -17,21 +17,22 @@ class BildIE(InfoExtractor):
 | 
				
			|||||||
        'info_dict': {
 | 
					        'info_dict': {
 | 
				
			||||||
            'id': '38184146',
 | 
					            'id': '38184146',
 | 
				
			||||||
            'ext': 'mp4',
 | 
					            'ext': 'mp4',
 | 
				
			||||||
            'title': 'Das können die  neuen iPads ',
 | 
					            'title': 'Das können die  neuen iPads',
 | 
				
			||||||
 | 
					            'description': 'md5:a4058c4fa2a804ab59c00d7244bbf62f',
 | 
				
			||||||
            'thumbnail': 're:^https?://.*\.jpg$',
 | 
					            'thumbnail': 're:^https?://.*\.jpg$',
 | 
				
			||||||
            'duration': 196,
 | 
					            'duration': 196,
 | 
				
			||||||
            'description': 'Mit dem iPad Air 2 und dem iPad Mini 3 hat Apple zwei neue Tablet-Modelle präsentiert. BILD-Reporter Sven Stein durfte die Geräte bereits testen. ',
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _real_extract(self, url):
 | 
					    def _real_extract(self, url):
 | 
				
			||||||
        video_id = self._match_id(url)
 | 
					        video_id = self._match_id(url)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        video_data = self._download_json(url.split(".bild.html")[0] + ",view=json.bild.html", video_id)
 | 
					        video_data = self._download_json(
 | 
				
			||||||
 | 
					            url.split('.bild.html')[0] + ',view=json.bild.html', video_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            'id': video_id,
 | 
					            'id': video_id,
 | 
				
			||||||
            'title': unescapeHTML(video_data['title']),
 | 
					            'title': unescapeHTML(video_data['title']).strip(),
 | 
				
			||||||
            'description': unescapeHTML(video_data.get('description')),
 | 
					            'description': unescapeHTML(video_data.get('description')),
 | 
				
			||||||
            'url': video_data['clipList'][0]['srces'][0]['src'],
 | 
					            'url': video_data['clipList'][0]['srces'][0]['src'],
 | 
				
			||||||
            'thumbnail': video_data.get('poster'),
 | 
					            'thumbnail': video_data.get('poster'),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user