Skip to content

Commit

Permalink
Fix JSON parse for download #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris K.Y. FUNG committed Dec 8, 2020
1 parent a0a8c9b commit 008ebd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gascript/code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 008ebd6

Please sign in to comment.