mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -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
|
@ -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