mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-29 02:53:42 +01:00
16 lines
475 B
Plaintext
Executable File
16 lines
475 B
Plaintext
Executable File
#!/usr/bin/env nu
|
|
|
|
let old_head = "<html><style>body { background-color:white;color:black; }</style><body>"
|
|
let new_head = (
|
|
["<html><head><title>Torrent Stats</title><link type="text/css" rel="stylesheet" href="style2.css"/></head><body><h4>Last updated:", (date now | format date "%F %T%:z"), "</h4>"]
|
|
| str join ' '
|
|
)
|
|
|
|
(
|
|
transmission-remote -l
|
|
| from ssv
|
|
| to html
|
|
| str replace ($old_head) ($new_head)
|
|
| save -f -r /home/jas/public/html/torrentstats.html
|
|
)
|