projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94128d6
)
[fc2] Fall back to webpage title if needed
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 7 Jun 2014 14:52:11 +0000
(16:52 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 7 Jun 2014 14:52:11 +0000
(16:52 +0200)
youtube_dl/extractor/fc2.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/fc2.py
b/youtube_dl/extractor/fc2.py
index 18f91efac450d1ec697652570b6366b1709553d0..c663a0f81d08650b24616d2c3c2daef262c95aa2 100644
(file)
--- a/
youtube_dl/extractor/fc2.py
+++ b/
youtube_dl/extractor/fc2.py
@@
-50,10
+50,13
@@
class FC2IE(InfoExtractor):
raise ExtractorError('Error code: %s' % info['err_code'][0])
video_url = info['filepath'][0] + '?mid=' + info['mid'][0]
+ title_info = info.get('title')
+ if title_info:
+ title = title_info[0]
return {
'id': video_id,
- 'title':
info['title'][0]
,
+ 'title':
title
,
'url': video_url,
'ext': 'flv',
'thumbnail': thumbnail,