Using unprint's cURL for Vixen.
This commit is contained in:
@@ -75,7 +75,7 @@ function scrapeAll(scenes, channel) {
|
||||
async function fetchLatest(site, page = 1) {
|
||||
const url = `${site.url}/videos?page=${page}`;
|
||||
const res = await unprint.get(url, {
|
||||
interface: 'request',
|
||||
interface: 'curl',
|
||||
});
|
||||
|
||||
if (res.ok) {
|
||||
@@ -194,7 +194,7 @@ async function fetchUpcoming(channel) {
|
||||
site: channel.slug.toUpperCase(),
|
||||
},
|
||||
}, {
|
||||
interface: 'request',
|
||||
interface: 'curl',
|
||||
});
|
||||
|
||||
if (res.ok) {
|
||||
@@ -263,7 +263,7 @@ async function getTrailer(videoId, channel, url) {
|
||||
}
|
||||
`,
|
||||
}, {
|
||||
interface: 'request',
|
||||
interface: 'curl',
|
||||
headers: {
|
||||
referer: url,
|
||||
origin: channel.url,
|
||||
@@ -482,7 +482,7 @@ async function fetchGraphqlScene(release, channel) {
|
||||
}
|
||||
`,
|
||||
}, {
|
||||
interface: 'request',
|
||||
interface: 'curl',
|
||||
headers: {
|
||||
referer: release.url,
|
||||
origin: channel.url,
|
||||
@@ -504,7 +504,7 @@ async function fetchScene(url, channel, baseRelease, options) {
|
||||
}
|
||||
|
||||
const res = await unprint.get(url, {
|
||||
interface: 'request',
|
||||
interface: 'curl',
|
||||
useBrowser: !!options.parameters?.useBrowser,
|
||||
});
|
||||
|
||||
@@ -606,7 +606,7 @@ async function fetchProfile(actor, { channel }) {
|
||||
${imageFragment}
|
||||
`,
|
||||
}, {
|
||||
interface: 'request',
|
||||
interface: 'curl',
|
||||
headers: {
|
||||
referer: channel.url,
|
||||
origin: channel.url,
|
||||
|
||||
Reference in New Issue
Block a user