Improved MindGeek scraper session check to prevent crash when network session isn't available yet.
This commit is contained in:
parent
c7b9ec7a4b
commit
6b4aa64d74
|
@ -321,6 +321,7 @@ export default {
|
|||
}
|
||||
|
||||
.row {
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
|
|
@ -234,7 +234,7 @@ async function fetchLatest(site, page = 1, options) {
|
|||
const { searchParams } = new URL(url);
|
||||
const siteId = searchParams.get('site');
|
||||
|
||||
const { session, instanceToken } = options.beforeNetwork || await getSession(site, options.parameters);
|
||||
const { session, instanceToken } = options.beforeNetwork?.headers?.Instance ? options.beforeNetwork : await getSession(site, options.parameters);
|
||||
|
||||
const beforeDate = moment().add('1', 'day').format('YYYY-MM-DD');
|
||||
const limit = 24;
|
||||
|
|
Loading…
Reference in New Issue