fix path with url
This commit is contained in:
parent
77e61ef571
commit
4d073e0254
@ -165,11 +165,11 @@ if __name__ == '__main__':
|
||||
url = o.geturl().replace(":///", "://")
|
||||
if args.js is False:
|
||||
script = getScriptCss(url, True, False, logger)
|
||||
downloadPage(script, "{0}/{1}".format(args.dir, "dists/js"), logger)
|
||||
downloadPage(script, "{0}/{1}/{2}".format(args.dir, o.path, "dists/js"), logger)
|
||||
|
||||
if args.css is False:
|
||||
css = getScriptCss(url, False, True, logger)
|
||||
downloadPage(css, "{0}/{1}".format(args.dir, "dists/css"), logger)
|
||||
downloadPage(css, "{0}/{1}/{2}".format(args.dir, o.path, "dists/css"), logger)
|
||||
|
||||
if args.html is False or args.img is False:
|
||||
webpage = getUrlPage(url, logger)
|
||||
@ -178,6 +178,4 @@ if __name__ == '__main__':
|
||||
|
||||
if args.img is False:
|
||||
page_src = getImg(webpage, logger)
|
||||
downloadPage(page_src, "{0}/{1}".format(args.dir, "img"), logger)
|
||||
|
||||
#
|
||||
downloadPage(page_src, "{0}/{1}/{2}".format(args.dir, o.path, "img"), logger)
|
Loading…
x
Reference in New Issue
Block a user