Hi,
It would be nice if the Zencoder status api would be checked to provide transparancy from the api.
I provided a simple patch to see if the suggested approach is ok with you guys.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | video-check_zencoder_status-1871992-4.patch | 1.64 KB | 30equals |
| #3 | video-check_zencoder_status-1871992-3.patch | 1.35 KB | 30equals |
| #1 | video-check_zencoder_status-1871992-1.patch | 1.34 KB | 30equals |
| video-check_zencoder_status.patch | 1.65 KB | 30equals |
Comments
Comment #1
30equals commentedmmm... patch isn't clean... new cleaned up one.
Comment #2
Jorrit commentedYou should use the Drupal methods to fetch files over HTTP and decode JSON. Also, I think it is best to put
nl2br()outside of thet(),<br/>doesn't need to be translated.Comment #3
30equals commentedI changed the patch according to your feedback. Hope it's fine now.
Comment #4
30equals commentedNew patch with http error handling and change use of t().
Comment #5
Jorrit commentedCommitted, thanks.