mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Merge 4adec9e8de
into a079d890ba
This commit is contained in:
commit
dd0541cbe6
4 changed files with 23 additions and 15 deletions
|
@ -5,6 +5,8 @@ import autoProcessTV
|
||||||
import sys, os, ConfigParser, shutil
|
import sys, os, ConfigParser, shutil
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
|
|
||||||
|
from nzbToMediaEnv import *
|
||||||
|
|
||||||
def removeEmptyFolders(path):
|
def removeEmptyFolders(path):
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
return
|
return
|
||||||
|
@ -26,7 +28,7 @@ def removeEmptyFolders(path):
|
||||||
old_stdout = sys.stdout #backup the default stdout
|
old_stdout = sys.stdout #backup the default stdout
|
||||||
log_file = open(os.path.join(os.path.dirname(sys.argv[0]), "postprocess.log"),"a+")
|
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.
|
sys.stdout = log_file #create a local log file, and direct all "print" to the log.
|
||||||
print "INFO: TorrentToMedia V4.2"
|
print "INFO: TorrentToMedia %s" % VERSION
|
||||||
if len(sys.argv) == 4:
|
if len(sys.argv) == 4:
|
||||||
##You can use the following parameters (UTORRENT):
|
##You can use the following parameters (UTORRENT):
|
||||||
##
|
##
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
import sys
|
import sys
|
||||||
import autoProcessMovie
|
import autoProcessMovie
|
||||||
|
|
||||||
print "nzbToCouchPotato V4.1"
|
from nzbToMediaEnv import *
|
||||||
|
|
||||||
|
print "nzbToCouchPotato %s" % VERSION
|
||||||
|
|
||||||
# SABnzbd
|
# SABnzbd
|
||||||
if len(sys.argv) == 8:
|
if len(sys.argv) == 8:
|
||||||
|
|
2
nzbToMediaEnv.py
Normal file
2
nzbToMediaEnv.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
VERSION = 'V4.2'
|
|
@ -25,7 +25,9 @@
|
||||||
import sys
|
import sys
|
||||||
import autoProcessTV
|
import autoProcessTV
|
||||||
|
|
||||||
print "nzbToSickBeard V4.1"
|
from nzbToMediaEnv import *
|
||||||
|
|
||||||
|
print "nzbToSickBeard %s" % VERSION
|
||||||
|
|
||||||
# SABnzbd
|
# SABnzbd
|
||||||
if len(sys.argv) == 8:
|
if len(sys.argv) == 8:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue