Skip to content

Commit

Permalink
Fix runs with bad links.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Jan 14, 2017
1 parent 3634408 commit 4bf78db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/speedrun_feed.erb
Expand Up @@ -9,8 +9,10 @@
<%-
@data.each do |run|
players = run["players"]["data"].map { |player| player["name"] || player["names"]["international"] }
videos = if run["videos"]
videos = if run["videos"]["links"]
"Videos: " + run["videos"]["links"].map { |link| link["uri"] }.join(" | ")
elsif run["videos"]["text"]
"Videos: " + run["videos"]["text"]
else
"No video"
end
Expand Down

0 comments on commit 4bf78db

Please sign in to comment.