From 008ebd6f459245e23935e4a5a7e51490fa35d578 Mon Sep 17 00:00:00 2001 From: "Chris K.Y. FUNG" Date: Wed, 9 Dec 2020 03:02:18 +0800 Subject: [PATCH] Fix JSON parse for download #11 --- gascript/code.gs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gascript/code.gs b/gascript/code.gs index 4b6b8cc..1f12b6f 100644 --- a/gascript/code.gs +++ b/gascript/code.gs @@ -57,7 +57,7 @@ function parseDownloadUrl(html,isTest){ fetchContentlog.clear(); fetchContentlog.appendParagraph(html); var body = fetchContentlog.getBody().getText(); - var data = JSON.parse(body).data; + var data = JSON.parse(body); } var items = data.reels_media[0].items;