Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #script uses RicterZ nhentai downloader @ https://github.com/RicterZ/nhentai to accept full url's opposed to just ID's. you can also just put in "fav" to enter your registered user name and password to download all of your saved "favorites" at nhentai.net
- #
- #options for RicterZ nhentai downloader. uncomment the desired options. $VAR="" , where "" is blank is always "off" for the option.
- #besure to recomment anything (with the # character) you wish not to pass to the command
- #CREATE CBZ FILE
- #CBZ=""
- CBZ="--cbz"
- #DELETE SOURCE DOWNLOAD FILES AND DIRECTORY AFTER CREATING CBZ FILE
- DELCBZ=""
- #DELCBZ="--rm-original-dir"
- #DO NOT CREATE HTML "index.html" FILE. (this file gives a web gui for offline viewing via your webbrowser)
- HTML=""
- #HTML="--nohtml"
- echo " "
- tput setaf 5; echo "Paste nhentai.net url and hit enter. type "login" to enter username and password to download favorites"
- echo " "
- echo "Please note that various options can be switched on and off by editing the variables at the bottom of this script file"
- echo " "
- tput sgr0
- read URL
- NHID=$(echo "$URL" | grep -Eo '[0-9]{1,6}')
- if [ "$URL" = "login" ];
- then
- tput setaf 5; echo "type username"
- tput sgr0
- read USR
- tput setaf 5; echo "type password"
- tput sgr0
- read -s PAS
- nhentai --login "$USR:$PAS" --download $CBZ $DELCBZ $HTML
- else
- nhentai --id=$NHID $CBZ $DELCBZ $HTML
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement