我找到原因呢
你看下你监控的目录种子文件名 正常应该是[CHD] ZJTV.Chong.Guan.Wo.Zui.Bang.20120806-20120807.720p.HDTV.x264-CHDTV.torrent 如果是RSS自动抓取下载的,可能是%5CHD%20 ZJTV.Chong.Guan.Wo.Zui.Bang.20120806-20120807.720p.HDTV.x264-CHDTV.torrent 改下编码支持就行了 |
给你个更省事的
将watchdir修改为你RSS下载种子后的目录 将以下脚本保存为a.sh #chmod +x a.sh #./a.sh 看下是不是自动下载了,如果自动下载了 就 #crontab -e 加入 “*/1 * * * * /a.sh” 一分钟运行一次,自动将RSS目录下的种子加到transmission任务中,就OK了 # Watch dir, may contain spaces: watchdir="/torrentwatch/" # move file to a subdirectory? if Commented out, it'll removed remove # the torrent file. # Note: Don't put a '/' before the path! movesubdir="added/" # Authentication "username:password": #tr_auth="admin:admin" # Transmission host "ip:port": tr_host="127.0.0.1:9091" # Verbose? verbose=1 ############################################# time=$(date "+%Y-%m-%d (%H:%M:%S)") if [ -n "$tr_auth" ]; then tr_auth="--auth=$tr_auth" fi for file in "$watchdir"*.torrent do if [ -f "$file" ]; then if [ -n "$verbose" ]; then echo "$time: $file added to queue."; fi /usr/local/bin/transmission-remote "$tr_host" "$tr_auth" -a "$file" > /dev/null # give the remote some time to process sleep 5 if [ $movesubdir ]; then if [ -d "$watchdir$movesubdir" ]; then mv "$file" "$watchdir$movesubdir" else mkdir "$watchdir$movesubdir" mv "$file" "$watchdir$movesubdir" fi else rm "$file" fi else if [ -n "$verbose" ]; then echo "$time: No torrent in $watchdir."; fi fi done exit 0 |