Browse Source

[vine] Make sure the title won't be empty

And fix a relevant TwitterCard test case
master-ytdl-org
Yen Chi Hsuan 8 years ago
parent
commit
e8f20ffa03
No known key found for this signature in database GPG Key ID: 7F902A182457CA23
3 changed files with 6 additions and 2 deletions
  1. +1
    -0
      ChangeLog
  2. +1
    -0
      youtube_dl/extractor/twitter.py
  3. +4
    -2
      youtube_dl/extractor/vine.py

+ 1
- 0
ChangeLog View File

@ -1,6 +1,7 @@
version <unreleased>
Extractors
* [vine] Make sure the title won't be empty
+ [twitter] Support HLS streams in vmap URLs
+ [periscope] Support pscp.tv URLs in embedded frames
* [niconico] Fix authentication error handling (#12486)


+ 1
- 0
youtube_dl/extractor/twitter.py View File

@ -91,6 +91,7 @@ class TwitterCardIE(TwitterBaseIE):
'uploader_id': '1189339351084113920',
'uploader': 'ArsenalTerje',
'title': 'Vine by ArsenalTerje',
'timestamp': 1447451307,
},
'add_ie': ['Vine'],
}, {


+ 4
- 2
youtube_dl/extractor/vine.py View File

@ -92,10 +92,12 @@ class VineIE(InfoExtractor):
username = data.get('username')
alt_title = 'Vine by %s' % username if username else None
return {
'id': video_id,
'title': data.get('description'),
'alt_title': 'Vine by %s' % username if username else None,
'title': data.get('description') or alt_title or 'Vine video',
'alt_title': alt_title,
'thumbnail': data.get('thumbnailUrl'),
'timestamp': unified_timestamp(data.get('created')),
'uploader': username,


Loading…
Cancel
Save