instagram: check if cookie exists before using it in second fallback

This commit is contained in:
wukko 2024-04-20 20:44:58 +06:00
parent 1ff49f0669
commit 2561cf168e
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -201,7 +201,7 @@ async function getPost(id) {
const cookie = getCookie('instagram');
data = await requestHTML(id);
if (!data) data = await requestHTML(id, cookie);
if (!data && cookie) data = await requestHTML(id, cookie);
if (!data) {
dataType = 'new';