From 7772dfd39795498dbd83de7b17a3860186eec969 Mon Sep 17 00:00:00 2001 From: capital-G Date: Tue, 19 Sep 2017 22:29:36 +0200 Subject: [PATCH] [twitter] added duration test --- youtube_dl/extractor/twitter.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/youtube_dl/extractor/twitter.py b/youtube_dl/extractor/twitter.py index e9a5a0ce6..5597b3d4f 100644 --- a/youtube_dl/extractor/twitter.py +++ b/youtube_dl/extractor/twitter.py @@ -368,6 +368,22 @@ class TwitterIE(InfoExtractor): 'params': { 'format': 'best[format_id^=http-]', }, + }, { + # checks for correct duration + 'url': 'https://twitter.com/SophiePassmann/status/903676793860829184', + 'md5': '0c1edf87dd3afacf7b36b5a5666c00cc', + 'info_dict': { + 'id': '903676793860829184', + 'ext': 'mp4', + 'title': 'Sophie Passmann - Schaut euch an, was ich geschickt bekommen habe 😍😍😍 #unboxing #sponsored #ad', + 'description': 'Sophie Passmann on Twitter: "Schaut euch an, was ich geschickt bekommen habe 😍😍😍 #unboxing #sponsored #ad https://t.co/jGWWxoVWYm"', + 'uploader_id': 'SophiePassmann', + 'uploader': 'Sophie Passmann', + 'duration': 107.4, + }, + 'params': { + 'skip_download': True, + }, }] def _real_extract(self, url):