add wpmenu
This commit is contained in:
parent
7f800c8f7b
commit
49c1552062
@ -263,6 +263,8 @@ if __name__ == '__main__':
|
||||
for i in wordpress:
|
||||
importWp.setUrl(i)
|
||||
importWp.fromFile(files=args.file.split(","))
|
||||
menuWp = WPMenu(name="Thread-1", basic=basic, wordpress=args.wordpress, logger=logger, parser=args.parser, ssl_canalblog=ssl_canalblog, ssl_wordpress=ssl_wordpress)
|
||||
menuWp.fromFile("{0}/index.html".format(args.file.split(",")[0]))
|
||||
if len(args.directory) > 0:
|
||||
try:
|
||||
with futures.ThreadPoolExecutor(max_workers=int(args.parallel)) as ex:
|
||||
@ -273,6 +275,9 @@ if __name__ == '__main__':
|
||||
ex.submit(importDirectory, i, int(args.parallel), args.directory, logger, args.parser, args.wordpress, basic, args.serial, ssl_wordpress, args.create, args.update, args.image, args.revert)
|
||||
for i in range(0, int(args.parallel))
|
||||
]
|
||||
wait(wait_for, return_when=ALL_COMPLETED)
|
||||
menuWp = WPMenu(name="Thread-1", basic=basic, wordpress=args.wordpress, logger=logger, parser=args.parser, ssl_canalblog=ssl_canalblog, ssl_wordpress=ssl_wordpress)
|
||||
menuWp.fromFile("{0}/index.html".format(args.directory))
|
||||
except Exception as err:
|
||||
logger.error("Threading error : {0}".format(err))
|
||||
if len(args.canalblog) > 0:
|
||||
@ -285,6 +290,10 @@ if __name__ == '__main__':
|
||||
ex.submit(importUrl, i, int(args.parallel), args.canalblog, logger, args.parser, args.wordpress, basic, args.serial, ssl_wordpress, ssl_canalblog, args.create, args.update, args.image, args.revert, args.tmp)
|
||||
for i in range(0, int(args.parallel))
|
||||
]
|
||||
wait(wait_for, return_when=ALL_COMPLETED)
|
||||
menuWp = WPMenu(name="Thread-1", basic=basic, wordpress=args.wordpress, logger=logger, parser=args.parser, ssl_canalblog=ssl_canalblog, ssl_wordpress=ssl_wordpress)
|
||||
menuWp.fromUrl(args.canalblog)
|
||||
|
||||
|
||||
|
||||
except Exception as err:
|
||||
|
Loading…
x
Reference in New Issue
Block a user