Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts 92f8d967ed
Handle feed URL redirects
Closes #1
2019-06-30 21:51:31 -04:00
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ defmodule Frenzy.UpdateFeeds do
name == "Location" name == "Location"
end) end)
Logger.debug("Got 301 redirect from #{url} to #{new_url}, updating feed URL") Logger.debug("Got 301 redirect from #{feed.feed_url} to #{new_url}, updating feed URL")
changeset = Feed.changeset(feed, %{feed_url: new_url}) changeset = Feed.changeset(feed, %{feed_url: new_url})
{:ok, feed} = Repo.insert(changeset) {:ok, feed} = Repo.insert(changeset)
update_feed(feed) update_feed(feed)