projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39e1c4f
)
[imdb] Improve title extraction and make thumbnail non-fatal
author
Déstin Reed
<trox1972@users.noreply.github.com>
Fri, 19 Aug 2016 20:59:26 +0000
(22:59 +0200)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 19 Aug 2016 21:50:39 +0000
(
04:50
+0700)
youtube_dl/extractor/imdb.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/imdb.py
b/youtube_dl/extractor/imdb.py
index 0acce9f4c2525a62e3d3ad22b16743737dbb5b07..3a6a6f5ad8bddbf4e4ebcc2dbc7974f2e71ef32e 100644
(file)
--- a/
youtube_dl/extractor/imdb.py
+++ b/
youtube_dl/extractor/imdb.py
@@
-6,6
+6,7
@@
from .common import InfoExtractor
from ..utils import (
mimetype2ext,
qualities,
from ..utils import (
mimetype2ext,
qualities,
+ remove_end,
)
)
@@
-19,7
+20,7
@@
class ImdbIE(InfoExtractor):
'info_dict': {
'id': '2524815897',
'ext': 'mp4',
'info_dict': {
'id': '2524815897',
'ext': 'mp4',
- 'title': 'Ice Age: Continental Drift Trailer (No. 2)
- IMDb
',
+ 'title': 'Ice Age: Continental Drift Trailer (No. 2)',
'description': 'md5:9061c2219254e5d14e03c25c98e96a81',
}
}, {
'description': 'md5:9061c2219254e5d14e03c25c98e96a81',
}
}, {
@@
-83,10
+84,10
@@
class ImdbIE(InfoExtractor):
return {
'id': video_id,
return {
'id': video_id,
- 'title':
self._og_search_title(webpage
),
+ 'title':
remove_end(self._og_search_title(webpage), ' - IMDb'
),
'formats': formats,
'description': descr,
'formats': formats,
'description': descr,
- 'thumbnail': format_info
['slate']
,
+ 'thumbnail': format_info
.get('slate')
,
}
}