New helper daemon : transmission-daemon-watcher !
any chance of some help
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
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
running it is quite simple actually. just run it without any option like this : and it will show you a help text with all the options... basically you'd have to run it like : 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.
Code: Select all
/path/to/transmission-daemon-watcher/transmission-dw
Code: Select all
/path/to/transmission-daemon-watcher/transmission-dw watch
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 !
thank you
that got me to the next step once i run i get nothing
i run with
no torrents added and only
in the log
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
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 !
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
Code: Select all
filename.torrent
Re: New helper daemon : transmission-daemon-watcher !
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
i hope my pseudo code makes sense
im currently trying to learn python so this is something i might try my hand at
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']
}
im currently trying to learn python so this is something i might try my hand at
Re: New helper daemon : transmission-daemon-watcher !
yep, albeit i think scanning the dir for present torrentfiles on startup would be even better.msaspence wrote:might be worth putting that in the readme for future users
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...
-
- Posts: 14
- Joined: Thu Oct 09, 2008 3:08 pm
Re: New helper daemon : transmission-daemon-watcher !
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)
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)
Last edited by Shadow aok on Tue Nov 25, 2008 12:50 pm, edited 1 time in total.
-
- Posts: 14
- Joined: Thu Oct 09, 2008 3:08 pm
Re: New helper daemon : transmission-daemon-watcher !
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)
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 !
It will remove all torrents. (currently it does not keep track of torrentfiles it added)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)
-
- Posts: 14
- Joined: Thu Oct 09, 2008 3:08 pm
Re: New helper daemon : transmission-daemon-watcher !
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
Thanks for the answer
Re: New helper daemon : transmission-daemon-watcher !
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
meanwhile, I'm using inoticoming for adding new torrents