BrightcoveOS/Java-Commons — pull request #6 by tkandala (2013-08-22 21:19:52+00:00)
Title: Added 'PENDING' status check when videos come from jsonobject

Hi,

I am a web developer as part of the Toronto Star team (thestar.com) and we are using the Brightcove commons objects to pull in modified videos from Brightcove.

One issue we have found that is once in a while, we get a video status to be equal to 'PENDING' and this is throwing an exception at the Brightcove commons objects level inside video.java. When this happens, we are not able to put in the modified videos inside our CMS and thus causing a complete lockdown. One workaround we found was to delete that video with 'PENDING' status inside brightcove, and once again the json request starts to work without any issues.

But since I have seen this issue being raised on Google searches, I thought I would put in an extra check to check for the 'PENDING' status when video list is created.

If you have any questions regarding the commit, then please do not hesitate to contact me at tkandala@thestar.ca

Thank you

Tarun Kandala