random-movie
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -519,3 +519,5 @@ [ | ||
"tt0033804", | ||
"tt2713180" | ||
"tt2713180", | ||
"tt2379713", | ||
"tt0814314" | ||
] |
'use strict'; | ||
var movie = require('node-movie'); | ||
var movie = require('node-movie').getByID; | ||
var ids = require("./id.json"); | ||
@@ -9,5 +9,5 @@ var rand = require('unique-random')(0,ids.length); | ||
var randID = ids[randNum]; | ||
movie({id: randID}, function(data) { | ||
cb(data); | ||
movie(randID, function(err, data) { | ||
cb(err, data); | ||
}); | ||
}; |
{ | ||
"name": "random-movie", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Random movie generator", | ||
@@ -36,5 +36,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"node-movie": "^1.2.0", | ||
"node-movie": "^2.0.0", | ||
"unique-random": "^1.0.0" | ||
} | ||
} |
10110
533
+ Addednode-movie@2.0.0(transitive)
- Removedansi-regex@0.2.1(transitive)
- Removedansi-styles@1.1.0(transitive)
- Removedchalk@0.5.1(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removednode-movie@1.3.0(transitive)
- Removedstrip-ansi@0.3.0(transitive)
- Removedsupports-color@0.2.0(transitive)
Updatednode-movie@^2.0.0