mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
log last details.
This commit is contained in:
parent
e4533510ed
commit
f7ed953815
1 changed files with 6 additions and 1 deletions
|
@ -364,8 +364,13 @@ if status == 0:
|
|||
else:
|
||||
Logger.info("calling autoProcess script for failed download")
|
||||
## Now we pass off to CouchPotato or SickBeard.
|
||||
# still need to figure out how to log this output.
|
||||
## log this output.
|
||||
old_stdout = sys.stdout ## Still crude, but we wat to capture this for now.
|
||||
log_file = open(logFile,"a+")
|
||||
sys.stdout = log_file
|
||||
if Category == Movie_Cat:
|
||||
autoProcessMovie.process(destination, Name, status)
|
||||
elif Category == TV_Cat:
|
||||
autoProcessTV.processEpisode(destination, Name, status)
|
||||
sys.stdout = old_stdout
|
||||
log_file.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue