Changed cache times

This commit is contained in:
Bofh 2021-02-09 12:01:16 +01:00
parent c5aa7ceb40
commit 02a59cc385
1 changed files with 2 additions and 2 deletions

View File

@ -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