1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-11-04 09:22:29 +01:00

Always save session object when finishing download

Fix #1.
This commit is contained in:
André Koch-Kramer 2016-07-15 15:04:29 +02:00
parent 08515ebfa2
commit bd190159f6

View File

@ -245,6 +245,8 @@ def download(name, username = None, password = None, sessionfile = None, \
node["date"], 'mp4', quiet=quiet)
log(quiet=quiet)
if fast_update and not downloaded:
if test_login(username, session):
save_object(session, sessionfile)
return username
data = get_json(name, get_last_id(data), session)
time.sleep(abs(sleep_min_max[1]-sleep_min_max[0])*random.random()+abs(sleep_min_max[0]))