From 02a59cc3857b79d33b5e1e1a38477ee08d0c8a81 Mon Sep 17 00:00:00 2001 From: Bofh Date: Tue, 9 Feb 2021 12:01:16 +0100 Subject: [PATCH] Changed cache times --- igmirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/igmirror.py b/igmirror.py index d170dd6..1a6888e 100644 --- a/igmirror.py +++ b/igmirror.py @@ -211,7 +211,7 @@ def pixelfed_dlposts(acc_id, data): # add support for posts with multiple images # get the data from the post URL. (we need all images, as IG can have not only 1 image in the post) - postdata = json.loads(instagram_get('/p/{}/?__a=1'.format(item['shortcode']), 3600)) + postdata = json.loads(instagram_get('/p/{}/?__a=1'.format(item['shortcode']), 216000)) multiple = False multmedia = None if len(postdata.keys()) > 0 and 'edge_sidecar_to_children' in postdata['graphql']['shortcode_media']: @@ -432,7 +432,7 @@ def md5sum(_str): # - much more info... def getig_user_data(acc_id): return json.loads( - instagram_get('/{}/?__a=1'.format(acc_id), 3600) + instagram_get('/{}/?__a=1'.format(acc_id), 1800) ) # runs a basic GET request emulating Tor Browser