mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
[twitter] Fix extraction (closes #8966)
HLS and DASH formats are no longer appeared in test cases. I keep them for fear of triggering new errors.
This commit is contained in:
parent
d10fe8358c
commit
e68d3a010f
1 changed files with 2 additions and 4 deletions
|
@ -110,10 +110,9 @@ class TwitterCardIE(TwitterBaseIE):
|
||||||
'height': int(m.group('height')),
|
'height': int(m.group('height')),
|
||||||
})
|
})
|
||||||
|
|
||||||
playlist = config.get('playlist')
|
video_url = config.get('video_url') or config.get('playlist', [{}])[0].get('source')
|
||||||
if playlist:
|
|
||||||
video_url = playlist[0]['source']
|
|
||||||
|
|
||||||
|
if video_url:
|
||||||
f = {
|
f = {
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
}
|
}
|
||||||
|
@ -185,7 +184,6 @@ class TwitterIE(InfoExtractor):
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'FREE THE NIPPLE - FTN supporters on Hollywood Blvd today!',
|
'title': 'FREE THE NIPPLE - FTN supporters on Hollywood Blvd today!',
|
||||||
'thumbnail': 're:^https?://.*\.jpg',
|
'thumbnail': 're:^https?://.*\.jpg',
|
||||||
'duration': 12.922,
|
|
||||||
'description': 'FREE THE NIPPLE on Twitter: "FTN supporters on Hollywood Blvd today! http://t.co/c7jHH749xJ"',
|
'description': 'FREE THE NIPPLE on Twitter: "FTN supporters on Hollywood Blvd today! http://t.co/c7jHH749xJ"',
|
||||||
'uploader': 'FREE THE NIPPLE',
|
'uploader': 'FREE THE NIPPLE',
|
||||||
'uploader_id': 'freethenipple',
|
'uploader_id': 'freethenipple',
|
||||||
|
|
Loading…
Reference in a new issue