 
 
   def unpause_and_reset_failure_count(id) do
-    Repo.get(Podcast, id)
-    |> PanWeb.Podcast.changeset(%{update_paused: false,
-                                  failure_count: 0})
+    Podcast
+    |> Repo.get(id)
+    |> PanWeb.Podcast.changeset(%{update_paused: false, failure_count: 0})
     |> Repo.update([force: true])
   end
 

  def increase_failure_count(id) do
    podcast = Repo.get(Podcast, id)

    Podcast.changeset(podcast, %{failure_count: (podcast.failure_count || 0) + 1})
    |> Repo.update([force: true])

    if podcast.failure_count == 9 do
      Podcast.changeset(podcast, %{retired: true})
      |> Repo.update([force: true])
    end
  end

        {:ok, podcast}
    end
  end


  def delta_import(id) do
    with {:ok, feed} <- get_feed_by_podcast_id(id),
