由於大幅修改原始程式碼,以下說明已不完全適用,僅供參考,建議自行閱讀修改後的程式碼。
可與 deluge-racing 搭配使用 https://github.com/BlackMickey/deluge-racing
Custom scripts I use to move torrents from deluge to rtorrent
First, I am a Fedora user. For other distros, please do what is needed
- deluge_to_rtorrent.sh: This is the script that is run from the execute plugin in deluge
- rtorrent_fast_resume.pl: This is a script that i copied from the rtorrent github page: https://github.com/rakshasa/rtorrent/blob/master/doc/rtorrent_fast_resume.pl
- deluge-console: This is required to read info and do operations from deluge.
- xmlrpc: This is used to make calls to rtorrent
I have a preference for pyroscope's tools. There is one called "rtxmlrpc" that can be used in place of xmlrpc. They do the same thing, but
- Copy these files to a bin dir. I used ~/bin
- Edit deluge_to_rtorrent.sh and make sure the path's match up.
- In deluge, enable the "Execute" plugin.
- Create a "Torrent Complete" Event. Put in the whole path to deluge_to_rtorrent.sh
Notes:
- I've heard that you need to restart deluge after enabling the "Execute" plugin
- There is a sleep 900 at the top of the file. This means it will take 15 minutes after the file has been completed to be moved.
- This can be used with the rutorrent plugin to show the values
- I like having labels in rtorrent. There is a case statement that tries to add labels based on tracker. This could probably be changed.
If you like the script, let me know. It works for me, and I thought I'd share.