support atom feed

Hi, I just changed the code so that it can detect the atom feed url. Can you merge this pull request?  Thanks.