* make utorrent script more compatible with older versions of utorrent

This commit is contained in:
Reinhard Pointner 2012-07-16 12:19:13 +00:00
parent c6037b03d3
commit e85f69113e
1 changed files with 3 additions and 3 deletions

View File

@ -7,10 +7,10 @@ _args.parameters.each{ k, v -> println "Parameter: $k = $v" }
if (args.empty) {
// assume we're called with utorrent parameters
if (ut_kind == "multi") {
input += new File(ut_dir).getFiles() // multi-file torrent
} else {
if (ut_kind == "single") {
input += new File(ut_dir, ut_file) // single-file torrent
} else {
input += new File(ut_dir).getFiles() // multi-file torrent
}
} else {
// assume we're called normally with arguments