I have made a couple rules to unpublish then publish content when the conversion is complete. Is that the correct way todo it?

Comments

hypertext200’s picture

Category: feature » support
Status: Active » Fixed

yes

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gumdrop’s picture

Version: 7.x-2.2-beta4 » 7.x-2.x-dev
Component: Video Trasncoding » Video Core
Status: Closed (fixed) » Needs work

Can we get some examples of some rule sets? I presume to make this work properly as to the content showing up in the node we need to set this up in rules.

Jorrit’s picture

Component: Video Core » Rules
Category: support » task
Status: Needs work » Active

I'll look at everything related to Rules later.

Tsubo’s picture

Not sure if this is precisely the right place to post this issue, but it's related.

I'm using Zencoder and have implemented a rule to fire an email to the node author on the event 'after video encoding success' - which I assumed would fire when the video file is successfully returned from Zencoder (on postback). Since we are dealing with sometimes very large video files, this would be an extremely useful feature.

However, it appears as if the rule is firing on node save (i.e. successfully submitting the file to Zencoder)..... not after encoding success.

Since the rule action is irrelevant to the event condition - If you wanted to have videos published 'after encoding success' currently they would actually be published on node submit?

Tsubo’s picture

More info re #5.

This only appears to be the case when using the option 'Video convert on node submit'. However, if we leave the video encoding to the queue, to be processed on Cron, the rule is still fired on when the cron run fires, i.e on successful 'submission'.... not encoding success (or on postback).

Jorrit’s picture

You are absolutely right. Could you make a new bug for this?

Tsubo’s picture

Have opened a new issue re #5-7:

http://drupal.org/node/1698046

Thanks

Jorrit’s picture

Status: Active » Fixed

In 7.x-2.8 the Rules events will be fixed for Zencoder.

To answer the initial question: using the following Rule you can publish a node when it has finished transcoding:

{ "rules_video_success" : {
    "LABEL" : "Publish on video success",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "rules", "video" ],
    "ON" : [ "video_success" ],
    "DO" : [ { "node_publish" : { "node" : [ "node" ] } } ]
  }
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.