Watched Folder...

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Post Reply
ximon
Posts: 22
Joined: Mon Mar 31, 2008 5:48 pm

Watched Folder...

Post by ximon »

Apologies if this is the wrong forum, I wasn't sure whether this should go under Clutch or Transmission...

I just purchased a Synology NAS box which I am going to be using for BitTorrent, it comes pre-installed with a 'meh' BT client, but luckily it can be modded to run transmission-daemon and Clutch. I want to use this box for all my BT activity, I have already installed hawkmans fantastic Leopard/iPhone interface for Clutch and set transmission-daemon to start at boot.

Unfortunately there are a couple of things missing from my solution because they are dependent on Transmission's watched folder. Previously I had Transmission permanently running on the iMac (as a launchd task) with it set to watch my downloads folder for torrent files, enabling me to use automation programs like TVShows to 'subscribe' to torrents. I also had a php script on the iMac's webserver and a java bookmarklet on the iPod Touch that allowed me to start downloads from the iPod, also using the watched folder.

Now that I am using transmission-daemon I need is a way of getting this functionality from it. Is a watched folder something that is possible with the daemon? Or is it possible to simulate a watched folder using Folder Actions on the Mac and some funky server-side PHP or javascript?

Can anyone help?

Thanks

X.
beagleboy
Posts: 1
Joined: Thu Apr 24, 2008 9:09 pm

Watch Folder for Transmission/Clutch

Post by beagleboy »

Hi ximon, not sure if you ever found a solution but I have posted a solution here:
http://www.synology.com/enu/forum/viewt ... =38&t=7817

cheers
BB
Gimp
Web Interface Developer
Posts: 257
Joined: Mon Mar 12, 2007 3:49 am
Location: BC, Canada

Re: Watched Folder...

Post by Gimp »

ximon wrote: Now that I am using transmission-daemon I need is a way of getting this functionality from it. Is a watched folder something that is possible with the daemon? Or is it possible to simulate a watched folder using Folder Actions on the Mac and some funky server-side PHP or javascript?

Can anyone help?

Thanks

X.
The folder action thing is the only thing I could think of. possibly have it run a shell script that ssh's to that box and uses transmission-remote. or have it read the data from the file, and you can post the file data through a URL to clutch to add a torrent. I can't remember the exact syntax for it though.
blackjancsi
Posts: 6
Joined: Sat May 30, 2009 8:31 pm

Re: Watched Folder...

Post by blackjancsi »

This option has been included in transmission-daemon for some time (I have been using it for some time now). Only thing I don't like about it is that once it spools the torrent into the daemon, it does not disappear from the watch directory (but on a related note, it would be nice if the completed torrents would be moved to another directory (e.g. files to completed_downloads, their respective torrents to completed_torrents - so if you ever need to download it again for some reason - e.g. accidentally deleted part - then you can do it).

transmission-daemon --help

-c --watch-dir <directory> Directory to watch for new .torrent files

The line(s) in my JSON file looks like this:
...
"upload-slots-per-torrent": 14,
"watch-dir": "\/shares\/internal\/PUBLIC\/downloads\/_watch",
"watch-dir-enabled": true
Post Reply