(Fix) dropped first url

This commit is contained in:
Johannes Frankenau
2017-09-01 18:36:16 +02:00
parent 4c03587cab
commit a63048a9df

View File

@@ -44,7 +44,7 @@ if (isFile(program.args[0]) && isDLCFile(program.args[0])) {
decrypt.upload(program.args[0], (err, response) => { decrypt.upload(program.args[0], (err, response) => {
if (err) throw err; if (err) throw err;
urls = response.success.links.slice(1).join('\n'); urls = response.success.links.join('\n');
storeUrlsInFile(urls); storeUrlsInFile(urls);
}); });
} else if (isFile(program.args[0]) && !isDLCFile(program.args[0])) { } else if (isFile(program.args[0]) && !isDLCFile(program.args[0])) {
@@ -54,7 +54,7 @@ if (isFile(program.args[0]) && isDLCFile(program.args[0])) {
decrypt.paste(content, (err, response) => { decrypt.paste(content, (err, response) => {
if (err) throw err; if (err) throw err;
urls = response.success.links.slice(1).join('\n'); urls = response.success.links.join('\n');
storeUrlsInFile(urls); storeUrlsInFile(urls);
}); });
}); });
@@ -62,7 +62,7 @@ if (isFile(program.args[0]) && isDLCFile(program.args[0])) {
decrypt.container(program.args[0], (err, response) => { decrypt.container(program.args[0], (err, response) => {
if (err) throw err; if (err) throw err;
urls = response.success.links.slice(1).join('\n'); urls = response.success.links.join('\n');
storeUrlsInFile(urls); storeUrlsInFile(urls);
}); });
} else { } else {