mirror of
https://github.com/sydev/decrypt-dlc-cli
synced 2026-01-03 08:18:02 +00:00
Merge pull request #1 from jfrankenau/fix-dropped-first-url
(Fix) dropped first url
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user