From 4f97ce50f314e9110f22251dccfa0f78ebe28f9a Mon Sep 17 00:00:00 2001 From: cphilo Date: Wed, 11 Oct 2017 13:44:32 +0800 Subject: [PATCH] twitter download fix --- src/you_get/extractors/twitter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/twitter.py b/src/you_get/extractors/twitter.py index db01daa2..b4f8bd9e 100644 --- a/src/you_get/extractors/twitter.py +++ b/src/you_get/extractors/twitter.py @@ -7,9 +7,9 @@ from .vine import vine_download def extract_m3u(source): r1 = get_content(source) - s1 = re.findall(r'(/ext_tw_video/.*)', r1) + s1 = re.findall(r'(/amplify_video/.*)', r1) r2 = get_content('https://video.twimg.com%s' % s1[-1]) - s2 = re.findall(r'(/ext_tw_video/.*)', r2) + s2 = re.findall(r'(/amplify_video/.*)', r2) return ['https://video.twimg.com%s' % i for i in s2] def twitter_download(url, output_dir='.', merge=True, info_only=False, **kwargs):