Skip to content

Commit

Permalink
Rename views.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Apr 26, 2020
1 parent ea3d463 commit 3ec7f55
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
t["full_text"].grep_urls
end.flatten.tap { |urls| URL.resolve(urls) }

erb :twitter_feed
erb :"twitter.atom"
end

get "/youtube" do
Expand Down Expand Up @@ -340,7 +340,7 @@
video["snippet"]["description"].grep_urls
end.flatten.tap { |urls| URL.resolve(urls) }

erb :youtube_feed
erb :"youtube.atom"
end

get %r{/googleplus/(?<id>\d+)/(?<username>.+)} do |id, username|
Expand Down Expand Up @@ -521,7 +521,7 @@
post.slice("message", "description", "link").values.map(&:grep_urls)
end.flatten.tap { |urls| URL.resolve(urls) }

erb :facebook_feed
erb :"facebook.atom"
end

get "/instagram" do
Expand Down Expand Up @@ -658,7 +658,7 @@
post["node"]["edge_media_to_caption"]["edges"][0]["node"]["text"].grep_urls
end.flatten.tap { |urls| URL.resolve(urls) }

erb :instagram_feed
erb :"instagram.atom"
end

get "/periscope" do
Expand Down Expand Up @@ -705,7 +705,7 @@
@username
end

erb :periscope_feed
erb :"periscope.atom"
end

get %r{/periscope_img/(?<broadcast_id>[^/]+)} do |id|
Expand Down Expand Up @@ -788,7 +788,7 @@
track["description"]
end.compact.map(&:grep_urls).flatten.tap { |urls| URL.resolve(urls) }

erb :soundcloud_feed
erb :"soundcloud.atom"
end

get "/mixcloud" do
Expand Down Expand Up @@ -817,7 +817,7 @@
@username = @data[0]["user"]["username"] rescue CGI.unescape(username)
@user = @data[0]["user"]["name"] rescue CGI.unescape(user)

erb :mixcloud_feed
erb :"mixcloud.atom"
end

get "/twitch" do
Expand Down Expand Up @@ -995,7 +995,7 @@
video["description"]
end.compact.map(&:grep_urls).flatten.tap { |urls| URL.resolve(urls) }

erb :twitch_feed
erb :"twitch.atom"
end

get %r{/twitch/(?<id>\d+)/(?<user>.+)} do |id, user|
Expand All @@ -1021,7 +1021,7 @@
video["description"]
end.compact.map(&:grep_urls).flatten.tap { |urls| URL.resolve(urls) }

erb :twitch_feed
erb :"twitch.atom"
end

get "/speedrun" do
Expand Down Expand Up @@ -1066,7 +1066,7 @@
].flatten.compact.map(&:grep_urls)
end.flatten.tap { |urls| URL.resolve(urls) }

erb :speedrun_feed
erb :"speedrun.atom"
end

get "/ustream" do
Expand Down Expand Up @@ -1103,7 +1103,7 @@
video["description"]
end.compact.map(&:grep_urls).flatten.tap { |urls| URL.resolve(urls) }

erb :ustream_feed
erb :"ustream.atom"
end

get "/ustream/download" do
Expand Down Expand Up @@ -1171,7 +1171,7 @@
raise(DailymotionError, response) if !response.success?
@data = response.json["list"]

erb :dailymotion_feed
erb :"dailymotion.atom"
end

get "/imgur" do
Expand Down Expand Up @@ -1259,7 +1259,7 @@
image["description"]
end.flatten.compact.map(&:grep_urls).flatten.tap { |urls| URL.resolve(urls) }

erb :imgur_feed
erb :"imgur.atom"
end

get "/svtplay" do
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3ec7f55

Please sign in to comment.