aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/cli.py
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-27 13:51:17 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-08-27 13:51:17 +0200
commit8a9578b460383c983de269742838f8515e9311c7 (patch)
treea98082909a09164e655be5f12018cc9e4c033cf8 /src/livestreamer/cli.py
parent009c8bd2dff12a696be3b55d4de134cc9074ff55 (diff)
livestreamer.plugins.gomtv: Add some logging.
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