jshackles / idle_master_py

The Python version of Idle Master
GNU General Public License v2.0
230 stars 71 forks source link

Having to copy cookie from browser twice a day or so? #28

Open dougmc0 opened 8 years ago

dougmc0 commented 8 years ago

idle_master.py is working fine for me, however I find that I need to update my SteamLogin cookie in settings.txt from my browser every twelve hours or so.

The sessionid doesn't change, but the SteamLogin cookie does.

The browser never logs out, but idle_master.py does, and it gives this error --

[ 05/27/2016 08:16:31 PM ] Still unable to find drop info. [ 05/27/2016 08:16:31 PM ] Sleeping for 5 minutes.

... until I stop it and fix the problem and restart.

Reloading steamcommunity.com in my browser doesn't seem to affect it, and my browser never logs out -- just idle master.

Any way of fixing this?

Gummibeer commented 7 years ago

I bet that steam is using any kind of expiration auth tokens that have a short soft expiration and a much longer hard but after you have used your exired one time you get the new cookies but idle master has a fixed set of cookies so that steam kicks it out. I've tested to automate it by reading the chrome cookie storage that's a sqlite database but the values are encrypted so that it's not this easy. :/

barnaba commented 7 years ago

A good first step towards fixing that might be closing the steam idler when the cookie expires. Currently it still thinks it's idling (at least on linux). That would facilitate automation of provisioning cookies via external tools with a simple bash loop, without having to modify idle master.

97997 commented 6 years ago

Is there a way to automate the provisioning of cookies? I've the same problem.