forked from 0x2620/pandora
use rendered videos for tests
This commit is contained in:
parent
6a97982fd4
commit
75f7516978
1 changed files with 3 additions and 3 deletions
|
@ -4,12 +4,12 @@
|
||||||
pandora.tests = function() {
|
pandora.tests = function() {
|
||||||
var tests = [];
|
var tests = [];
|
||||||
pandora.api.find({
|
pandora.api.find({
|
||||||
query: {conditions: [], operator: '&'},
|
query: {conditions: [{key: 'rendered', value: true, operator: '='}], operator: '&'},
|
||||||
sort: [{key: 'random', operator:'+'}],
|
sort: [{key: 'random', operator:'+'}],
|
||||||
keys: ['id', 'rendered', 'duration'],
|
keys: ['id', 'duration'],
|
||||||
range: [0, 10]
|
range: [0, 10]
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var item = result.data.items.filter(function(item) { return item.rendered && item.duration > 300; })[0],
|
var item = result.data.items.filter(function(item) { return item.duration > 300; })[0],
|
||||||
position = 60;
|
position = 60;
|
||||||
pandora.UI.set('videoPoints.' + item.id, {
|
pandora.UI.set('videoPoints.' + item.id, {
|
||||||
annotation: '',
|
annotation: '',
|
||||||
|
|
Loading…
Reference in a new issue