Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #login to DB
  2. curl -s -D cookies.txt -d 'username=DBRETAiL&password=PASSWORD' https://danishbits.org/login.php 1> /dev/null
  3. #upload to right category
  4. if [ -e "${BASE_NAME}.sticky" ]; then
  5. STICKY="1"
  6. rm "${BASE_NAME}.sticky"
  7. else
  8. STICKY="0"
  9. fi
  10. TORRENT_LOCATION=$(readlink -f ${BASE_NAME}.torrent)
  11. NFO_LOCATION=$(readlink -f ${BASE_NAME}/${BASE_NAME}.nfo)
  12.  
  13. 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[^']*")
  14. echo $TORRENT_ID
  15. rm ${BASE_NAME}.torrent
  16. 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