added support for "open" follow https:// links
authorElliot Williams <elliot@pre.postero.us>
Tue, 26 Aug 2014 14:26:43 +0000 (16:26 +0200)
committerElliot Williams <elliot@pre.postero.us>
Tue, 26 Aug 2014 14:26:43 +0000 (16:26 +0200)
open only works for links that start with "http://"
extended to deal with "https://"

rainbowstream/rainbow.py

index 4b34682..5542ca7 100644 (file)
@@ -463,6 +463,8 @@ def urlopen():
         tweet = t.statuses.show(id=tid)
         link_ary = [
             u for u in tweet['text'].split() if u.startswith('http://')]
+        link_ary.extend([
+            u for u in tweet['text'].split() if u.startswith('https://')])
         if not link_ary:
             printNicely(light_magenta('No url here @.@!'))
             return