added media_category and support for STATUS calls #428
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#428
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tushdante-video-upload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
media_categoryparam value forupload_video()STATUScommand, when uploading videos asynchronouslyCoverage decreased (-0.8%) to 55.248% when pulling
2c02b622a2on tushdante:tushdante-video-upload into975095d8d2on ryanmcgrath:master.Can you change these double quotes to single quotes, please?
You don't need to default to
Noneascheck_after_secs = response_finalize['processing_info'].get('check_after_secs')will returnNoneif it doesn't existYou don't need to default to
Noneasprocessing_state = response_finalize['processing_info'].get('state')will returnNoneif it doesn't exist@ -203,0 +226,4 @@# get the secs to waitcheck_after_secs = response.get('processing_info').get('check_after_secs')if check_after_secs:Instead of changing the return here, can you add a keyword argument to
upload_videolikecheck_progress=Falseand if they passcheck_progress=True, it will execute the code you added, otherwise it will just return the response.Coverage decreased (-0.5%) to 55.54% when pulling
7401adfb64on tushdante:tushdante-video-upload into975095d8d2on ryanmcgrath:master.Thanks for making the changes so quickly! Hopefully, we can get these changes done and approved and this merged in!
Can you just make this
if check_progress-- sorry, a lot of the review is just styling issues!Can you make this:
outside of this
if check_progress:and use
responseeverywhere you useresponse_finalizeand outside of the check, you can just
return responsethen, does that make sense or should I elaborate more?No worries! @michaelhelmick totally happy to ensure everything is compliant. appreciate the feedback!
Coverage decreased (-0.7%) to 55.367% when pulling
469432bcf8on tushdante:tushdante-video-upload into975095d8d2on ryanmcgrath:master.Hey @michaelhelmick just wanted to call out if this PR will be merge-able. Let me know if there's any other changes you need me to make
LGTM, thanks for the edits!