projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70cb4d5
)
[bild] Strip title
author
Sergey M․
<dstftw@gmail.com>
Sun, 11 Oct 2015 13:16:51 +0000
(19:16 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 11 Oct 2015 13:17:18 +0000
(19:17 +0600)
youtube_dl/extractor/bild.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bild.py
b/youtube_dl/extractor/bild.py
index ea84f20f29d6a843c91082ad92f7e4cc37987533..1a0184861d20d7674badc042bfc44fbda6c9718b 100644
(file)
--- 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',
'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,
'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)
}
}
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,
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'),
'description': unescapeHTML(video_data.get('description')),
'url': video_data['clipList'][0]['srces'][0]['src'],
'thumbnail': video_data.get('poster'),