mirror of
https://github.com/inAudible-NG/audible-activator.git
synced 2024-11-18 03:18:57 +01:00
Fixed an error in the code where options where removed by accident
This commit is contained in:
parent
4fc191fee9
commit
33698e7a7b
@ -135,9 +135,23 @@ if __name__ == "__main__":
|
||||
dest="two_factor",
|
||||
default=False,
|
||||
help="Use this option to enable two factor authentication",)
|
||||
parser.add_option("--username",
|
||||
action="store",
|
||||
dest="username",
|
||||
default=False,
|
||||
help="Audible username, use along with the --password option")
|
||||
parser.add_option("--password",
|
||||
action="store",
|
||||
dest="password",
|
||||
default=False,
|
||||
help="Audible password")
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
username = raw_input("Username: ")
|
||||
password = getpass("Password: ")
|
||||
if options.username and options.password:
|
||||
username = options.username
|
||||
password = options.password
|
||||
else:
|
||||
username = raw_input("Username: ")
|
||||
password = getpass("Password: ")
|
||||
|
||||
fetch_activation_bytes(username, password, options)
|
||||
|
Loading…
Reference in New Issue
Block a user