register sweeper flag. Use -hold on queue isert

This commit is contained in:
hummypkg 2017-01-10 19:58:20 +00:00
parent f98c79dff7
commit 918678b66f
4 changed files with 9 additions and 6 deletions

View File

@ -1,9 +1,9 @@
Package: sweeper Package: sweeper
Priority: optional Priority: optional
Section: misc Section: misc
Version: 2.1.5-1 Version: 2.1.5-2
Architecture: mipsel Architecture: mipsel
Maintainer: af123@hummypkg.org.uk Maintainer: af123@hummypkg.org.uk
Depends: webif(>=1.3.5-2) Depends: webif(>=1.3.5-3)
Description: Sweeper is a package for managing recordings in a variety of ways using custom rules [See forum for details] 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/ Tags: http://hummy.tv/forum/threads/5138/

View File

@ -903,10 +903,11 @@ proc ::sweeper::action_queue {ts cmd arg folder} {
set opt [lassign $arg arg] set opt [lassign $arg arg]
log "ARG: ($arg) OPT: ($opt)" 2 log "ARG: ($arg) OPT: ($opt)" 2
if {!$::sweeper::dryrun} { if {!$::sweeper::dryrun} {
set q [{queue insert} $ts $arg] set q [{queue insert} -hold $ts $arg]
if {[string trim $opt] ne ""} { if {[string trim $opt] ne ""} {
$q set args $opt $q set args $opt
} }
$q submit
} }
return 0 return 0
} }
@ -1210,5 +1211,6 @@ proc ::sweeper::rundir {dir} {
if {[file exists $::sweeper::cf]} { if {[file exists $::sweeper::cf]} {
::auto::register sweeper 700 ::auto::register sweeper 700
::auto::register_flag sweeper sweeper
} }

View File

@ -10,6 +10,7 @@ proc ::auto::log {msg {level 1}} {
} }
proc ::auto::register {args} {} proc ::auto::register {args} {}
proc ::auto::register_flag {args} {}
proc ::auto::flagscan {dir flag callback {seen {}}} { proc ::auto::flagscan {dir flag callback {seen {}}} {
variable dustbin variable dustbin

View File

@ -12,9 +12,9 @@ proc log {msg {level 1}} {
foreach {test expected} { foreach {test expected} {
{%title} {New Tricks} {%title} {New Tricks}
{%synopsis%replace:Crime:XXX:} {6/10. The Fame Game: XXX drama. While Sasha is occupied with an intensive training course, the boys' investigations take them to a lookalike agency. [HD] [AD,S]} {%synopsis%replace:Crime:ZZZ:} {6/10. The Fame Game: ZZZ drama. While Sasha is occupied with an intensive training course, the boys' investigations take them to a lookalike agency. [HD] [AD,S]}
{PREAMBLE%synopsis%replace:Crime:XXX:POSTAMBLE} {PREAMBLE6/10. The Fame Game: XXX drama. While Sasha is occupied with an intensive training course, the boys' investigations take them to a lookalike agency. [HD] [AD,S]POSTAMBLE} {PREAMBLE%synopsis%replace:Crime:ZZZ:POSTAMBLE} {PREAMBLE6/10. The Fame Game: ZZZ drama. While Sasha is occupied with an intensive training course, the boys' investigations take them to a lookalike agency. [HD] [AD,S]POSTAMBLE}
{%replace:Crime:XXX:PREAMBLE %synopsis POSTAMBLE} {PREAMBLE 6/10. The Fame Game: XXX drama. While Sasha is occupied with an intensive training course, the boys' investigations take them to a lookalike agency. [HD] [AD,S] POSTAMBLE} {%replace:Crime:ZZZ:PREAMBLE %synopsis POSTAMBLE} {PREAMBLE 6/10. The Fame Game: ZZZ drama. While Sasha is occupied with an intensive training course, the boys' investigations take them to a lookalike agency. [HD] [AD,S] POSTAMBLE}
{%asfilename:/mod/video/Test File/bob.ts:} {_mod_video_Test File_bob_ts} {%asfilename:/mod/video/Test File/bob.ts:} {_mod_video_Test File_bob_ts}
{/mod/video/%asfilename:bob/fred:.ts} {/mod/video/bob_fred.ts} {/mod/video/%asfilename:bob/fred:.ts} {/mod/video/bob_fred.ts}
{/mod/video/%asfilename:bob/fred:.ts%replace:video:radiator:} {/mod/radiator/bob_fred.ts} {/mod/video/%asfilename:bob/fred:.ts%replace:video:radiator:} {/mod/radiator/bob_fred.ts}