|
@@ -209,8 +209,8 @@ type IgGraphQLTimelineMediaNode = {
|
|
|
{__typename: 'GraphImage'} |
|
|
|
{__typename: 'GraphSidecar', edge_sidecar_to_children: {
|
|
|
edges: {node: (IgGraphQLTimelineMediaNode & {__typename: 'GraphImage'})}[],
|
|
|
- }, } |
|
|
|
- {__typename: 'GraphVideo', video_url: string, product_type?: 'igtv' }
|
|
|
+ }} |
|
|
|
+ {__typename: 'GraphVideo', video_url: string, product_type?: 'igtv'}
|
|
|
);
|
|
|
|
|
|
export type IgGraphQLUser = {
|
|
@@ -393,7 +393,7 @@ export default class {
|
|
|
page = newPage;
|
|
|
const startTime = new Date().getTime();
|
|
|
const getTimerTime = () => new Date().getTime() - startTime;
|
|
|
- const getTimeout = () => isWaitingForLogin ? 0 : Math.max(90000, this.webshotDelay - getTimerTime());
|
|
|
+ const getTimeout = () => isWaitingForLogin ? 0 : Math.max(5000, this.webshotDelay / 2 - getTimerTime());
|
|
|
return page.context().addCookies(this.webshotCookies)
|
|
|
.then(() => page.goto(url, {waitUntil: 'load', timeout: getTimeout()}))
|
|
|
.then(response => {
|