Re: Post your execute plugin scripts!
Posted: Sun May 24, 2015 1:42 am
This is basically a very simple bash script to dump info upon completion in an html file instead of a log file. The html can then be viewed from anywhere over my LAN
Here is my code:
And inside the info.html file, I have some styling:
Here is my code:
Code: Select all
#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
OUTPUT="/path/to/nas/share/deluge_scripts/info.html"
echo "<div class="date">$(date)</div> <div class="lblDone">$torrentname</div><a href=\"//$torrentpath\">$torrentpath</a><br>" >> $OUTPUT
And inside the info.html file, I have some styling:
Code: Select all
<style>
body {background-color:lightgray; border:2px solid gray; padding:1em;}
img {float:right;}
.date {color:#6c42c9; display: inline-block;}
.lblAdded {color:red; padding-right:1em;display: inline-block;}
.lblDone {color:green; padding-right:1em;display: inline-block;}
</style>