Added campaign retrieval function, added banner to homepage.

This commit is contained in:
DebaucheryLibrarian
2022-07-18 02:42:30 +02:00
parent bb055e6ecc
commit cd187fac16
7 changed files with 357 additions and 464 deletions

View File

@@ -120,10 +120,9 @@ async function fetchLatest(channel, page = 1) {
}
async function fetchUpcoming(channel) {
const url = 'https://pervcity.com';
const res = await qu.getAll(url, '.upcoming .videoBlock');
const res = await qu.getAll(channel.url, '.upcoming .videoBlock');
return res.ok ? scrapeAll(res.items, channel.parent) : res.status;
return res.ok ? scrapeAll(res.items, channel.parameters?.native ? channel : channel.parent) : res.status;
}
async function fetchScene(url, entity) {