From e5259b13500a2d8084ad6a6a24667bd780efd90f Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 9 Jan 2017 19:24:23 +0000 Subject: [PATCH] add support for queue options --- CONTROL/control | 4 +- webif/plugin/sweeper/auto.hook | 7 ++- webif/plugin/sweeper/edit.jim | 6 ++- webif/plugin/sweeper/schema.js | 2 +- webif/plugin/sweeper/script.js | 81 ++++++++++++++++++++++++++++++---- 5 files changed, 87 insertions(+), 13 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 283086a..98ddc50 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,9 +1,9 @@ Package: sweeper Priority: optional Section: misc -Version: 2.1.5 +Version: 2.1.5-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: webif(>=1.3.5) +Depends: webif(>=1.3.5-2) Description: Sweeper is a package for managing recordings in a variety of ways using custom rules [See forum for details] Tags: http://hummy.tv/forum/threads/5138/ diff --git a/webif/plugin/sweeper/auto.hook b/webif/plugin/sweeper/auto.hook index e8359ec..8d6a5ac 100644 --- a/webif/plugin/sweeper/auto.hook +++ b/webif/plugin/sweeper/auto.hook @@ -900,8 +900,13 @@ proc ::sweeper::action_unflag {ts cmd arg folder} { proc ::sweeper::action_queue {ts cmd arg folder} { log "Queued [$ts get file] for $arg" 0 + set opt [lassign $arg arg] + log "ARG: ($arg) OPT: ($opt)" 2 if {!$::sweeper::dryrun} { - {queue insert} $ts $arg + set q [{queue insert} $ts $arg] + if {[string trim $opt] ne ""} { + $q set args $opt + } } return 0 } diff --git a/webif/plugin/sweeper/edit.jim b/webif/plugin/sweeper/edit.jim index 9250762..c1fbf04 100755 --- a/webif/plugin/sweeper/edit.jim +++ b/webif/plugin/sweeper/edit.jim @@ -234,9 +234,13 @@ For pattern matching, the following special sequences may appear in the pattern: