Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Fix to upload video/gifs to correct endpoint if filesize < self.chunk_size - #439

Merged
jeremylow merged 1 commit into
masterfrom
fix/issue433
Feb 16, 2017
Merged

jeremylow merged 1 commit into
masterfrom
fix/issue433

Conversation

@jeremylow

@jeremylow jeremylow commented Feb 14, 2017 •

Copy link
Copy Markdown
Collaborator

Previously, if a GIF or a video was less than self.chunk_size, it would be uploaded via UploadMediaSimple, but this was a bug because that endpoint cannot handle videos or GIFs. This change makes it so that even if the video is small, it'll get passed to UploadMediaChunked.

Closes #433. All tests pass.


This change is Reviewable

…_size

previously, if a gif or a video (mp4/quicktime) was less than
self.chunk_size, it would be uploaded via UploadMediaSimple,
but this was a bug because that endpoint cannot handle
videos or gifs.

closes #433
@codecov-io

codecov-io commented Feb 14, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #439 into master will increase coverage by 0.06%.
The diff coverage is 80%.

@@            Coverage Diff             @@
##           master     #439      +/-   ##
==========================================
+ Coverage   74.84%   74.91%   +0.06%     
==========================================
  Files           8        8              
  Lines        1944     1945       +1     
==========================================
+ Hits         1455     1457       +2     
+ Misses        489      488       -1
Impacted Files Coverage Δ
twitter/twitter_utils.py 92.98% <66.66%> (ø) ✅
twitter/api.py 69.51% <85.71%> (+0.08%) ✅

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c28e9fb...5640c42. Read the comment docs.

@jeremylow
jeremylow requested a review from bear February 15, 2017 12:46
@bear

bear commented Feb 16, 2017

Copy link
Copy Markdown
Owner

Reviewed 3 of 3 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@jeremylow
jeremylow merged commit 69af23c into master Feb 16, 2017
@jeremylow
jeremylow deleted the fix/issue433 branch February 16, 2017 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants