CyTube/gptest.js

12 lines
298 B
JavaScript
Raw Normal View History

2014-07-10 03:41:11 +00:00
var gi = require('./lib/get-info');
var gp = gi.Getters.gp;
var link = process.argv[2];
var id = link.replace(/https:\/\/plus\.google\.com\/photos\/(\d+)\/albums\/(\d+)/, "$1_$2");
gp(id, function (err, data) {
if (err) console.error(err)
else console.log(data);
process.exit(0);
});