ability to give lists name as switch argument
authorwitti96 <niklas96w@gmail.com>
Sat, 29 Nov 2014 16:26:11 +0000 (17:26 +0100)
committerwitti96 <niklas96w@gmail.com>
Sat, 29 Nov 2014 16:26:11 +0000 (17:26 +0100)
rainbowstream/rainbow.py

index 0bfc2af332053455b460996ca5f0aea502382db7..7fdab8498e3908e4057c9fadbfec5b70f937ea26 100644 (file)
@@ -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