StandardRB
This commit is contained in:
@@ -8,7 +8,7 @@ module Adamantium
|
||||
|
||||
def call(env)
|
||||
session = env["rack.session"]
|
||||
return [403, {'Content-Type' => 'text/html'}, ["Unauthorized | <a href=\"/admin/login\">Login</>"]] unless @auth_proc.call(session[:user_id])
|
||||
return [403, {"Content-Type" => "text/html"}, ["Unauthorized | <a href=\"/admin/login\">Login</>"]] unless @auth_proc.call(session[:user_id])
|
||||
|
||||
@app.call(env)
|
||||
end
|
||||
|
@@ -20,7 +20,7 @@ module Adamantium
|
||||
podcast_list = []
|
||||
|
||||
doc.xpath("//outline[@type='rss']").each_with_object(podcast_list) do |rss, memo|
|
||||
podcasts = rss.xpath("outline[@type='podcast-episode']").select{|ep| ep.get_attribute("played") == "1" }
|
||||
podcasts = rss.xpath("outline[@type='podcast-episode']").select { |ep| ep.get_attribute("played") == "1" }
|
||||
|
||||
name = rss.get_attribute("title")
|
||||
|
||||
@@ -43,4 +43,4 @@ module Adamantium
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user