Skip to content

Commit

Permalink
tweeking
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Jul 4, 2011
1 parent 8d4e8d2 commit 9b6dee9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/tss_web_server.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ class TSSWebServer < Sinatra::Base
end end


get("/ustream") do get("/ustream") do
# key=339100083E900F21974AE0A065A54BF2
channel = params[:channel] channel = params[:channel]
info = JSON.load( info = JSON.load(
open("http://api.ustream.tv/json/channel/%s/getInfo" % CGI.escape(channel)){ |f| f.read() }) open("http://api.ustream.tv/json/channel/%s/getInfo?key=339100083E900F21974AE0A065A54BF2" % CGI.escape(channel)){ |f| f.read() })
@channel_id = info["results"]["id"] @channel_id = info["results"]["id"] rescue "cnn"
query = info["results"]["socialStream"]["hashtag"] query = info["results"]["socialStream"]["hashtag"] rescue "cnn"
return search(query, :ustream, false) return search(query, :ustream, false)
end end


Expand Down
2 changes: 1 addition & 1 deletion views/search.erubis
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
function onLoad() { function onLoad() {
initialize(); initialize();
// supress left column // supress left column
onCloseLeftButtonClick(); // onCloseLeftButtonClick();
} }


</script> </script>
Expand Down

0 comments on commit 9b6dee9

Please sign in to comment.