Fix for a bug reported by the user (conf.scheme/conf.hostname/conf.port were None in multiple targets mode)

This commit is contained in:
Miroslav Stampar 2015-04-14 11:05:17 +02:00
parent 0e4800f73c
commit dbfa8f1cfc

View File

@ -127,7 +127,7 @@ def crawl(target):
test = readInput(message, default="n")
if test[0] in ("y", "Y"):
items = None
url = "%s://%s:%d/sitemap.xml" % (conf.scheme, conf.hostname, conf.port)
url = urlparse.urljoin(target, "/sitemap.xml")
try:
items = parseSitemap(url)
except: