Skip to content

Commit eb789cd

Browse files
author
Garland Trice
authored
add media category
hacking thru this gif thing for now. It takes more than 5mb
1 parent 5b92506 commit eb789cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitter/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def _UploadMediaChunkedInit(self,
12621262
"""
12631263
url = '%s/media/upload.json' % self.upload_url
12641264

1265-
media_fp, filename, file_size, media_type = parse_media_file(media)
1265+
media_fp, filename, file_size, media_type = parse_media_file(media, media_category)
12661266

12671267
if not all([media_fp, filename, file_size, media_type]):
12681268
raise TwitterError({'message': 'Could not process media file'})

0 commit comments

Comments
 (0)