aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/cli.py
diff options
context:
space:
mode:
authorGravatar Christopher Rosell <chrippa@tanuki.se>2012-04-21 20:35:43 +0200
committerGravatar Christopher Rosell <chrippa@tanuki.se>2012-04-21 20:35:43 +0200
commite3b3bdf86e9e9921ce6c76e8dd587dbe0b41f33e (patch)
tree6f9ae0c3b56199b05c477baa82bb5218df3b5ba4 /src/livestreamer/cli.py
parent0eb8969b0667fb641356a5734126b645aa211c0f (diff)
Make get_streams always return a dict.
Diffstat (limited to 'src/livestreamer/cli.py')
-rw-r--r--src/livestreamer/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/livestreamer/cli.py b/src/livestreamer/cli.py
index 6187f39..179b80d 100644
--- a/src/livestreamer/cli.py
+++ b/src/livestreamer/cli.py
@@ -26,7 +26,7 @@ def handle_url(args):
streams = channel.get_streams()
- if not streams:
+ if len(streams) == 0:
exit(("No streams found on url: {0}").format(args.url))
keys = list(streams.keys())