Configuration - Vauxite/label-cmd GitHub Wiki

Configuration

Breaking down the default config.json.

	"logging":{
		"logfile":"label_cmd.log",
		"loglevel":"DEBUG"
	},
  • Logfile, absolute path to your logfile.
  • loglevel (DEBUG,INFO,WARNING,ERROR).
	"core":{
		"translate":{
			"%%torrentpath%%": ["move_completed_path","/","name"],
			"%%torrentname%%":"name",
			"%%label%%":"label"
		}
	},
  • If you for example use %%torrentname%% in your action for a specific label. This will change it into the name of the torrent.
  • You can use any value from the torrent-array and chain them like %%torrentpath%%. If a value isn't in the torrent-array, it will assume it's a string.
  • The order of the value-array matters.
    "deluge":{
        "host":"127.0.0.1",
        "port":58846
    },
  • Host, ip to the host running deluge (in this case localhost).
  • port, Port for rpc requests.
	"actions":{
		"extract":{
			"executable":"unrar",
			"arguments":"-o- x %%torrentpath%%/*.rar"
		},
	},
  • executable, absolute path or env path to the binary.
  • arguments will assume it's all text unless specified in translate.
	"labels":{
		"tv":{
			"action":"extract"
		},
		"movies":{
			"action":"extract"
		},
	},
  • Link label to an action.-