Using unprint's cURL for Vixen.
This commit is contained in:
Generated
+4
-4
@@ -48,7 +48,7 @@
|
|||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"template-format": "^2.0.0",
|
"template-format": "^2.0.0",
|
||||||
"undici": "^8.12.4",
|
"undici": "^8.12.4",
|
||||||
"unprint": "^1.0.0-beta.2",
|
"unprint": "^1.0.0-beta.6",
|
||||||
"why-is-node-running": "^3.2.3",
|
"why-is-node-running": "^3.2.3",
|
||||||
"winston": "^3.11.0",
|
"winston": "^3.11.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0",
|
"winston-daily-rotate-file": "^5.0.0",
|
||||||
@@ -8495,9 +8495,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/unprint": {
|
"node_modules/unprint": {
|
||||||
"version": "1.0.0-beta.2",
|
"version": "1.0.0-beta.6",
|
||||||
"resolved": "https://registry.npmjs.org/unprint/-/unprint-1.0.0-beta.2.tgz",
|
"resolved": "https://registry.npmjs.org/unprint/-/unprint-1.0.0-beta.6.tgz",
|
||||||
"integrity": "sha512-WEH8pFB/Ow389gTBCP3iiQrTbigXuNTDEZ+XE95UP/Cqb5X3GSgmVE0Edvou/P2trfrHdL70JGrtrf5XX+6lrw==",
|
"integrity": "sha512-4azIbzD6qzehv9o6V1gINHFxL9vcKkytehNlVKnfM1tdfCFR9DjTuulFEKD6UyODO6r6yNanPnkt2ngeYM5wfg==",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bottleneck": "^2.19.5",
|
"bottleneck": "^2.19.5",
|
||||||
|
|||||||
+1
-1
@@ -80,7 +80,7 @@
|
|||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"template-format": "^2.0.0",
|
"template-format": "^2.0.0",
|
||||||
"undici": "^8.12.4",
|
"undici": "^8.12.4",
|
||||||
"unprint": "^1.0.0-beta.2",
|
"unprint": "^1.0.0-beta.6",
|
||||||
"why-is-node-running": "^3.2.3",
|
"why-is-node-running": "^3.2.3",
|
||||||
"winston": "^3.11.0",
|
"winston": "^3.11.0",
|
||||||
"winston-daily-rotate-file": "^5.0.0",
|
"winston-daily-rotate-file": "^5.0.0",
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ function scrapeAll(scenes, channel) {
|
|||||||
async function fetchLatest(site, page = 1) {
|
async function fetchLatest(site, page = 1) {
|
||||||
const url = `${site.url}/videos?page=${page}`;
|
const url = `${site.url}/videos?page=${page}`;
|
||||||
const res = await unprint.get(url, {
|
const res = await unprint.get(url, {
|
||||||
interface: 'request',
|
interface: 'curl',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
@@ -194,7 +194,7 @@ async function fetchUpcoming(channel) {
|
|||||||
site: channel.slug.toUpperCase(),
|
site: channel.slug.toUpperCase(),
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
interface: 'request',
|
interface: 'curl',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
@@ -263,7 +263,7 @@ async function getTrailer(videoId, channel, url) {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
}, {
|
}, {
|
||||||
interface: 'request',
|
interface: 'curl',
|
||||||
headers: {
|
headers: {
|
||||||
referer: url,
|
referer: url,
|
||||||
origin: channel.url,
|
origin: channel.url,
|
||||||
@@ -482,7 +482,7 @@ async function fetchGraphqlScene(release, channel) {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
}, {
|
}, {
|
||||||
interface: 'request',
|
interface: 'curl',
|
||||||
headers: {
|
headers: {
|
||||||
referer: release.url,
|
referer: release.url,
|
||||||
origin: channel.url,
|
origin: channel.url,
|
||||||
@@ -504,7 +504,7 @@ async function fetchScene(url, channel, baseRelease, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const res = await unprint.get(url, {
|
const res = await unprint.get(url, {
|
||||||
interface: 'request',
|
interface: 'curl',
|
||||||
useBrowser: !!options.parameters?.useBrowser,
|
useBrowser: !!options.parameters?.useBrowser,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -606,7 +606,7 @@ async function fetchProfile(actor, { channel }) {
|
|||||||
${imageFragment}
|
${imageFragment}
|
||||||
`,
|
`,
|
||||||
}, {
|
}, {
|
||||||
interface: 'request',
|
interface: 'curl',
|
||||||
headers: {
|
headers: {
|
||||||
referer: channel.url,
|
referer: channel.url,
|
||||||
origin: channel.url,
|
origin: channel.url,
|
||||||
|
|||||||
Reference in New Issue
Block a user