Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbfa8f1

Browse files
committed
Fix for a bug reported by the user (conf.scheme/conf.hostname/conf.port were None in multiple targets mode)
1 parent 0e4800f commit dbfa8f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def crawlThread():
127127
test = readInput(message, default="n")
128128
if test[0] in ("y", "Y"):
129129
items = None
130-
url = "%s://%s:%d/sitemap.xml" % (conf.scheme, conf.hostname, conf.port)
130+
url = urlparse.urljoin(target, "/sitemap.xml")
131131
try:
132132
items = parseSitemap(url)
133133
except:

0 commit comments

Comments
 (0)