rtorrent批量添加magnetlink
- 作者: -酱酱酱
- 来源: 51数据库
- 2022-08-17
#!/bin/bash
cnt=1
cd /home/gyx/watch || exit # set your watch directory here
cat 1.txt|while read i
do
[[ "$i" =~ xt=urn:btih:([^&/]+) ]] || exit
echo "d10:magnet-uri${#i}:${i}e" > "${cnt}.torrent" # name .torrent file by variable cnt
cnt=$[cnt+1]
done
推荐阅读
