Skip to content

Commit

Permalink
updated readme chapter structure
Browse files Browse the repository at this point in the history
  • Loading branch information
9FS committed Nov 4, 2024
1 parent 6db511a commit a730659
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,23 @@ I'm happy about anyone who finds my software useful and feedback is also always
1. Execute the program once to create a default `./config/.env`.\
This means that in the directory of the executable, there should now be a directory called "config" containing a file called ".env". You might need to enable seeing hidden files in the file explorer.
1. I recommend setting the `CSRFTOKEN` cookie and `USER_AGENT`. If you start having problems with nHentai's bot protection (error 403), setting these is mandatory. If a `CF_CLEARANCE` cookie is available, it should be set as well.

### Mozilla Firefox

1. Go to https://nhentai.net/. Clear the Cloudflare prompt.
1. Open the developer console with F12.
1. Go to the tab "Storage". On the left side expand "Cookies". Click on "https://nhentai.net".
1. Copy the cookie values into `./config/.env`.
1. Go to https://www.whatismybrowser.com/detect/what-is-my-user-agent/ and copy your user agent into `./config/.env`.

### Google Chrome

1. Go to https://nhentai.net/. Clear the cloudflare prompt.
1. Open the developer console with F12.
1. Go to the tab "Application". On the left side under "Storage", expand "Cookies". Click on "https://nhentai.net".
1. Copy the cookie values into `./config/.env`.
1. Go to https://www.whatismybrowser.com/detect/what-is-my-user-agent/ and copy your user agent into `./config/.env`.
- Mozilla Firefox
1. Go to https://nhentai.net/. Clear the Cloudflare prompt.
1. Open the developer console with F12.
1. Go to the tab "Storage". On the left side expand "Cookies". Click on "https://nhentai.net".
1. Copy the cookie values into `./config/.env`.
1. Go to https://www.whatismybrowser.com/detect/what-is-my-user-agent/ and copy your user agent into `./config/.env`.
- Google Chrome
1. Go to https://nhentai.net/. Clear the cloudflare prompt.
1. Open the developer console with F12.
1. Go to the tab "Application". On the left side under "Storage", expand "Cookies". Click on "https://nhentai.net".
1. Copy the cookie values into `./config/.env`.
1. Go to https://www.whatismybrowser.com/detect/what-is-my-user-agent/ and copy your user agent into `./config/.env`.

> [!NOTE]
> If nHentai has "under attack" mode enabled, clearing the Cloudflare prompt and updating `CF_CLEARANCE` seem to be required daily.
Further settings:

## Further Settings
- `CLEANUP_TEMPORARY_FILES`, optional, defaults to `true`

Setting this to `false` prevents the temporary directory containing the original images from being deleted after the CBZ file has been created. In addition to that it also saves a `ComicBook.xml` in the directory. This can be useful to improve compatibility with third party readers or deduplication software.
Expand Down

0 comments on commit a730659

Please sign in to comment.