Hi, with this PR i would like to improve the discussion of #11
I added a new field in video behavior to enable/disable automatic thumb download from youtube.
If set, on creation and on every edit there is an event handler that try to download the thumb from youtube.
I have only some doubts:
image field should still be hidden and "Unsettable"?
if you upload a video to youtube with the api, Youtube takes several seconds (or minutes..depends to the video size) to provide the thumb image, and the event can't get it. For now i've put a message and a link to the edit form to force the user to re-save the video. This isn't the best approach (i know), but is the fastest and i don't know how do you prefer handle this case. Let me know what do you think and i'll improve it :)
there is still a test that fails: test_view, that expects 3 scripts, but now there are only one in the video view.
Hi, with this PR i would like to improve the discussion of #11
I added a new field in video behavior to enable/disable automatic thumb download from youtube. If set, on creation and on every edit there is an event handler that try to download the thumb from youtube.
I have only some doubts: