Untitled
public text v1 · immutable urls=$(cat $datadir/torrents.totry | tr \' \" | sed -n 's/<link>\(.*\)<\/link>/\1/p')
while read line
do
t=$(echo $line | tr \' \" | sed -n 's/<title><\!\[CDATA\[\(.*\)]]><\/title>/\1/p' | tr -s '[:space:]' '_')
if [ -n "$t" ]; then
title[$i]=$t
fi
echo "Title ${title[$i]}"
i=$(($i+1))
done < $datadir/torrents.totry