Changed cache times
This commit is contained in:
parent
c5aa7ceb40
commit
02a59cc385
|
@ -211,7 +211,7 @@ def pixelfed_dlposts(acc_id, data):
|
||||||
|
|
||||||
# add support for posts with multiple images
|
# 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)
|
# 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
|
multiple = False
|
||||||
multmedia = None
|
multmedia = None
|
||||||
if len(postdata.keys()) > 0 and 'edge_sidecar_to_children' in postdata['graphql']['shortcode_media']:
|
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...
|
# - much more info...
|
||||||
def getig_user_data(acc_id):
|
def getig_user_data(acc_id):
|
||||||
return json.loads(
|
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
|
# runs a basic GET request emulating Tor Browser
|
||||||
|
|
Loading…
Reference in New Issue