Follow Twitter guidelines for media upload by conforming to the "STAT…#8992
Follow Twitter guidelines for media upload by conforming to the "STAT…#8992MikeChristianson wants to merge 3 commits into
Conversation
…US" phase, when required, and by providing "media_category" information. These will, for example, allow users to upload videos that exceed the basic 30 second limit. See: - https://twittercommunity.com/t/media-category-values/64781/7 - https://twittercommunity.com/t/duration-too-long-maximim-30000/68760 - https://dev.twitter.com/rest/reference/get/media/upload-status.html
|
@MikeChristianson, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fabaff, @HydrelioxGitHub and @pvizeli to be potential reviewers. |
…ine', not 'Determines')"
| _LOGGER.debug("media processing waiting %s seconds to check status", | ||
| str(check_after_secs)) | ||
|
|
||
| time.sleep(check_after_secs) |
There was a problem hiding this comment.
You can not use sleep for that. Use helper/events.py to shedule a callback.
There was a problem hiding this comment.
@pvizeli I'm not sure how to use helpers/event.py. Could you point me to an example in the hass codebase? (I'm coming up empty.)
There was a problem hiding this comment.
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/helpers/event.py#L117 like that or the UTC version.
|
@MikeChristianson any updates on this PR? |
|
@andrey-git In progress, slowly. |
|
I'm having difficulty implementing the changes requested. I'm closing this PR until I have demonstrable progress. |
Building on the Twitter notification support added in #8282:
Follow Twitter guidelines for media upload by conforming to the "STATUS" phase, when required, and by providing "media_category" information. These changes will, for example, allow users to upload videos that exceed the basic 30 second limit.