Support for native drupal workflow

sainzu - May 4, 2009 - 19:03
Project:Video Upload
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Justin W Freeman
Status:needs review
Description

The video should be uploaded ONLY IF the node (that contains the video) is marked as published. This is helpful in a scenario when an admin wants to review the uploaded videos before he allows to them to be published in the site. If the admin decides to reject the videos (say because of offensive content or irrelevant videos), he can simply delete it from his server. That way the video never reaches YouTube.

#1

sainzu - May 11, 2009 - 20:06
Status:needs work» active

#2

happydrupal - June 12, 2009 - 03:32

I agree with this.....

YouTube will cancel the account automatically if your videos cross the YouTube Community Guidelines twice. Anyone who has bad intention is pretty easy to upload some bad video and shut your service down without notice.

#3

jhedstrom - June 12, 2009 - 23:09

I'll try to work this into the upcoming stable release.

#4

happydrupal - June 13, 2009 - 01:06

Great appreciated.

#5

Justin W Freeman - October 18, 2009 - 23:55

Subscribing

#6

Andrew Kaufmann - October 22, 2009 - 00:46

I too am greatly interested in workflow being implemented -- for the very reason happydrupal mentioned. Subscribing.

#7

Justin W Freeman - October 22, 2009 - 22:56
Assigned to:Anonymous» Justin W Freeman

I'm working on this currently I have a patch that works but I am adding one more feature to it first.

That feature is the ability to link the published status of the node to the private status of the You Tube video so once the video is uploaded, if you change the node to unpublished the video goes private and vice versa.

This second feature relies on
#439170: update youtube video if node is updated and
#611380: Call to undefined function _video_upload_node_set_video_status() in video_upload.admin.inc on line 421

So I will do those and then finish this.

#8

Justin W Freeman - October 23, 2009 - 02:47
Status:active» needs review

Here is the patch.

It gives two new options on the admin/settings/video-upload screen (at the moment they are in the You Tube fieldset but they could be outside of that if that is preferred).
One is to only copy videos up once the node they are on is published.
The second is to sync the nodes published flag with the you tube videos private flag.

You will need to apply the patches in these two issues before you apply this one as they are all required for the syncing of status to work:
#439170: update youtube video if node is updated
#611380: Call to undefined function _video_upload_node_set_video_status() in video_upload.admin.inc on line 421

AttachmentSize
video_upload-453458-8.patch 5.29 KB

#9

Andrew Kaufmann - October 31, 2009 - 03:33

Thanks for doing this, Justin! I'll give this a shot as soon as I can...

#10

Andrew Kaufmann - November 1, 2009 - 07:37

I just ran the three patches, and gave it a shot... and it appears to work as advertised. It wasn't a thorough review, by any stretch... but the video did not get uploaded, as desired, until after the node was set to published.

Good work!

 
 

Drupal is a registered trademark of Dries Buytaert.