From: witti96 Date: Sat, 29 Nov 2014 16:26:11 +0000 (+0100) Subject: ability to give lists name as switch argument X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=be30b703d786390e7cf89d67addda621139801b8;p=rainbowstream.git ability to give lists name as switch argument --- 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