aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/livestreamer/cli.py')
-rw-r--r--src/livestreamer/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/livestreamer/cli.py b/src/livestreamer/cli.py
index a36c837..f294d35 100644
--- a/src/livestreamer/cli.py
+++ b/src/livestreamer/cli.py
@@ -265,8 +265,8 @@ def main():
if args.stdout or args.output == "-":
set_msg_output(sys.stderr)
- if args.gomtv_password is True:
- gomtv_password = getpass.getpass("GOMTV Password:")
+ if args.gomtv_username and (args.gomtv_password is None or (len(args.gomtv_password) < 1)):
+ gomtv_password = getpass.getpass("Enter GOMTV password: ")
else:
gomtv_password = args.gomtv_password