diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-06-07 16:52:11 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-06-07 16:52:11 +0200 |
commit | 23ae281b31d5c4042f15ffb8e5ded0065a0dc808 (patch) | |
tree | 7cf7111d70955a9b23949b9a06797b58591e200a /youtube_dl/extractor/fc2.py | |
parent | 94128d6b0d94551ea23daf59983557c777c1e251 (diff) |
[fc2] Fall back to webpage title if needed
Diffstat (limited to 'youtube_dl/extractor/fc2.py')
-rw-r--r-- | youtube_dl/extractor/fc2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/fc2.py b/youtube_dl/extractor/fc2.py index 18f91efac..c663a0f81 100644 --- 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, |