From 2c9511e292012279590c9e8117121a8057041d31 Mon Sep 17 00:00:00 2001 From: bmw1821 Date: Sat, 23 Jul 2016 22:42:41 -0400 Subject: [PATCH 1/2] Added support for Quicktime (.mov) media uploads. --- twitter/twitter_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twitter/twitter_utils.py b/twitter/twitter_utils.py index 1df3ad65..3939c788 100644 --- a/twitter/twitter_utils.py +++ b/twitter/twitter_utils.py @@ -200,7 +200,8 @@ def parse_media_file(passed_media): 'image/gif', 'image/bmp', 'image/webp'] - video_formats = ['video/mp4'] + video_formats = ['video/mp4, + 'video/quicktime'] # If passed_media is a string, check if it points to a URL, otherwise, # it should point to local file. Create a reference to a file obj for From d2e79eaabc162837b5a7a2d8b0229d74808bbb4a Mon Sep 17 00:00:00 2001 From: bmw1821 Date: Sun, 24 Jul 2016 14:40:41 -0400 Subject: [PATCH 2/2] Update twitter_utils.py --- twitter/twitter_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter_utils.py b/twitter/twitter_utils.py index 3939c788..883d62b2 100644 --- a/twitter/twitter_utils.py +++ b/twitter/twitter_utils.py @@ -200,7 +200,7 @@ def parse_media_file(passed_media): 'image/gif', 'image/bmp', 'image/webp'] - video_formats = ['video/mp4, + video_formats = ['video/mp4', 'video/quicktime'] # If passed_media is a string, check if it points to a URL, otherwise,