Skip to content

Commit

Permalink
Add support for subtitles create and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
dyep49 committed Jun 11, 2019
1 parent 8eec3c6 commit 09e14fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/file_uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ FileUploader.prototype._initMedia = function (cb) {
media_category = 'tweet_gif';
} else if (mediaType.toLowerCase().indexOf('video') > -1) {
media_category = 'tweet_video';
} else if (mediaType.toLowerCase().indexOf('subrip') > -1) {
media_category = 'SUBTITLES'
}

// Check the file size - it should not go over 15MB for video.
Expand Down
2 changes: 2 additions & 0 deletions lib/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ var FORMDATA_PATHS = [

var JSONPAYLOAD_PATHS = [
'media/metadata/create',
'media/subtitles/create',
'media/subtitles/delete',
'direct_messages/events/new',
'direct_messages/welcome_messages/new',
'direct_messages/welcome_messages/rules/new',
Expand Down

0 comments on commit 09e14fa

Please sign in to comment.