mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Lowered utorrent args by 1. remove uselink test
Since we don't pass sys.argv[1] as 'utorrent' we need to reduce the input arg numbers by 1. We can't (as I understand) test for useLink here unless we pass it in... so let's just set up utorrentClass anyway and test for uselink back in TorrentToMedia.py also added try, except as this can cause issues if these parameters are not passed in... maybe a bit unnecessary, but doesn't hurt.
This commit is contained in:
parent
cd69ad8a5b
commit
dc379491e8
1 changed files with 8 additions and 5 deletions
|
@ -18,14 +18,17 @@ def parse_other(args):
|
|||
|
||||
def parse_utorrent(args):
|
||||
# uTorrent usage: call TorrentToMedia.py "%D" "%N" "%L" "%I"
|
||||
inputDirectory = os.path.normpath(sys.argv[2])
|
||||
inputName = sys.argv[3]
|
||||
inputDirectory = os.path.normpath(sys.argv[1])
|
||||
inputName = sys.argv[2]
|
||||
try:
|
||||
inputCategory = sys.argv[4]
|
||||
inputCategory = sys.argv[3]
|
||||
except:
|
||||
inputCategory = ''
|
||||
inputHash = sys.argv[5]
|
||||
if inputHash and useLink:
|
||||
try:
|
||||
inputHash = sys.argv[4]
|
||||
except:
|
||||
inputHash = ''
|
||||
if inputHash:
|
||||
utorrentClass = UTorrentClient(uTorrentWEBui, uTorrentUSR, uTorrentPWD)
|
||||
|
||||
def parse_deluge(args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue