Added media limit sampling.
This commit is contained in:
18
README.md
18
README.md
@@ -23,8 +23,7 @@ Do not modify `config/default.js`, but instead create a copy at `config/local.js
|
||||
### Options
|
||||
`npm start -- --option value`
|
||||
|
||||
Running `npm start` without any arguments will run the web server.
|
||||
|
||||
* `--server`: Run the web server
|
||||
* `--fetch`: Fetch updates instead of running the webserver. Without further arguments, it will use the networks and sites defined in the configuration file.
|
||||
* `--site [site ID]`: Fetch updates from a specific site. The site ID is typically the site name in lowercase and without cases or special characters. For example, Teens Like It Big is teenslikeitbig.
|
||||
* `--network [network ID]`: Fetch updates from all sites of a specific network. The network ID is composed similarly to the site ID.
|
||||
@@ -33,10 +32,23 @@ Running `npm start` without any arguments will run the web server.
|
||||
* `--deep`: Follow each release link found running `--site` or `--network` and scrape it for more details. Enabled by default at the moment of writing; use `--no-deep` to only save information found on the overview pages.
|
||||
* `--copy`: Try to copy relevant results to the clipboard. When used with `--scene`, it will copy the filename as defined in the config with all the details filled in.
|
||||
|
||||
#### Developer options
|
||||
## Developers
|
||||
|
||||
### Options
|
||||
* `--no-save`: Do not store retrieved information in local database, forcing re-fetch.
|
||||
* `--debug`: Show full error stack trace.
|
||||
|
||||
### Generating thumbnails
|
||||
Ensure each tag or sfw category directory has a `thumbs` and `lazy` directory: `for dir in \*; do mkdir "$dir/thumbs $dir/lazy"; done`
|
||||
|
||||
Using ImageMagick's bulk tool `mogrify` to generate 240px thumbnails and 90px lazy pre-loading images:
|
||||
|
||||
* Generate thumbnails within tag or sfw directory: `mogrify -path lazy -resize x240 -quality 90% \*.jpeg`
|
||||
* Generate lazy loading images within tag or sfw directory: `mogrify -path lazy -resize x90 -quality 90% \*.jpeg`
|
||||
|
||||
* Generate thumbnails for all tags or categories in `tags` or `sfw` directory: `for dir in \*; do mogrify -path "$dir/thumbs" -resize x240 -quality 90% "$dir/\*.jpeg"; done`
|
||||
* Generate lazy loading images for all tags categories in `tags` or `sfw` directory: `for dir in \*; do mogrify -path "$dir/lazy" -resize x90 -quality 90% "$dir/\*.jpeg"; done`
|
||||
|
||||
## Supported networks & sites
|
||||
768 sites on 62 networks, continuously expanding!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user