aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnis Armus <ragnis@armus.ee>2019-10-20 19:08:19 +0300
committerRagnis Armus <ragnis@armus.ee>2019-10-20 19:08:19 +0300
commit54c2a05810c20288d56f6fa7a5eb1531bbcf6bf6 (patch)
tree5860be755912cd6b1ca64478c87234362c81c286
parentb814169385a3ca3bb5d96614e0b6458f14d031f5 (diff)
Allow un-pausing showsHEADmaster
-rw-r--r--config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.go b/config.go
index a9b6000..6c37608 100644
--- a/config.go
+++ b/config.go
@@ -18,6 +18,7 @@ type configFlags struct {
Pointer string
MinSeeders uint
Paused bool
+ NoPaused bool
EpisodeCount uint
BeginDate string
@@ -34,6 +35,7 @@ func (cf *configFlags) Parse(argv []string) {
cf.fs.StringVar(&cf.Pointer, "pointer", "", "last-downloaded episode")
cf.fs.UintVar(&cf.MinSeeders, "min-seeders", 0, "minimum number of seeders allowed")
cf.fs.BoolVar(&cf.Paused, "paused", false, "if set, the show will not be downloaded")
+ cf.fs.BoolVar(&cf.NoPaused, "no-paused", false, "if set, the show will no longer be paused")
cf.fs.UintVar(&cf.EpisodeCount, "epc", 0, "number of episodes in the season")
cf.fs.StringVar(&cf.BeginDate, "begin", "", "begin date of the season")
@@ -94,6 +96,8 @@ func cmdConfigShow(db *DB, cf *configFlags) int {
show.SeedersMin = cf.MinSeeders
case "paused":
show.Paused = cf.Paused
+ case "no-paused":
+ show.Paused = !cf.NoPaused
case "pointer":
ptr, err := PointerFromString(cf.Pointer)
if err != nil {