Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #login to DB
- curl -s -D cookies.txt -d 'username=DBRETAiL&password=PASSWORD' https://danishbits.org/login.php 1> /dev/null
- #upload to right category
- if [ -e "${BASE_NAME}.sticky" ]; then
- STICKY="1"
- rm "${BASE_NAME}.sticky"
- else
- STICKY="0"
- fi
- TORRENT_LOCATION=$(readlink -f ${BASE_NAME}.torrent)
- NFO_LOCATION=$(readlink -f ${BASE_NAME}/${BASE_NAME}.nfo)
- TORRENT_ID=$(curl -s --insecure --cookie cookies.txt -L --form file_input=@${TORRENT_LOCATION} --form nfo=@${NFO_LOCATION} --form tags="dbretail,ddp,kids,boern" --form type="${TYPE}" --form freeleechtype=1 --form sticky_set=${STICKY} --form submit=true https://danishbits.org/upload.php | grep "Download torrent" | grep -Po "#torrent_\K[^']*")
- echo $TORRENT_ID
- rm ${BASE_NAME}.torrent
- curl --cookie cookies.txt -o ${BASE_NAME}.torrent "https://danishbits.org/torrents.php/${BASE_NAME}.torrent?action=download&id=${TORRENT_ID}&authkey=AUTHKEY&torrent_pass=TORRENT_PASS" 1> /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement