mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Cleaned out left behind code mistake.
Fixed parse_args to pass sys.argv as args array.
This commit is contained in:
parent
eac9619dcb
commit
a9d3ee2a60
2 changed files with 13 additions and 14 deletions
|
@ -223,10 +223,9 @@ def initialize(section=None):
|
|||
SAMPLEIDS = (CFG["Extensions"]["SampleIDs"]) # sample,-s.
|
||||
|
||||
# check for script-defied section and if None set to allow sections
|
||||
SECTIONS = ("CouchPotato", "SickBeard", "NzbDrone", "HeadPhones", "Mylar", "Gamez")
|
||||
if section:
|
||||
SECTIONS = (section,)
|
||||
else:
|
||||
SECTIONS = ("CouchPotato", "SickBeard", "NzbDrone", "HeadPhones", "Mylar", "Gamez")
|
||||
|
||||
SUBSECTIONS = CFG[SECTIONS]
|
||||
CATEGORIES += SUBSECTIONS.sections
|
||||
|
|
|
@ -350,11 +350,11 @@ def parse_utorrent(args):
|
|||
|
||||
def parse_deluge(args):
|
||||
# Deluge usage: call TorrentToMedia.py TORRENT_ID TORRENT_NAME TORRENT_DIR
|
||||
inputDirectory = os.path.normpath(sys.argv[3])
|
||||
inputName = sys.argv[2]
|
||||
inputDirectory = os.path.normpath(args[3])
|
||||
inputName = args[2]
|
||||
inputCategory = '' # We dont have a category yet
|
||||
inputHash = sys.argv[1]
|
||||
inputID = sys.argv[1]
|
||||
inputHash = args[1]
|
||||
inputID = args[1]
|
||||
return inputDirectory, inputName, inputCategory, inputHash, inputID
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue