intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit 07f13bd10c8cae1146f7487ce4a2141b3aa5c905
parent b16acbed30fbaf0b439145f8a941a870e5c46669
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Fri, 11 Nov 2016 20:11:38 +0100

Fix commands
Diffstat:
Mintel_screenbot/__init__.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/intel_screenbot/__init__.py b/intel_screenbot/__init__.py @@ -21,10 +21,10 @@ def _open_file(name): def _screencap(url, filename, SACSID, CSRF, search, bot, event): logger.info("screencapping {} and saving as {}".format(url, filename)) if search == False: - command = ['phantomjs', 'hangupsbot/plugins/intel_screenbot/screencap.js', SACSID, CSRF, url, filename] + command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap.js "' + SACSID + '" "' + CSRF + '" "' + url + '" "' + filename + '"' process = yield from asyncio.create_subprocess_exec(command, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) else: - command = ['phantomjs', 'hangupsbot/plugins/intel_screenbot/screencap.js', SACSID, CSRF, url, filename, search] + command = 'phantomjs hangupsbot/plugins/intel_screenbot/screencap.js "' + SACSID + '" "' + CSRF + '" "' + url + '" "' + filename + '" "' + search + '"' process = yield from asyncio.create_subprocess_exec(command, shell=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) # make sure phantomjs has time to download/process the page