Cleaned out left behind code mistake.

Fixed parse_args to pass sys.argv as args array.
This commit is contained in:
echel0n 2014-04-17 05:44:03 -07:00
commit a9d3ee2a60
2 changed files with 13 additions and 14 deletions

View file

@ -223,10 +223,9 @@ def initialize(section=None):
SAMPLEIDS = (CFG["Extensions"]["SampleIDs"]) # sample,-s. SAMPLEIDS = (CFG["Extensions"]["SampleIDs"]) # sample,-s.
# check for script-defied section and if None set to allow sections # check for script-defied section and if None set to allow sections
SECTIONS = ("CouchPotato", "SickBeard", "NzbDrone", "HeadPhones", "Mylar", "Gamez")
if section: if section:
SECTIONS = (section,) SECTIONS = (section,)
else:
SECTIONS = ("CouchPotato", "SickBeard", "NzbDrone", "HeadPhones", "Mylar", "Gamez")
SUBSECTIONS = CFG[SECTIONS] SUBSECTIONS = CFG[SECTIONS]
CATEGORIES += SUBSECTIONS.sections CATEGORIES += SUBSECTIONS.sections

View file

@ -350,11 +350,11 @@ def parse_utorrent(args):
def parse_deluge(args): def parse_deluge(args):
# Deluge usage: call TorrentToMedia.py TORRENT_ID TORRENT_NAME TORRENT_DIR # Deluge usage: call TorrentToMedia.py TORRENT_ID TORRENT_NAME TORRENT_DIR
inputDirectory = os.path.normpath(sys.argv[3]) inputDirectory = os.path.normpath(args[3])
inputName = sys.argv[2] inputName = args[2]
inputCategory = '' # We dont have a category yet inputCategory = '' # We dont have a category yet
inputHash = sys.argv[1] inputHash = args[1]
inputID = sys.argv[1] inputID = args[1]
return inputDirectory, inputName, inputCategory, inputHash, inputID return inputDirectory, inputName, inputCategory, inputHash, inputID