Merge pull request #15 from MillenniumEarl/deepsource-transform-f8b31cd4
Format code with prettierpull/17/head
commit
4d933a184e
|
@ -4,7 +4,7 @@
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
// Public modules from npm
|
// Public modules from npm
|
||||||
//const { File } = require('megajs');
|
const { File } = require("megajs");
|
||||||
|
|
||||||
// Modules from file
|
// Modules from file
|
||||||
const { prepareBrowser, preparePage } = require("../puppeteer-helper.js");
|
const { prepareBrowser, preparePage } = require("../puppeteer-helper.js");
|
||||||
|
|
|
@ -62,9 +62,9 @@ module.exports.getGameInfo = async function (browser, url) {
|
||||||
info.previewSource = await previewSource;
|
info.previewSource = await previewSource;
|
||||||
//info.downloadInfo = await downloadData;
|
//info.downloadInfo = await downloadData;
|
||||||
/* Downloading games without going directly to
|
/* Downloading games without going directly to
|
||||||
* the platform appears to be prohibited by
|
* the platform appears to be prohibited by
|
||||||
* the guidelines. It is therefore useless to
|
* the guidelines. It is therefore useless to
|
||||||
* keep the links for downloading the games. */
|
* keep the links for downloading the games. */
|
||||||
|
|
||||||
await page.close(); // Close the page
|
await page.close(); // Close the page
|
||||||
if (shared.debug) console.log("Founded data for " + info.name);
|
if (shared.debug) console.log("Founded data for " + info.name);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const {join} = require("path");
|
const { join } = require("path");
|
||||||
const {
|
const {
|
||||||
debug,
|
debug,
|
||||||
login,
|
login,
|
||||||
|
@ -40,7 +40,8 @@ async function downloadGameNOPY() {
|
||||||
async function downloadGameMEGA() {
|
async function downloadGameMEGA() {
|
||||||
let gd = new GameDownload();
|
let gd = new GameDownload();
|
||||||
gd.hosting = "NOPY";
|
gd.hosting = "NOPY";
|
||||||
gd.link = "https://f95zone.to/masked/mega.nz/2733/1470797/4O5LKwMx4ZSlw0QYTVMP0uDK660/hoobTb44f0IKx7Yio2SE2w/loX_px2vLRyNRQCnkNn5U7nnQe7jGmpEVERvH1tk7RjAFkQbs2kH_vCK6zVmRDuqiypPoIx358MNHHCd3QCdVvEsClSiAq4rwjK0r_ruXIs";
|
gd.link =
|
||||||
|
"https://f95zone.to/masked/mega.nz/2733/1470797/4O5LKwMx4ZSlw0QYTVMP0uDK660/hoobTb44f0IKx7Yio2SE2w/loX_px2vLRyNRQCnkNn5U7nnQe7jGmpEVERvH1tk7RjAFkQbs2kH_vCK6zVmRDuqiypPoIx358MNHHCd3QCdVvEsClSiAq4rwjK0r_ruXIs";
|
||||||
let savepath = join(__dirname, "Kingdom_of_Deception-pc0.10.8.zip");
|
let savepath = join(__dirname, "Kingdom_of_Deception-pc0.10.8.zip");
|
||||||
let result = await gd.download(savepath);
|
let result = await gd.download(savepath);
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
|
Loading…
Reference in New Issue