Added campaign retrieval function, added banner to homepage.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user