update rtorrent
Some checks failed
Plex Update / update (push) Has been cancelled

This commit is contained in:
Vivian 2025-03-22 12:53:50 +01:00
parent 3581f899d7
commit 540101f305
2 changed files with 76 additions and 239 deletions

View file

@ -3,7 +3,7 @@
enable = true;
port = 14764; # port forwarded
downloadDir = "/mnt/storage/torrents/r";
package = pkgs.jesec-rtorrent;
package = pkgs.rtorrent;
configText =
let cfg = config.services.rtorrent;
in pkgs.lib.mkForce ''
@ -27,15 +27,15 @@
method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/")
# Create directories
fs.mkdir.recursive = (cat,(cfg.basedir))
#fs.mkdir = (cat,(cfg.basedir))
fs.mkdir = (cat,(cfg.download))
fs.mkdir = (cat,(cfg.logs))
fs.mkdir = (cat,(cfg.session))
#fs.mkdir = (cat,(cfg.download))
#fs.mkdir = (cat,(cfg.logs))
#fs.mkdir = (cat,(cfg.session))
fs.mkdir = (cat,(cfg.watch))
fs.mkdir = (cat,(cfg.watch),"/load")
fs.mkdir = (cat,(cfg.watch),"/start")
#fs.mkdir = (cat,(cfg.watch))
#fs.mkdir = (cat,(cfg.watch),"/load")
#fs.mkdir = (cat,(cfg.watch),"/start")
# Drop to "$(cfg.watch)/load" to add torrent
schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
@ -110,6 +110,12 @@
print = (cat, "Logging to ", (cfg.logfile))
log.open_file = "log", (cfg.logfile)
log.add_output = "debug", "log"
# Flood support
method.redirect=load.throw,load.normal
method.redirect=load.start_throw,load.start
method.insert=d.down.sequential,value|const,0
method.insert=d.down.sequential.set,value|const,0
'';
};
}