From d26b9e96837f6644606f0cb43b5a43e86db486da Mon Sep 17 00:00:00 2001 From: lmcclell <48396038+lmcclell@users.noreply.github.com> Date: Sun, 31 Jan 2021 09:34:06 +1100 Subject: [PATCH] Update to support newer versions of Firefox (#55) --- ffpass/__init__.py | 108 ++++++++++++++++++++++++++++++--------------- 1 file changed, 73 insertions(+), 35 deletions(-) diff --git a/ffpass/__init__.py b/ffpass/__init__.py index 9dd6116..2e80314 100644 --- a/ffpass/__init__.py +++ b/ffpass/__init__.py @@ -13,7 +13,7 @@ ffpass can import and export passwords from Firefox Quantum. example of usage: ffpass export --to passwords.csv - + ffpass import --from passwords.csv \033[0m\033[1;32m\033[F\033[F @@ -25,7 +25,7 @@ If you found this code useful, add a star on 1: - _msg("There is more than one profile") + _msg("More than one profile detected. Please specify a profile to parse (-d path/to/profile)") + _msg("valid profiles:\n\t" + '\n\t'.join(map(str, profiles))) return profile_path = profiles[0] _msg(f"Using profile: {profile_path}") - return profiles[0] + return profile_path def askpass(directory): @@ -357,8 +395,8 @@ def makeParser(required_dir): def main(): global args args = makeParser(False).parse_args() - guessed_dir = guessDir() if args.directory is None: + guessed_dir = guessDir() if guessed_dir is None: args = makeParser(True).parse_args() else: -- 2.52.0