Skip to content

Commit

Permalink
Add odysee.com to /go.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Apr 6, 2021
1 parent ca8d4d9 commit f4839db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.rb
Expand Up @@ -100,6 +100,9 @@
redirect response.json["results"][0]["feedUrl"], 301
elsif /^https?:\/\/(?:www\.)?svtplay\.se/ =~ params[:q]
redirect Addressable::URI.new(path: "/svtplay", query_values: params).normalize.to_s, 301
elsif /^https?:\/\/(?:www\.)?odysee\.com\/@(?<channelClaim>[^\/?#]+)/ =~ params[:q]
# https://odysee.com/@eevblog:7
redirect Addressable::URI.parse("https://lbryfeed.melroy.org/channel/odysee/#{channelClaim}/atom").normalize.to_s, 301
else
return [404, "Unknown service"]
end
Expand Down

0 comments on commit f4839db

Please sign in to comment.