           url: entry.link || entry.id,
           content: entry.summary,
           date: elem(parse_date(entry.updated), 1),
-          guid: entry.id
+          guid: entry.id || entry.link
         }
 
         case Repo.get_by(Item, guid: item.guid) do

    Enum.each(Repo.all(Feed), fn feed ->
      # Fetch data
      HTTPoison.start
      {:ok, %HTTPoison.Response{body: body}} = HTTPoison.get(feed.url)

      # Parse it
      {:ok, parsed_feed, _} = FeederEx.parse(body)

      # Update feed items
      Enum.each(parsed_feed.entries, fn entry ->

  defp parse_date(date) do
    use Timex

    format = case date do
      nil -> :unknown
      _ -> find_dateformat(date)
    end

    pipe_matching(x, {:ok, x},
      case format do
