From be30b703d786390e7cf89d67addda621139801b8 Mon Sep 17 00:00:00 2001 From: witti96 Date: Sat, 29 Nov 2014 17:26:11 +0100 Subject: [PATCH] ability to give lists name as switch argument --- rainbowstream/rainbow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 0bfc2af..7fdab84 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1314,7 +1314,10 @@ def switch(): th.start() # Stream base on list elif target == 'list': - owner, slug = get_slug() + try: + owner, slug = check_slug(g['stuff'].split()[1]) + except: + owner, slug = get_slug() # Force python 2 not redraw readline buffer listname = '/'.join([owner, slug]) # Set the listname variable -- 2.25.1