Disable console window when running task scheduler

This commit is contained in:
JonnyWong16 2020-12-22 16:24:21 -08:00
commit 7f84353c69
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -302,7 +302,9 @@ def update():
elif plexpy.INSTALL_TYPE == 'windows': elif plexpy.INSTALL_TYPE == 'windows':
logger.info('Calling Windows scheduled task to update Tautulli') logger.info('Calling Windows scheduled task to update Tautulli')
subprocess.Popen(['SCHTASKS', '/Run', '/TN', 'TautulliUpdateTask']) CREATE_NO_WINDOW = 0x08000000
subprocess.Popen(['SCHTASKS', '/Run', '/TN', 'TautulliUpdateTask'],
creationflags=CREATE_NO_WINDOW)
elif plexpy.INSTALL_TYPE == 'git': elif plexpy.INSTALL_TYPE == 'git':
output, err = runGit('pull --ff-only {} {}'.format(plexpy.CONFIG.GIT_REMOTE, output, err = runGit('pull --ff-only {} {}'.format(plexpy.CONFIG.GIT_REMOTE,