Page 2 of 2
any chance of some help
Posted: Fri Oct 03, 2008 10:26 am
by msaspence
this looks like an awesome tool
unfortunatly i am a noob to the command line
install instructions are good, but any chance of some instructions for actually using the tools
Update! & Re: any change of some help
Posted: Fri Oct 03, 2008 11:06 am
by bernstein
running it is quite simple actually. just run it without any option like this :
Code: Select all
/path/to/transmission-daemon-watcher/transmission-dw
and it will show you a help text with all the options... basically you'd have to run it like :
Code: Select all
/path/to/transmission-daemon-watcher/transmission-dw watch
and just appending option after option you want... running the above without any options will watch the current directory, remove added torrentfiles from that dir, stop seeding on a ratio of 2 and log to /tmp. (as stated in the help text)
Update : I will continue developing tdw, including porting to OSX. Features now/futurely supported by transmission-daemon (hopefully sometime they will all be in transmission itself), yet added because the transmission-daemon in ubuntu 8.04 lacks them will be kept until at least the next LTS release of ubuntu. so basically tdw will be kept compatible with the most recent releases and the one in the current ubuntu LTS release.
Re: New helper daemon : transmission-daemon-watcher !
Posted: Fri Oct 03, 2008 3:22 pm
by msaspence
thank you
that got me to the next step once i run i get nothing
i run with
Code: Select all
/home/matthewspence/bin/transmission-dw/transmission-dw.py watch --watch=/home/matthewspence/Downloads/Torrents
no torrents added and only
Code: Select all
/home/matthewspence/bin/transmission-dw/transmission-dw.py started as a Daemon with pid 7703
in the log
Re: New helper daemon : transmission-daemon-watcher !
Posted: Fri Oct 03, 2008 8:36 pm
by bernstein
well i think you stumbled upon a current limitation of my implementation : torrentfiles have to be put into the watched directory AFTER transmission-dw has been started (basically while it's running). it will not yet recognize any files already present in the directory. oh, and the torrentfiles must be named in the following format
hope this fixes your problem. the log and your command seems ok. if not feel free to post again so we can work it out

Re: New helper daemon : transmission-daemon-watcher !
Posted: Fri Oct 03, 2008 10:34 pm
by msaspence
yes this fixed the problem nicely thanks
might be worth putting that in the readme for future users
a feature i would really like to see is conditional sorted on completion
Code: Select all
if torrent is an album {
if artist and album name can be determined from torrent or file name {
move file(s) to album folder inside artist folder inside params['music folder']
} else {
move file(s) to params['music to be sorted']
}
} else if torrent is a video {
if torrent is a tv show and show, season and episode can be determined from torrent or file name {
move file(s) to season folder inside show folder inside params['tv shows folder']
} else if torrent is a tv show {
move files(s) to param['tvshows to be sorted']
} else if torrent is a movie and title can be determined from torrent or filename {
move file(s) to param['movies']
} else if torrent is a movie {
move file(s) to param['movies to be sorted']
} else {
move file(s) to param['videos to be sorted']
}
} else {
move file to param['other to be sorted']
}
i hope my pseudo code makes sense
im currently trying to learn python so this is something i might try my hand at
Re: New helper daemon : transmission-daemon-watcher !
Posted: Sat Oct 04, 2008 11:33 am
by bernstein
msaspence wrote:might be worth putting that in the readme for future users
yep, albeit i think scanning the dir for present torrentfiles on startup would be even better.
sounds like a great idea! and your pseudo code makes sense.
but... making this work in useful way is, i think, quite hard. it's not the sorting that's complex but the correct recognition of the torrent, in particular absolutely avoiding false positives (wrongly recognized torrents) isn't going to be an easy part.... wouldn't it be enough to just allow for multiple directories to be watched and have each a moveto directory (and a feed) associated? so depending were you put the torrent it gets sorted accordingly. (i konow thats in no way automatic but then selecting torrents isn't either)
anyway i think thats the way to go, because it would be a simple change to the source and the recognition stuff could be implemented on top of this in a separate module or even through a separate app...
Re: New helper daemon : transmission-daemon-watcher !
Posted: Tue Nov 25, 2008 12:37 pm
by Shadow aok
Great tool, that's exactly what I needed on my server

Thanks.
But I have a question.
If I configure it to remove torrents, will it remove only the torrents it added or the torrents I manually added using the interface will be removed too ?
(I'd like to be able to remove only the one it added)
Re: New helper daemon : transmission-daemon-watcher !
Posted: Tue Nov 25, 2008 12:46 pm
by Shadow aok
Here's the installation procedure for gentoo :
install ez_setup.py (needs internet connection) : python ez_setup.py
install pyinotify (packaged version) : emerge dev-python/pyinotify
install feedparser (packaged version) : emerge dev-python/feedparser
copy transmission-dw.py to /usr/bin/ and make it executable (where the other transmission binaries are)
copy proccontrol.py & daemonize.py to /usr/lib/python2.5/ (or lib64 if you're running gentoo AMD64)
copy tdw.pth to /usr/lib/python2.5/site-packages/ (or lib64 if you're running gentoo AMD64)
Re: New helper daemon : transmission-daemon-watcher !
Posted: Tue Nov 25, 2008 12:58 pm
by bernstein
Shadow aok wrote:If I configure it to remove torrents, will it remove only the torrents it added or the torrents I manually added using the interface will be removed too ?
(I'd like to be able to remove only the one it added)
It will remove all torrents. (currently it does not keep track of torrentfiles it added)
Re: New helper daemon : transmission-daemon-watcher !
Posted: Tue Nov 25, 2008 1:01 pm
by Shadow aok
Ok so there's no way tp prevent it from removing some torrents (if i want to seed with a particular torrent).
Thanks for the answer

Re: New helper daemon : transmission-daemon-watcher !
Posted: Wed Nov 26, 2008 7:30 pm
by Carlos
Great script!, just doesn't work for me because of the authentification, could you include support for the --auth option of transmission-remote?
meanwhile, I'm using inoticoming for adding new torrents