Skip to content

Commit

Permalink
Fix Periscope.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Oct 1, 2016
1 parent ba8b386 commit d370ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/periscope_party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.get_broadcasts(user_id)
doc = Nokogiri::HTML(response.body)
data = doc.at("div#page-container")["data-store"]
json = JSON.parse(data)
session_id = json["SessionToken"]["broadcastHistory"]["token"]["session_id"]
session_id = json["SessionToken"]["public"]["broadcastHistory"]["token"]["session_id"]
get("/getUserBroadcastsPublic", query: { user_id: user_id, session_id: session_id })
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/05-string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def embed_html(request)
elsif %r{^https?://[a-z0-9\-._~:/?#\[\]@!$&'()*+,;=]+\.mp4}i =~ self
"<iframe width='640' height='538' src='#{self}' frameborder='0' scrolling='no' allowfullscreen></iframe>"
elsif %r{^https?://amp\.twimg\.com/v/.+}i =~ self
"<iframe width='640' height='530' src='#{self}' frameborder='0' scrolling='no' allowfullscreen></iframe>"
"<iframe width='640' height='600' src='#{self}' frameborder='0' scrolling='no' allowfullscreen></iframe>"
end
end
end

0 comments on commit d370ef5

Please sign in to comment.