[讨论/分享] 嘿群晖 上rtorrent 自动监视多个种子文件夹及自动工具设置 |
RT~
在嘿群上安装了 rtorrent, 试了以下两个版本~ https://synocommunity.com/package/rutorrent https://www.chiphell.com/thread-1282416-1-1.html 都只能设置一个监控文件夹(就是安装时定点那个) 有尝试过去修改web 下Rutorrent 中的config.php, 但是没有成功~ 我想实现,种子放到不同监控文件夹下, 那么下载数据也自动下载到对应的文件夹 不知道有没有办法实现?? 我有自己去翻外文,可能技术太菜, 没有成功, 特来请大牛帮忙~~ 也想过自己编译最新版本的rtorrent 和 rutorrent,对Linux 不熟,还是以失败告终~ 如果有相关资料,也请分享~ 感谢! |
自顶~
换了一版 rtorrent, 然后参考如下的网址的设定可以监控多个种子文件夹了。 但是还会有问题, 不够完美,但比不能用强。。。。 https://www.reddit.com/r/linux/comments/1s8kt1/rtorrent_how_to_watch_multiple_folders_and_save/ 看来大神都不来这里了。。。 |
|
|
本帖最后由 smdx 于 2016-7-12 20:32 编辑
roosevelt122007 发表于 2016-3-7 17:00 非常感谢,太实用了。搜索一下相关资料找到个链接非常详细的介绍这方面的教程分享一下。 rTorrent终极优化攻略http://www.cnblogs.com/lidp/archive/2009/05/22/1697959.html 文件夹分组管理 要将文件夹全面重新规划,按照自己喜欢的方式分类。 (已经下载的所有文件也可以利用相应的命令全部转移,但比较麻烦,建议还是就全部重新设定,感兴趣的可以看下面迁移旧文件部分) 将rtorrent直接迁移到/pub下,分为.session,watch,queue(下设若干分类文件夹,可任意追加) 注意事项:Linux的文件访问区分大小写,创建目录尽量不要使用符号(尤其是空格)。 结构图如下: A.rTorrent程序文件夹 /pub /rtorrent /.session /watch /game /video /seeding /queue /game /video /seeding B.下载文件夹,working为下载中任务目录,其他为和A中对应的下载后保存位置。 /pub /downloads /game /video /seeding /working 以上的目录结构时需修改配置文件.rtorrent.rc中的设定有: #下载时临时存放目录以及session存放目录 directory = /shares/mss-hdd/Public/downloads/working session = /shares/mss-hdd/Public/rtorrent/.session 增加相应的不同watch如下: 注:已实现区分PT、BT种子的强化方法,强烈推荐混PT站的作此设定,详见下面红色标注的强化方法。 标准方法1:分别建立三组监视目录,并在下载完成后转移文件到对应文件夹下。(推荐使用,可自动转移) 可以根据自己的情况任意追加和设定分组,只要修改d.set_custom1=后面的目录位置即可。 schedule = wd_1,10,10,"load_start=/pub/rtorrent/watch/seeding/*.torrent,d.set_custom1=/pub/downloads/seeding" schedule = wd_2,20,10,"load_start=/pub/rtorrent/watch/game/*.torrent,d.set_custom1=/pub/downloads/game" schedule = wd_3,30,10,"load_start=/pub/rtorrent/watch/video/*.torrent,d.set_custom1=/pub/downloads/video" on_finished = move_complete,"d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom1=" 标准方法2:分别建立三组监视目录,直接将文件保存到对应文件夹下。(不推荐,无法分清未完成和已完成) schedule = wd_1,10,10,"load_start=/pub/rtorrent/watch/seeding/*.torrent,d.set_directory=/pub/downloads/seeding" schedule = wd_2,20,10,"load_start=/pub/rtorrent/watch/game/*.torrent,d.set_directory=/pub/downloads/game" schedule = wd_3,30,10,"load_start=/pub/rtorrent/watch/video/*.torrent,d.set_directory=/pub/downloads/video" 强化方法3(混PT站必备) 强化方法3与标准方法1区分在于加入了branch判断语句, *做此设定因为使用了官方规定的load_start_verbose,所以如果当前已有任务会重新载入, 造成与原来的.session下种子冲突,并提示"已有相同的infohash种子等信息,可不必理会。(其实不用verbose也可以,但还是按照官方来) 以下为标准语句,可以用于对应本功能时测试使用: 作用是在载入watch目录下的种子时,自动判断是否为private tracker(PT),BT种子就把任务的custom2设为BT,同时将分享率Group设为RatioBT, PT种子,custom2为空,分享率执行默认Ratio(其实也可custom2设为PT,但置空,是为了以后更多的复杂判断条件预备。) **注意事项,schedule语句很长,任何符号都不能写错,建议在XP中复制粘帖,编辑成自己的再逐一粘帖到配置文件。 **private=后面是两个逗号,第一个之后是判断为private的执行命令,第二个是判断为public的执行命令。 schedule =wd_test,10,10,"load_start_verbose=/pub/rtorrent/watch/test/*.torrent,d.set_custom1=/pub/Downloads/test,\"branch={d.is_private=,,{d.set_custom2=BT,view.set_visible=RatioBT}}\"" 可分别在test中分别放一个小文件的PT和BT种子,用下面的命令确认效果。 print=$d.get_custom2= d.multicall=RatioPT,print=$d.get_name= 如果是BT种子,两个命令的输出应该在屏幕上显示"BT","种子文件名"。 |