Browse Source

[fc2] Fall back to webpage title if needed

master
Philipp Hagemeister 10 years ago
parent
commit
23ae281b31
1 changed files with 4 additions and 1 deletions
  1. 5
      youtube_dl/extractor/fc2.py

5
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,

Loading…
Cancel
Save