Changes

From Amahi Wiki
Jump to: navigation, search
1,062 bytes added ,  22:02, 8 July 2014
* Torrent files added to this share directory are also automatically added to Transmission to download. This is done every 5 minutes.
 
= Change download location (Amahi 7) =
 
* If you prefer to create a different share or change the location of torrent downloads, you will need to modify the automatic download script.
 
* Edit '''/usr/share/transmission/torrentwatch.sh''' and change the following lines to your desired location:
 
for file in /var/hda/files/torrents/*.torrent
 
:: and
 
if [ "$file" != "/var/hda/files/torrents/*.torrent" ]; then
 
= Automatic download script (Amahi 7) =
 
* To change the logging or saving of torrents, you will need to modify the script below, located in /usr/share/transmission directory.
** Remove '''>> /var/log/torrentwatch.log''' to disable logging.
** Change '''mv "$file" "$file".added" to "rm -f "$file"''' to prevent saving torrents with .added extension.
 
<pre>#!/bin/bash
for file in /var/hda/files/torrents/*.torrent
do
if [ "$file" != "/var/hda/files/torrents/*.torrent" ]; then
echo [`date`] "$file" added to queue. >> /var/log/torrentwatch.log
/usr/bin/transmission-remote localhost:9091 -a "$file"
mv "$file" "$file".added
sleep 1
fi
done</pre>
= How to add a password to Transmission Web Client =
12,424

edits