mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Updated TorrentToMedia for braid
This commit is contained in:
parent
bf80d6ae5f
commit
b23a21e178
1 changed files with 21 additions and 14 deletions
|
@ -1,12 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
#System imports
|
||||
import ConfigParser
|
||||
import sys
|
||||
import os
|
||||
import shutil
|
||||
|
||||
# Custom imports
|
||||
import linktastic.linktastic as linktastic
|
||||
import autoProcessMovie
|
||||
import autoProcessTV
|
||||
import sys, os, ConfigParser, shutil
|
||||
import linktastic
|
||||
|
||||
from nzbToMediaEnv import *
|
||||
|
||||
|
||||
def removeEmptyFolders(path):
|
||||
if not os.path.isdir(path):
|
||||
return
|
||||
|
@ -25,6 +31,7 @@ def removeEmptyFolders(path):
|
|||
print "INFO: Removing empty folder: %s" % (path)
|
||||
os.rmdir(path)
|
||||
|
||||
|
||||
old_stdout = sys.stdout # backup the default stdout
|
||||
log_file = open(os.path.join(os.path.dirname(sys.argv[0]), "postprocess.log"), "a+")
|
||||
sys.stdout = log_file # create a local log file, and direct all "print" to the log.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue