diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-11 19:16:51 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-11 19:17:18 +0600 |
commit | d8348c351d5ed4bb820b190e42b9a02e2dfc27a7 (patch) | |
tree | 3bfa4717dd7a7be6d91470944e09da1943e88178 /youtube_dl | |
parent | 70cb4d51c91c5b6c72b8564258cb161bcc68626c (diff) |
[bild] Strip title
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bild.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/bild.py b/youtube_dl/extractor/bild.py index ea84f20f2..1a0184861 100644 --- a/youtube_dl/extractor/bild.py +++ b/youtube_dl/extractor/bild.py @@ -17,21 +17,22 @@ class BildIE(InfoExtractor): 'info_dict': { 'id': '38184146', 'ext': 'mp4', - 'title': 'Das können die neuen iPads ', + 'title': 'Das können die neuen iPads', + 'description': 'md5:a4058c4fa2a804ab59c00d7244bbf62f', 'thumbnail': 're:^https?://.*\.jpg$', '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): 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 { 'id': video_id, - 'title': unescapeHTML(video_data['title']), + 'title': unescapeHTML(video_data['title']).strip(), 'description': unescapeHTML(video_data.get('description')), 'url': video_data['clipList'][0]['srces'][0]['src'], 'thumbnail': video_data.get('poster'), |