best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
instagram: check if cookie exists before using it in second fallback
wukko2561cf168e12
diff --git a/src/modules/processing/services/instagram.js b/src/modules/processing/services/instagram.jsindex d27a5693..33c9f21c 100644--- a/src/modules/processing/services/instagram.js+++ b/src/modules/processing/services/instagram.js@@ -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';