From 3a7a8d6b649e59c2d78df734e368b46771a0b7e5 Mon Sep 17 00:00:00 2001 From: nonotest Date: Sun, 25 Nov 2018 20:54:59 +0800 Subject: [PATCH] rename ig cookie --- .gitignore | 2 +- source/instagram.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 487339c..5b86c25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ token.json credentials.json .env -ig-cookie +.ig-cookie diff --git a/source/instagram.go b/source/instagram.go index d923972..ac235fc 100644 --- a/source/instagram.go +++ b/source/instagram.go @@ -16,7 +16,7 @@ type Instagram struct { // NewInstagram returns a struct with initialised instagram api. func NewInstagram(env map[string]string, conf Conf) (*Instagram, error) { - insta, err := goinsta.Import("ig-cookie") + insta, err := goinsta.Import(env["IG_COOKIE_PATH"]) if err != nil { return nil, err }