projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37cf396
)
added support for "open" follow https:// links
author
Elliot Williams
<elliot@pre.postero.us>
Tue, 26 Aug 2014 14:26:43 +0000
(16:26 +0200)
committer
Elliot 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
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 4b346828ef144e72934114ad587e39b7a4643c96..5542ca7ba6947184fd0af8183471095df9f94d02 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-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