eggplants / get-pixivpy-token

Get your Pixiv token easily (for running upbit/pixivpy)
MIT License
117 stars 9 forks source link

Fix #118 - headless not working as intended and login details not being filled #123

Closed exentio closed 8 months ago

exentio commented 8 months ago

Fixing issue #118.
The previous code only filled the login data when set to headless, makes no sense if the login data is provided beforehand.
The new behavior is asking for manual login only if the login data is missing, by forcing no headless. If both username and password are provided, the user can use either headless or no headless.
I also fixed an issue that made the login function always override the headless flag with False unless specified every time.
Finally, I updated the readme to better explain the accepted arguments.

eggplants commented 8 months ago

Sorry for my silly mistake and thank you for your fixing!