[news] normalize URL before performing a join

This commit is contained in:
nemunaire 2015-10-11 17:08:30 +02:00
parent 20105e7d98
commit eb95480c8f

View File

@ -25,6 +25,7 @@ def help_full():
# MODULE CORE #########################################################
def find_rss_links(url):
url = web.getNormalizedURL(url)
soup = BeautifulSoup(web.getURLContent(url))
for rss in soup.find_all('link', attrs={"type": re.compile("^application/(atom|rss)")}):
yield urljoin(url, rss["href"])