Skip to content

Bulk asynchronous downloader for multiple file hosts

docs: wiki updates for v10 (#1989)

NTFSvolumedc1edf318cc9
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 6ea18d0ce..0c901b16a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -5,26 +5,26 @@
## Reporting issues
-You **SHOULD** search for existing issues before creating a new one. If a bug already has issue, you **MAY** comment on the existing issue
+You **SHOULD** search for existing issues before creating a new one. If a bug already has an issue open, you can comment on the existing issue
with extra information that might help reproduce or fix the problem. Duplicate issues will be closed with a
reference to the existing issue.
You **SHOULD** [read the wiki](https://script-ware.gitbook.io/cyberdrop-dl/frequently-asked-questions) as it
includes solutions to some common problems.
-If your issue hasn't been reported yet, you **MAY** open a new issue at <https://github.com/Cyberdrop-DL/cyberdrop-dl/issues/new/choose>.
+If your issue hasn't been reported yet, open a new issue at <https://github.com/Cyberdrop-DL/cyberdrop-dl/issues/new/choose>.
## Feature requests
-You **MAY** request a new feature by [opening an issue](#submitting-an-issue). If you would like to implement a new feature,
-you **SHOULD** open an issue/discussion with a proposal first and at least one use case. You **MAY** submit a PR directly if your feature is small
-with a narrow scope.
+You can request a new feature by [opening an issue](#submitting-an-issue). If you would like to implement a new feature,
+you **SHOULD** open an issue/discussion with a proposal first and at least one use case. You **SHOULD NOT** submit a PR directly unless your feature is small
+and has a narrow scope.
## Setting up the development environment
`cyberdrop-dl` uses `uv` as a project management tool and requires python 3.12+. You can install it from <https://docs.astral.sh/uv/getting-started/installation/>.
-You do not need to manually install python as `uv` will automatically install a compatible python version (if required).
+You don't need to install python as `uv` will automatically install a compatible python version if required.
Once you have `uv` installed, follow these steps:
@@ -49,9 +49,9 @@ Once you have `uv` installed, follow these steps:
1. Optionally, run the tests suite to make sure your dev environment is setup correctly
-```powershell
+ ```powershell
uv run pytest
-```
+ ```
## Code style
@@ -68,32 +68,31 @@ Not enforced but highly recommended. The project includes hardcoded config optio
#### Line width
-120 character max
+120 characters max
The project includes predefined [settings for the zed editor](https://github.com/Cyberdrop-DL/cyberdrop-dl/tree/main/.zed)
-with formatting options and a recipe to quickly launch CDL in debug mode for testing
+with formatting options and a recipe to quickly launch `cyberdrop-dl` with `pdb` (the Python debugger) for testing
### Code formatting with pre-commit hooks
-This project uses git pre-commit hooks to perform formatting and linting before a commit is created,
-to ensure consistent style and catch some common issues early on.
+This project uses pre-commit hooks to enforce consistent code style and identify common issues early on.
-Once installed, hooks will run every time you commit. If the formatting isn't quite right or a linter catches something,
-the commit will be rejected and `ruff` will try to fix the files. If `ruff` can not fix all the issues,
-you will need to look at the output and fix them manually. When everything is fixed (either by `ruff` itself or manually)
-all you need to do is `git add` those files again and retry your commit.
+These hooks run automatically on every `git commit`. If a check fails, the commit is blocked and `ruff` will attempt to
+automatically fix the files. You may need to fix some errors manually if `ruff` can not do it automatically.
+
+Once everything is fixed, `git add` the changes and commit again.
> [!TIP]
-> You can trigger a formatting manually by runnnig `uv run ruff check --fix` then `uv run ruff format`
+> To trigger linting and formatting manually, run `uv run ruff check --fix` then `uv run ruff format`
## Implementing new changes
> [!IMPORTANT]
-> `cyberdrop-dl` requires python 3.12+. You **MUST NOT** use any syntax features not compatible with it
+> `cyberdrop-dl` requires python 3.12+. You **MUST NOT** use syntax or features exclusive to newer versions without version guards
> [!IMPORTANT]
> Before you start writing any code, you **SHOULD** search the [repository](https://github.com/Cyberdrop-DL/cyberdrop-dl/pulls)
-> for an open or closed PR that relates to your submission. You don't want to duplicate effort
+> for an open or closed PR that relates to your submission to prevent duplicated effort
### Submitting a Pull Request (PR)
@@ -118,21 +117,23 @@ and base your crawler on that. A simple crawler to use as base is [CloudFlareStr
- All crawlers **MUST** inherit from the [base crawler](cyberdrop_dl/crawlers/crawler.py)
- All crawlers **MUST** have the word `Crawler` at the end of their class name
- All crawlers **MUST** override the `fetch` method. It's the primary method that decides what to do with an URL that matches with that crawler
-- You **MUST** not call any method that may fail (raise an exception) from within `fetch`
+- You **MUST** not call any method that may fail (raise an exception other that `ValueError`) from within `fetch`
- All async method called from within fetch **MUST** be public methods
- All public method **MUST** be decorated with `error_handling_wrapper` to catch any unknown error
-- You **SHOULD** catch **expected** errors and re-raise them as a `ScrapeError` with an appropiate code and message
-- You **SHOULD** use valid HTTP codes for any `ScrapeError`. ex: raise `ScrapeError(410)` if you know a file was deleted
+- You **SHOULD** catch **expected** errors and re-raise them as a `ScrapeError` with an appropiate code and message.
+ A file being deleted is common expected error
+- You **SHOULD** use valid HTTP codes for any `ScrapeError`. ex: raise `ScrapeError(410)` (GONE) for deleted files.
+ See the [Mozilla Developer documention](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status) for a list of HTTP codes
- You **MAY** use HTTP code `422` (Unprocessable entity) for **expected** errors if no other HTTP code feels adequate
-- You **MAY** use a short string instead of an HTTP code to convey a better context for an error (if required)
+- You **MAY** use a short string instead of an HTTP code to convey a better context for an error (if required).
The string **SHOULD** be at most 20 characters long as it will be shown on the `Scrape Errors` sections of the TUI
-- You **SHOULD NOT** write logic in a defensive way for **unexpected** errors. If you need to perform an operation that could fail
- but is not **expected** to fail (ex: a dictionary key lookup on an API response), do not try to catch the exception, let it bubble up.
- It will eventually be logged by the `error_handling_wrapper`
+- You **SHOULD NOT** write logic in a defensive way for **unexpected** errors. If you need to perform an operation that _could_ fail
+ but that you do not **expect** to fail (ex: a dictionary key lookup on an API response) and you can not continue the scrape process
+ if the operation fails, do not try to catch the exception. Let it bubble up. It will eventually be logged by the `error_handling_wrapper`
- You **SHOULD** model site specific data into dataclasses, if possible
- You **MUST** create a new task for any coroutine whose result is not needed to complete the current task
- You **MUST NOT** create `MediaItem` objects manually. You **MUST** use the `handle_file` method
-- You **SHOULD** look at all methods on the base crawler for possible helper functions. Their doctrings explain expected usage of each one.
+- You **SHOULD** look at the methods on the base crawler for possible helper functions. Their doctrings explain expected use of each one
- You **MAY** add site specific CLI/config options at [cyberdrop_dl/config/crawlers.py](cyberdrop_dl/config/crawlers.py) to use within the crawler
- You **SHOULD NOT** add crawler specific CLI/options unless absolutely necessary
- You **SHOULD** add at least 1 test case for the crawler
@@ -150,3 +151,7 @@ and base your crawler on that. A simple crawler to use as base is [CloudFlareStr
```powershell
uv run pytest -x --test-crawlers <domain>
```
+
+## License
+
+By contributing, you agree that your contributions will be licensed under the [GNU General Public License v3.0](LICENSE).
diff --git a/cyberdrop_dl/config/__init__.py b/cyberdrop_dl/config/__init__.py
index 58651fc16..fab9b9e4e 100644
--- a/cyberdrop_dl/config/__init__.py
+++ b/cyberdrop_dl/config/__init__.py
@@ -101,8 +101,6 @@ class Config(ConfigModel, title="cyberdrop-dl config"):
network: Network = Field(default_factory=Network)
notifications: Notifications = Field(default_factory=Notifications)
- show_stats: Annotated[bool, Parameter(name="stats")] = True
- "Show stats report at the end of a run"
sort: Sort = Field(default_factory=Sort)
subfolders: SubFolders = Field(default_factory=SubFolders)
diff --git a/cyberdrop_dl/config/crawlers.py b/cyberdrop_dl/config/crawlers.py
index 447122da3..fc90b5ef6 100644
--- a/cyberdrop_dl/config/crawlers.py
+++ b/cyberdrop_dl/config/crawlers.py
@@ -37,7 +37,7 @@ class ClypitConfig(ConfigModel):
class OnePaceConfig(ConfigModel):
prefer_dub: bool = False
- """Download episodes with english audio tracks instead of japanase (if available)"""
+ """Download episodes with english audio tracks instead of japanese (if available)"""
class GenericCrawlers(ConfigModel):
diff --git a/cyberdrop_dl/config/default.yaml b/cyberdrop_dl/config/default.yaml
index df17e4b64..9f21b6bd8 100644
--- a/cyberdrop_dl/config/default.yaml
+++ b/cyberdrop_dl/config/default.yaml
@@ -135,7 +135,6 @@ network:
notifications:
apprise: []
webhook: null
-show_stats: true
sort:
enabled: false
formats:
@@ -158,3 +157,4 @@ ui:
mode: fullscreen
portrait: false
refresh_rate: 10.0
+ show_stats: true
diff --git a/cyberdrop_dl/config/schema.json b/cyberdrop_dl/config/schema.json
index 373645564..4153183f7 100644
--- a/cyberdrop_dl/config/schema.json
+++ b/cyberdrop_dl/config/schema.json
@@ -911,6 +911,11 @@
"exclusiveMinimum": 0,
"title": "Refresh Rate",
"type": "number"
+ },
+ "show_stats": {
+ "default": true,
+ "title": "Show Stats",
+ "type": "boolean"
}
},
"title": "UIOptions",
@@ -1172,11 +1177,6 @@
"notifications": {
"$ref": "#/$defs/Notifications"
},
- "show_stats": {
- "default": true,
- "title": "Show Stats",
- "type": "boolean"
- },
"sort": {
"$ref": "#/$defs/Sort"
},
diff --git a/cyberdrop_dl/config/settings.py b/cyberdrop_dl/config/settings.py
index 96b4be368..fc7eef26e 100644
--- a/cyberdrop_dl/config/settings.py
+++ b/cyberdrop_dl/config/settings.py
@@ -351,6 +351,9 @@ class UIOptions(ConfigGroup):
"force CDL to run with a vertical layout"
refresh_rate: PositiveFloat = 10.0
+ show_stats: Annotated[bool, Parameter(name="stats")] = True
+ "Show stats report at the end of a run"
+
class MaxChildren(ConfigGroup, name=None):
forum: NonNegativeInt = 0
diff --git a/cyberdrop_dl/manager.py b/cyberdrop_dl/manager.py
index 2244f797f..645c357db 100644
--- a/cyberdrop_dl/manager.py
+++ b/cyberdrop_dl/manager.py
@@ -123,7 +123,7 @@ class Manager:
_log_dependencies()
def print_stats(self, stats: ScrapeStats) -> str:
- if not self.config.show_stats:
+ if not self.config.ui.show_stats:
return ""
log_spacer()
diff --git a/docs/README.md b/docs/README.md
index 250778c31..e6613b85d 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,5 +1,5 @@
---
-description: This is Cyberdrop-DL wiki
+description: This is `cyberdrop-dl` wiki
icon: hand-wave
layout:
title:
@@ -16,7 +16,7 @@ layout:
# Welcome!
-Cyberdrop-DL is an open source asynchronous downloader maintained by [jbsparrow](https://github.com/jbsparrow). It's goal is to act as a bulk downloader for various sites you will find around the web.
+`cyberdrop-dl` is an open source asynchronous downloader maintained by [jbsparrow](https://github.com/jbsparrow). It's a bulk downloader for various sites you will find around the web.
{% content-ref url="reference/supported-websites.md" %}
[supported-websites.md](reference/supported-websites.md)
@@ -24,7 +24,7 @@ Cyberdrop-DL is an open source asynchronous downloader maintained by [jbsparrow]
## Want to jump right in?
-Explore the Getting Started guide to quickly familiarize yourself with the setup process and get started with the software.
+Explore the Getting Started guide to quickly familiarize yourself with the setup process of installing and using `cyberdrop-dl`.
{% content-ref url="getting-started/" %}
[getting-started](getting-started/)
@@ -34,8 +34,8 @@ Explore the Getting Started guide to quickly familiarize yourself with the setup
Take a closer look and begin exploring the available configuration options and CLI arguments:
-{% content-ref url="reference/configuration-options/" %}
-[configuration-options](reference/configuration-options/)
+{% content-ref url="reference/config/" %}
+[configuration-options](reference/config/)
{% endcontent-ref %}
{% content-ref url="reference/cli-arguments.md" %}
@@ -43,5 +43,5 @@ Take a closer look and begin exploring the available configuration options and C
{% endcontent-ref %}
{% content-ref url="reference/notifications.md" %}
-[notifications.md](reference/notifications.md)
+[notifications.md](reference/config/notifications.md)
{% endcontent-ref %}
diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md
index a62b3f131..b93b74acd 100644
--- a/docs/SUMMARY.md
+++ b/docs/SUMMARY.md
@@ -2,34 +2,27 @@
- [Welcome!](README.md)
- [Getting Started](getting-started/README.md)
- - [Cyberdrop-DL Install](getting-started/cyberdrop-dl-install.md)
+ - [Install `cyberdrop-dl`](getting-started/cyberdrop-dl-install.md)
- [Running CDL on Android](getting-started/cyberdrop-dl-on-android.md)
- [Frequently Asked Questions](frequently-asked-questions.md)
-- [SimpCity Support Dropped](simpcity-support-dropped.md)
## Reference
-- [Supported Websites](reference/supported-websites.md)
-- [Configuration Options](reference/configuration-options/README.md)
- - [Special Type Options](reference/configuration-options/special_setting_types.md)
- - [Authentication](reference/configuration-options/authentication.md)
- - [Settings](reference/configuration-options/settings/README.md)
- - [Browser Cookies](reference/configuration-options/settings/browser_cookies.md)
- - [Download Options](reference/configuration-options/settings/download_options.md)
- - [Dupe Cleanup Options](reference/configuration-options/settings/dupe_cleanup_options.md)
- - [File Size Limits](reference/configuration-options/settings/file_size_limits.md)
- - [Files](reference/configuration-options/settings/files.md)
- - [Ignore Options](reference/configuration-options/settings/ignore_options.md)
- - [Logs](reference/configuration-options/settings/logs.md)
- - [Media Duration Limits](reference/configuration-options/settings/media_duration_limits.md)
- - [Runtime Options](reference/configuration-options/settings/runtime_options.md)
- - [Sorting](reference/configuration-options/settings/sorting.md)
- - [Global Settings](reference/configuration-options/global-settings/README.md)
- - [General](reference/configuration-options/global-settings/general.md)
- - [Rate Limiting Options](reference/configuration-options/global-settings/rate-limiting-options.md)
- - [UI Options](reference/configuration-options/global-settings/ui-options.md)
- - [Generic Crawlers](reference/configuration-options/global-settings/generic_crawlers_instances.md)
+- [Configuration](reference/config/README.md)
+ - [Special Types](reference/config/special_types.md)
+ - [Authentication](reference/config/authentication.md)
+ - [Notifications](reference/config/notifications.md)
+ - [Crawlers](reference/config/crawlers.md)
+ - [General](reference/config/general.md)
+ - [Hashing](reference/config/hashing.md)
+ - [JDownloader](reference/config/jdownloader.md)
+ - [Logs](reference/config/logs.md)
+ - [Max Children](reference/config/max_children.md)
+ - [Network](reference/config/network.md)
+ - [Sorting](reference/config/sorting.md)
+ - [UI](reference/config/ui-options.md)
+
- [CLI Arguments](reference/cli-arguments.md)
-- [Notifications](reference/notifications.md)
+- [Supported Websites](reference/supported-websites.md)
- [Changelog](https://github.com/Cyberdrop-DL/cyberdrop-dl/blob/main/CHANGELOG.md)
- [Contributing](https://github.com/Cyberdrop-DL/cyberdrop-dl/blob/main/CONTRIBUTING.md)
diff --git a/docs/frequently-asked-questions.md b/docs/frequently-asked-questions.md
index bc83d0f44..254f56b81 100644
--- a/docs/frequently-asked-questions.md
+++ b/docs/frequently-asked-questions.md
@@ -16,49 +16,64 @@ layout:
## What does this do?
-This is a bulk downloader for the supported sites. It supports resumable downloading (you can close and reopen the program at any time and it will pick up where it left off), and keeps track of your download history to avoid downloading files you've already downloaded in the past.
+This is a bulk downloader for several sites on the internet. It supports resuming downloads (you can close and reopen
+the program at any time and it will pick up where it left off), and keeps track of your download history and hashes to avoid
+downloading files you've already downloaded in the past.
## How do I update?
-If you are using one of the provided start files, it should do so automatically. Keep in mind that they will only update to the newest release of the same major version. ex: if you are using v9 start scripts, they will update to the latest v9 release.
-This is because every new major release has breaking changes and is not safe to automatically update to them.
-Each time there is a new major release, you will need to download new start scripts. Be sure to read the changelog to know about the breaking changes. You may need to perform some manual action to update successfully
-
-## Why do i get `DDoS-Guard` error downloading from `x` site?
+If you are using one of the provided start files, it should do so automatically. Keep in mind that they will only update to
+the newest release of the same major version. ex: if you are using v9 start scripts, they will update to the latest v9 release.
-You may need to import cookies. Follow the instructions here: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839)
+This is because every new major release has breaking changes and is not safe to automatically update to them.
+Each time there is a new major release, you will need to download new start scripts. Be sure to read the changelog to know about the breaking changes.
+You may need to perform some manual actions to update successfully
-## I'm trying to report a bug and they ask me for a logs file. Where is this file?
+## Why do I get `DDoS-Guard` error downloading from `x` site?
-By default, it'll be in `./AppData/configs/Default/logs/`
+DDoS-Guard is a protecting some websites use to block automated activity from bots/applications. You can visit the site on your browser to pass
+the DDoS-Guard check, export the cookies from your browser and them to import them into `cyberdrop-dl`.
-The `AppData` folder is created inside the folder where you run cyberdrop-dl from
+Follow the instructions here: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839)
## What does `SCRAPE_ERRORS` and `DOWNLOAD_ERRORS` mean?
-Quite simply, almost all of them you see will be HTTP Status codes. Such as: 404 - Not Found (dead link)
+Quite simply, almost all of them will be HTTP Status codes. Such as: 404 - Not Found (dead link)
+
+You can check [this page to learn about what each error code means](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).
-You check [this page to learn about what each error code means](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).
+These errors are **NOT** bugs. They are errors from the website itself. If your try to download the files manually from your browser you will most likely
+get the same error.
-These error are **NOT** bugs. They are errors from the website itself. The only exception is `422 Unprocessable Entity`, which `cyberdrop-dl` uses to report some internal errors
+The only exception is `422 Unprocessable Entity`, which `cyberdrop-dl` uses to report some internal errors
{% hint style="info" %}
"Unknown" errors are **definitely** bugs. Please report them on the issue tracker: <https://github.com/Cyberdrop-DL/cyberdrop-dl/issues>
{% endhint %}
+## Why do Simpcity URLs show as "Unsupported"?
+
+Support for SimpCity was removed on v5.6.3 in response to a request by the site admins. The site could not keep up with the high amount of traffic generated
+by `cyberdrop-dl` on top of the constant DDOS attacks they receive.
+
## Why are all the files skipped?
-The program tracks your download history and will skip any files you've previously downloaded to avoid duplicates. You can disable this behavior by using the `--ignore-history` CLI argument or setting `ignore_history` to `true` in the config
+The program tracks your download history and will skip any files you've been previously downloaded to avoid duplicates.
+You can disable this behavior by using the `--ignore-history` CLI argument or setting `ignore_history` to `true` in your config file
## `cyberdrop-dl` is not a recognized internal command
This issue is caused by an improper installation.
-Please revisit the [Getting Started](getting-started/README.md) guide and follow the steps provided to reinstall or use one of the latest start scripts
+Please revisit the [Getting Started](getting-started/README.md) guide and follow the steps provided to reinstall `cyberdrop-dl` with the start scripts.
+
+Run the `remove` file from the start scripts and them run the `install` file. Your config and database files will not be affected
## How do I scrape forum threads?
-You need to import cookies to use as authentication for those sites. Follow the instructions here: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839)
+You need to import cookies to use as authentication for those sites.
+
+Follow the instructions here: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839)
## Why are the filenames the way they are?
diff --git a/docs/getting-started/README.md b/docs/getting-started/README.md
index 217e47968..6d5a0dfad 100644
--- a/docs/getting-started/README.md
+++ b/docs/getting-started/README.md
@@ -16,11 +16,12 @@ layout:
# Getting Started
-## Installing Cyberdrop-DL</a>
+## Installing `cyberdrop-dl`</a>
-There are two ways to install Cyberdrop-DL. The first is the easy method, where you simply download the start scripts. The start scripts will automatically install a compatible python version and then install Cyberdrop-DL.
+There are two ways to install `cyberdrop-dl`. The first is the easy method, where you simply download the start scripts.
+The start scripts will automatically install a compatible python version and then install `cyberdrop-dl`.
-The second method is installing cyberdrop-dl directly from pypi using `uv`, `pipx` or `pip`
+The second method is installing `cyberdrop-dl` directly from pypi using `uv`, `pipx` or `pip`
For instructions, see:
@@ -32,29 +33,52 @@ For instructions, see:
## What now?</a>
-If you downloaded the start scripts, just open the start script with the name of the OS you are using. For a manual install, execute the program with this command:
+If you downloaded the start scripts, just open the `run` script with the name of the OS you are using.
+For a manual install, execute the program with this command:
```shell
cyberdrop-dl
```
-On the main screen, you can use the 'Edit URLs' option to add the URLs for the files you wish to download, them select the `download` option. That's it!
+On the main screen, you can use the 'Edit URLs' option to add the URLs for the files you wish to download, then go back to the main menu
+and choose `download` to start. That's it!
-However, Cyberdrop-DL has a ton of configuration options if you want more control over the downloads. You may want to review the following:
+However, `cyberdrop-dl` has a ton of configuration options if you want more control over the downloads. You may want to review the following:
-{% content-ref url="../reference/configuration-options/" %}
-[configuration-options](../reference/configuration-options/)
+{% content-ref url="../reference/config/" %}
+[configuration-options](../reference/config/)
{% endcontent-ref %}
{% content-ref url="../reference/cli-arguments.md" %}
[cli-arguments.md](../reference/cli-arguments.md)
{% endcontent-ref %}
-{% content-ref url="../reference/notifications.md" %}
-[notifications.md](../reference/notifications.md)
+{% content-ref url="../reference/config/notifications.md" %}
+[notifications.md](../reference/config/notifications.md)
{% endcontent-ref %}
-By default, all config files are under the `AppData` folder, which is created on the same directory that CDL it run from.
+## AppData and Configuration
+
+`cyberdrop-dl` have 3 files to control its behavior at runtime:
+
+- A config file (YAML)
+- A database file (SQLite)
+- A cache file (JSON)
+
+Additionally, a dedicated `logs` folder is created to store logs files of a session.
+On Windows, all files are stored in `%AppData%/cyberdrop-dl`, with the logs folder being `%AppData%/cyberdrop-dl/logs`
+On Unix systems, `cyberdrop-dl` follows the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir/0.8/) to store application files.
+
+These are the default locations used on each platform
+
+| Location | Windows | macOS/Linux/Android |
+| ----------- | ------------------------------------- | ------------------------------------------------------------------------------------------ |
+| Config file | `%AppData%/cyberdrop-dl/config.yaml` | `${XDG_CONFIG_HOME}/cyberdrop-dl/config.yaml` or `~/.config/cyberdrop-dl/config.yaml` |
+| Cache | `%AppData%/cyberdrop-dl/cache.json` | `${XDG_CACHE_HOME}/cyberdrop-dl/cache.json` or `~/.cache/cyberdrop-dl/cache.json` |
+| Database | `%AppData%/cyberdrop-dl/cyberdrop.db` | `${XDG_DATA_HOME}/cyberdrop-dl/cyberdrop.db` or `~/.local/share/cyberdrop-dl/cyberdrop.db` |
+| Logs | `%AppData%/cyberdrop-dl/Logs` | `${XDG_STATE_HOME}/cyberdrop-dl/logs` or `~/.local/state/cyberdrop-dl/logs` |
+
+### See also
You may also want to peek at what websites the program actually supports:
diff --git a/docs/getting-started/cyberdrop-dl-install.md b/docs/getting-started/cyberdrop-dl-install.md
index 77f0470d0..b2f80f045 100644
--- a/docs/getting-started/cyberdrop-dl-install.md
+++ b/docs/getting-started/cyberdrop-dl-install.md
@@ -3,33 +3,35 @@ description:
icon: download
---
-# Cyberdrop-DL Install
+# `cyberdrop-dl` Install
-## Using Start Scripts (From Release Page)
+## Using the start scripts (from GitHub release page)
-This is the simplest method to get the program up and running. Pre-configured start files are provided that will automatically install python, install cyberdrop-dl, update, and launch the program for you.
+This is the simplest method to get the program up and running. Pre-configured start files are provided that will
+automatically install python, install `cyberdrop-dl`, update, and launch the program for you.
{% hint style="info" %}
-The start scripts only work on 64bits operating systems. If you are running a 32bit OS, you need to install directly from pypi and may need to compile some dependencies
+The start scripts only work on 64bits operating systems. If you are running a 32bit OS, you need to install directly
+from pypi and may need to compile some dependencies
{% endhint %}
-You can download them here: [https://github.com/Cyberdrop-DL/cyberdrop-dl/releases/latest](https://github.com/Cyberdrop-DL/cyberdrop-dl/releases/latest)
+You can download them from here: <https://github.com/Cyberdrop-DL/cyberdrop-dl/releases/latest>
You only need to download the `Cyberdrop-DL_<version>.zip` file, you don't need to worry about the other files.
-Extract the contents of the zip file to any location where you'd like the program to run and store downloaded files. The extracted files will include an install files for Windows, macOS, and Linux
+Extract the contents of the zip file to any location. The extracted files will include an install file for Windows, macOS, and Linux
-Run the `install` file to install/update `cyberdrop-dl`, then use the `run` file to run it
+Run the `install` file to install/update `cyberdrop-dl`, then open the `run` file to run it. That's it!
{% hint style="info" %}
-If you are using Windows, **DO NOT** run the script as admin
+If you are using Windows, **DO NOT** run the scripts as admin
{% endhint %}
## Manual Install
### 1. Using `uv`
-The recommended way to install Cyberdrop-DL is using [`uv`](https://docs.astral.sh/uv).
+The recommended way to install `cyberdrop-dl` is using [`uv`](https://docs.astral.sh/uv).
{% tabs %}
@@ -50,7 +52,7 @@ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | ie
{% endtab %}
{% endtabs %}
-Once you have `uv`, you can install Cyberdrop-DL using:
+Once you have `uv`, you can install `cyberdrop-dl` using:
```shell
uv tool install cyberdrop-dl-patched
@@ -60,22 +62,13 @@ uv tool install cyberdrop-dl-patched
If you do not want to or can't use `uv`, you will need to install a compatible python version manually.
-If you don't have python, you can find and download it from their official website: [https://www.python.org/downloads/](https://www.python.org/downloads/)
+If you don't have python, you can find and download it from their official website: <https://www.python.org/downloads/>
{% hint style="info" %}
-Cyberdrop-DL requires python >=3.12
+`cyberdrop-dl` requires python >=3.12
{% endhint %}
-{% hint style="warning" %}
-If you are using a version of Cyberdrop-DL from the previous repository (`cyberdrop-dl` instead of `cyberdrop-dl-patched`), you **MUST** uninstall it before installing the patched version.
-
-```shell
-pip uninstall cyberdrop-dl
-```
-
-{% endhint %}
-
-Once you have python, you can install Cyberdrop-DL directly from pypi using `pipx` or `pip`. In a command prompt/terminal window:
+Once you have python, you can install `cyberdrop-dl` directly from pypi using `pipx` or `pip`. In a command prompt/terminal window:
{% tabs %}
@@ -87,7 +80,7 @@ Once you have python, you can install Cyberdrop-DL directly from pypi using `pip
pip install pipx
```
-- Install cdl
+- Install `cyberdrop-dl`
```shell
pipx install cyberdrop-dl-patched
@@ -97,7 +90,8 @@ pipx install cyberdrop-dl-patched
{% tab title="pip" %}
{% hint style="warning" %}
-Using bare `pip` to install `cyberdrop-dl-patched` is discouraged as it may lead to dependency conflicts with global installs and an inconsistent environment. Consider using `uv` or `pipx`
+Using bare `pip` to install `cyberdrop-dl` is discouraged as it may lead to dependency conflicts with global installs
+and an inconsistent environment. Please consider using `uv` or `pipx`
{% endhint %}
```shell
diff --git a/docs/getting-started/cyberdrop-dl-on-android.md b/docs/getting-started/cyberdrop-dl-on-android.md
index a19560472..5fbc521fb 100644
--- a/docs/getting-started/cyberdrop-dl-on-android.md
+++ b/docs/getting-started/cyberdrop-dl-on-android.md
@@ -5,31 +5,29 @@ icon: android
# Installing cyberdrop-dl on Android
-Cyberdrop-dl is a terminal app. That means you need a terminal emulator to run it. The defacto choice in Android is [termux](https://termux.dev/en/).
+Cyberdrop-dl is a terminal app. That means you need a terminal emulator to run it. The defacto choice in Android is [`termux`](https://termux.dev/en/).
{% hint style="info" %}
-Most of the dependencies need to be compiled from source. A rust compiler is required. This means the installation could take several minutes, especially on low end phones
-{% endhint %}
+On Android, some of the dependencies need to be compiled from source. A rust compiler is required. This means the installation could take several minutes, especially on low end phones
-{% hint style="warning" %}
-Compiling from source also requires a lot of extra storage. You will need at least 3.4GB just for the installation of CDL
+Compiling from source also requires a lot of extra storage. You will need at least 3.4GB of free space just for the installation
{% endhint %}
## 1. Install `termux`
Termux wiki: [https://wiki.termux.com/wiki/Installation](https://wiki.termux.com/wiki/Installation)
-Install termux from [F-droid (recommended)](https://f-droid.org/packages/com.termux/) or from the [Google Playstore (restricted version)](https://play.google.com/store/apps/details?id=com.termux):
+Install `termux` from [F-droid (recommended)](https://f-droid.org/packages/com.termux/) or from the [Google Playstore (restricted version)](https://play.google.com/store/apps/details?id=com.termux):
## 2. Install `cyberdrop-dl`
-Run the following commands inside termux
+Run the following commands inside `termux`
```shell
#!/bin/sh
termux-setup-storage
pkg upgrade -y
-pkg install rust which micro ffmpeg python uv -y
+pkg install rust micro ffmpeg python uv -y
# Making sure maturin knows we are building ON Android, not FOR Android
ANDROID_API_LEVEL=24
@@ -40,7 +38,8 @@ uv tool update-shell
```
{% hint style="warning" %}
-You will loose your config and database file if you uninstall termux. Use the CLI options to change the location of those files.
+You will loose your config and database file if you ever uninstall `termux`.
+Use the `--database-file` and `--config-file` CLI options to change the location of those files:
```shell
mkdir /sdcard/cyberdrop-dl
@@ -59,7 +58,7 @@ echo 'alias cyberdrop-dl="cyberdrop-dl --database-file /sdcard/cyberdrop-dl/cybe
## How to update `cyberdrop-dl`?
-Run this command inside termux:
+Run this command inside `termux`:
```shell
uv tool upgrade cyberdrop-dl-patched
diff --git a/docs/reference/cli-arguments.md b/docs/reference/cli-arguments.md
index a896dfc78..9489467d8 100644
--- a/docs/reference/cli-arguments.md
+++ b/docs/reference/cli-arguments.md
@@ -21,124 +21,57 @@ CLI inputs always take priority over config values.
{% endhint %}
{% hint style="info" %}
-Use `-` instead of `_` to separate words in an config option name when using it as a CLI argument: Ex: `auto_dedupe` needs to be `auto-dedupe` when using it via the CLI
+Use `-` instead of `_` to separate words in an config option name when using it as a CLI argument:
+
+Ex: `delete_partial_files` needs to be `delete-partial-files` when using it via the CLI
{% endhint %}
-You can pass any of the **Config Settings** and **Global Settings** options as a cli argument for the program.
+All config option except authentication credentials have a CLI equivalent to override them.
For items not explained below, you can find their counterparts in the configuration options to see what they do.
## CLI only arguments
-### `appdata-folder`
-
-| Type | Default |
-| ------ | ----------------------------- |
-| `Path` | `<Current Working Directory>` |
+These options can onlny be supplied via CLI argmunets. They are not included on the config file
-Folder where Cyberdrop-DL will store it's database, cache and config files.
-
-### `config-file`
+### `--config-file`
| Type | Default |
| ------ | ------- |
-| `Path` | `None` |
+| `Path` | `null` |
-Path to the CDL `settings.yaml` file to load
+Path to the config file to use for this session. The config file at the default location will be ignored. This file _must_ have a `.yml` or `.yaml` extension
{% hint style="info" %}
-If both `config` and `config-file` are supplied, `config-file` takes priority
+If provided, this file _must_ exists already, but it can be empty
{% endhint %}
-### `download`
-
-| Type | Default | Action |
-| ---------- | ------- | ------------ |
-| `BoolFlag` | `False` | `store_true` |
-
-Skips UI, start download immediately
-
-### `download-tiktok-audios`
-
-| Type | Default | Action |
-| ---------- | ------- | ------------ |
-| `BoolFlag` | `False` | `store_true` |
-
-Download TikTok audios from posts and save them as separate files
+### `--cache-file`
-### `download-tiktok-src-quality-videos`
-
-| Type | Default | Action |
-| ---------- | ------- | ------------ |
-| `BoolFlag` | `False` | `store_true` |
-
-By default, CDL will download the "optimized for streaming" version of tiktok videos. Setting this option to `True` will download videos in original (source) quality.
-
-`_original` will be added as a suffix to their filename.
-
-{% hint style="warning" %}
-This will make video downloads several times slower
-
-When it is set to `False` (the default) CDL can download 50 videos with a single request.
-When it is set to `True` , CDL needs to make at least 3 requests _per_ video to download them.
-
-There's also a daily limit of the API CDL uses: 5000 requests per day per IP
-
-Setting this option to `True` will consume the daily limit faster
-{% endhint %}
-
-### `impersonate`
-
-| Type | Default | Action |
-| -------------------------------------------------------------------------------- | ------- | ------------- |
-| `chrome", "edge", "safari", "safari_ios", "chrome_android", "firefox"` or `null` | `null` | `store_const` |
-
-Impersonation allows CDL to make requests and appear to be a legitimate web browser. This helps bypass bot-protection on some sites and it's required for any site that only accepts HTTP2 connections.
+| Type | Default |
+| ------ | ------- |
+| `Path` | `null` |
-- The default value (`null`) means CDL will automatically use impersonation for crawlers that were programmed to use it.
-- Passing an specific target (ex: `--impersonate chrome_android`) will make CDL use impersonation for all requests, using that tarjet
+Path to the cache file to use for this session. The cache at the default location will be ignored. This file _must_ have a `.json` extension
{% hint style="info" %}
-The current default target is `chrome`. The default target can change on any new release without notice
+If provided, this file _must_ exists already, but it can be empty
{% endhint %}
-### `portrait`
-
-| Type | Default | Action |
-| ---------- | ------- | ------------ |
-| `BoolFlag` | `False` | `store_true` |
-
-Force CDL to run with a vertical layout
-
-### `print-stats`
+### `--database-file`
-| Type | Default | Action |
-| ---------- | ------- | ------------- |
-| `BoolFlag` | `True` | `store_false` |
-
-Show stats report at the end of a run
-
-### `ui`
-
-| Type | Default |
-| ------------------------ | ------------ |
-| `CaseInsensitiveStrEnum` | `FULLSCREEN` |
-
-UI can have 1 of these values:
+| Type | Default |
+| ------ | ------- |
+| `Path` | `null` |
-- `DISABLED` : no output at all
-- `ACTIVITY` : only shows a spinner with the text `running CDL...`
-- `SIMPLE`: shows spinner + simplified progress bar
-- `FULLSCREEN`: shows the normal UI/progress view
+Path to the database file to use for this session. The database at the default location will be ignored. This file _must_ have a `.db` extension
{% hint style="info" %}
-Values are case insensitive, ex: both `disabled` and `DISABLED` are valid
+If provided, this file _must_ exists already, but it can be empty
{% endhint %}
## Overview
-Bool arguments like options within `Download Options`, `Ignore Options`, `Runtime Options`, etc. can be prefixed with `--no-` to negate them. Ex: `--no-auto-dedupe` will disable auto dedupe, overriding whatever the config option was set to.
-
<!-- START_CLI_OVERVIEW -->
```shell
@@ -161,7 +94,7 @@ Bulk asynchronous downloader for multiple file hosts
│ date │
│ --completed-before only retry downloads that were completed on or before this │
│ date │
-│ --config-file path to the CDL settings.yaml file to load │
+│ --config-file path to the CDL config.yaml file to load │
│ --download --no-download skips UI, start download immediately [default: False] │
│ --download-tiktok-audios download TikTok audios from posts and save them as separate │
│ --no-download-tiktok-audios files [default: False] │
diff --git a/docs/reference/config/README.md b/docs/reference/config/README.md
new file mode 100644
index 000000000..4ecc16776
--- /dev/null
+++ b/docs/reference/config/README.md
@@ -0,0 +1,36 @@
+---
+icon: sliders
+description: Here's how configuration works.
+---
+
+You can setup a configuration file to customize the default behaviour of `cyberdrop-dl`. All CLI options have a config equivalent
+but some options (like account credentials) can only be provided using a config file.
+
+The config file format is YAML and it _must_ have a `.yaml` or `.yml` extension. If a config file does not exists, `cyberdrop-dl` will use its internal defaults.
+
+You can manually create a config with all the default settings using the `Edit config` option on the main menu or running the command `cyberdrop-dl config new`
+
+`cyberdrop-dl` will always look for a config file at these default locations:
+
+- Windows: `%AppData%/cyberdrop-dl/config.yaml`
+- macOS/Linux/Android: `${XDG_CONFIG_HOME}/cyberdrop-dl/config.yaml` or `~/.config/cyberdrop-dl/config.yaml`
+
+You can also provide a config file manually via the `--config-file` CLI argument. If provided, the default config file will be ignored.
+A file provided by `--config-file` _must_ exists already. `cyberdrop-dl` will refuse to run otherwise.
+
+Config files can have partial settings. You do not have to specific every single option in the file, just the ones you want to use/override.
+
+The following is a valid config that specifies only 2 settings:
+
+```yaml
+dump_json: true
+ignore_history: true
+```
+
+{% hint style="info" %}
+Options provided via CLI arguments will always take priority over config options.
+
+Options will apply in this order:
+
+CLI Options **>** options from `--config-file` (if provided) **>** options from default config file (if it exists) **>** Internal defaults of the program
+{% endhint %}
diff --git a/docs/reference/config/authentication.md b/docs/reference/config/authentication.md
new file mode 100644
index 000000000..856815ecd
--- /dev/null
+++ b/docs/reference/config/authentication.md
@@ -0,0 +1,107 @@
+---
+description: These are all of the configuration options for Authentication.
+icon: user-lock
+---
+
+These settings allow you to provide login credentials for sites. All of them go under the `auth` namespace of the config file and they only accept string as values (or `null`)
+
+| Type | Default |
+| --------------- | ------- |
+| `str` or `null` | `null` |
+
+<details>
+
+<summary>Forums</summary>
+
+{% hint style="warning" %}
+Logging to forums with `Authentication` was deprecated in v6.7.0
+
+You need to use cookie files.
+
+See: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839)
+{% endhint %}
+
+</details>
+
+<details>
+
+<summary>GoFile</summary>
+
+If you decide to pay for GoFile Premium (faster downloads, access to frozen files, etc.) you can provide your API key to `cyberdrop-dl` to use it.
+
+```yaml
+auth:
+ gofile:
+ api_key: <my_api_key>
+```
+
+You can get your API key from <https://gofile.io/myProfile>
+
+</details>
+
+<details>
+
+<summary>JDownloader</summary>
+
+These are the same values you use in `JDownloder 2` -> `settings` -> `MyJDownloader`
+
+```yaml
+auth:
+ jdownloader:
+ device: <my_device_name>
+ password: <my_password>
+ username: <my_username>
+```
+
+</details>
+
+<details>
+
+<summary>PixelDrain</summary>
+
+If you decide to pay for PixelDrain premium (faster downloads, unlimited concurrent downloads, etc.) you can provide your API key to `cyberdrop-dl` to use it.
+
+```yaml
+auth:
+ pixeldrain:
+ api_key: <my_api_key>
+```
+
+You can get your API key from <https://pixeldrain.com/user/api_keys>
+
+</details>
+
+<details>
+
+<summary>Real-Debrid</summary>
+
+To download files from sites supported by Real-Debrid, you'll need to get the API token from your account.
+
+```yaml
+auth:
+ real_debrid:
+ api_key: <my_api_key>
+```
+
+You can get your API key here (you must be logged in): <https://real-debrid.com/apitoken>
+
+</details>
+
+<details>
+
+<summary>Mega.nz</summary>
+
+If you have premium or want to download files/folders only shared with you, provide CDL your account credentials:
+
+```yaml
+auth:
+ mega_nz:
+ email: <my_email>
+ password: <my_password>
+```
+
+{% hint style="warning" %}
+Accounts with 2 factor authentication (2FA) are NOT supported
+{% endhint %}
+
+</details>
diff --git a/docs/reference/config/crawlers.md b/docs/reference/config/crawlers.md
new file mode 100644
index 000000000..487d270e0
--- /dev/null
+++ b/docs/reference/config/crawlers.md
@@ -0,0 +1,138 @@
+# `disabled`
+
+| Type | Default | Additional Info |
+| ------------------- | ------- | -------------------------------------------------------------------- |
+| `list[NonEmptyStr]` | `[]` | This is an [`AdditiveArg`](../special_setting_types.md#additiveargs) |
+
+You can supply a list of crawlers to disable for the current run. This will make CDL completely ignore the crawler, as if the site was not supported.
+However, links from the site will still be processed by Real-Debrid (if enabled), JDownloader (If enabled) and the Generic crawler (If enabled), in that order.
+
+The list should be valid crawlers names. The name of the crawler is the name of the primary site they support. ex: `4Chan`, `Mega.nz`, `Dropbox`
+
+You can get the crawler' name from the [supported sites page](https://script-ware.gitbook.io/cyberdrop-dl/reference/supported-websites#supported-sites)
+The name of the crawer is the title of their section in the page (in bold).
+
+```yaml
+crawlers:
+ generic:
+ chevereto: []
+ discourse: []
+ kvs: []
+ wordpress_html: []
+ wordpress_media: []
+```
+
+# `generic`
+
+Generic crawlers are designed to work on any site that uses a **specific** framework. Users can supply a list of sites to map to these crawlers,
+and CDL will then be able to download from them. The URL in the list should be the primary URL of the site. ex: `https://forums.docker.com/`
+
+Supported generic crawlers:
+
+- `chevereto`: This works on any site that uses [Chevereto](https://chevereto.com//).
+
+- `discourse`: This works on any forum that uses [Discourse](https://www.discourse.org/).
+
+- `kvs`: Works on any tube site using [Kernel Video Sharing](https://www.kernel-video-sharing.com/en/).
+ Basically, any site that looks like one of these: <https://www.kernel-video-sharing.com/en/themes/>, ex: <https://www.kvs-demo.com/>
+
+- `wordpress_media`: This crawler should work on any [WordPress](https://wordpress.com/) site where content primarily consists of images or galleries. The images need to be hosted on the site itself. It requires sites to have a public WordPress REST API.
+
+- `wordpress_html`: This works on any WordPress site. It scrapes the actual HTML of the site, which means it works on sites that have embedded third-party media like videos or links to hosting sites. It is always slower than `wordpress_media`.
+
+## `chevereto`
+
+| Type | Default |
+| --------------- | ------- |
+| `list[HttpURL]` | `[]` |
+
+## `discourse`
+
+| Type | Default |
+| --------------- | ------- |
+| `list[HttpURL]` | `[]` |
+
+## `kvs`
+
+| Type | Default |
+| --------------- | ------- |
+| `list[HttpURL]` | `[]` |
+
+## `wordpress_media`
+
+| Type | Default |
+| --------------- | ------- |
+| `list[HttpURL]` | `[]` |
+
+## `wordpress_html`
+
+| Type | Default |
+| --------------- | ------- |
+| `list[HttpURL]` | `[]` |
+
+# Bandcamp
+
+## `formats`
+
+| Type | Default |
+| ----------------------------------------------------------------------------- | --------------------------------------------------------------------- |
+| List of `mp3-320`, `mp3`, `aac-hi`, `wav`, `flac`, `vorbis`, `aiff` or `alas` | [`mp3-320`, `mp3`, `aac-hi`, `wav`, `flac`, `vorbis`, `aiff`, `alas`] |
+
+Format to choose for downloads (if available), ordered by preference.
+
+```yaml
+crawlers:
+ bandcamp:
+ formats:
+ - mp3-320
+ - mp3
+ - aac-hi
+ - wav
+ - flac
+ - vorbis
+ - aiff
+ - alas
+```
+
+# Clyp.it
+
+## `prefer_mp3`
+
+| Type | Default |
+| ------ | ------- |
+| `Bool` | `false` |
+
+Download audios as `.mp3` files even if WAV (high quality) versions are available
+
+# OnePace
+
+## `prefer_dub`
+
+| Type | Default |
+| ------ | ------- |
+| `Bool` | `false` |
+
+Download episodes with english audio tracks instead of japanese (if available)
+
+# Tiktok
+
+## `original`
+
+| Type | Default |
+| ------ | ------- |
+| `Bool` | `false` |
+
+By default, CDL will download the "optimized for streaming" version of tiktok videos. Setting this option to `True` will download videos in original (source) quality.
+
+`_original` will be added as a suffix to their filename.
+
+{% hint style="warning" %}
+This will make video downloads several times slower
+
+When it is set to `false` (the default) CDL can download 50 videos with a single request.
+When it is set to `true` , CDL needs to make at least 3 requests _per_ video to download them.
+
+There's also a daily limit of the API CDL uses: 5000 requests per day per IP
+
+Setting this option to `true` will consume the daily limit faster
+{% endhint %}
diff --git a/docs/reference/configuration-options/global-settings/rate-limiting-options.md b/docs/reference/config/downloads.md
similarity index 58%
rename from docs/reference/configuration-options/global-settings/rate-limiting-options.md
rename to docs/reference/config/downloads.md
index 4022f7192..bc747270f 100644
--- a/docs/reference/configuration-options/global-settings/rate-limiting-options.md
+++ b/docs/reference/config/downloads.md
@@ -1,20 +1,4 @@
----
-description: These are limiting options for the program
----
-
-# Rate Limiting Options
-
-## `connection_timeout`
-
-| Type | Default |
-| ------------- | ------- |
-| `PositiveInt` | `15` |
-
-The number of seconds to wait while connecting to a website before timing out
-
-{% hint style="info" %} This value will also be used for Flaresolverr (if enabled) as the max number of seconds to solve a CAPTCHA challenge {% endhint %}
-
-## `download_attempts`
+# `attempts`
| Type | Default |
| ------------- | ------- |
@@ -22,22 +6,30 @@ The number of seconds to wait while connecting to a website before timing out
The number of download attempts per file. Some conditions are never retried (such as a `404` HTTP status)
-## `download_delay`
+```yaml
+downloads:
+ attempts: 2
+```
+
+# `delay`
| Type | Default |
| ------------------ | ------- |
| `NonNegativeFloat` | `0.0` |
-This is the number of seconds to wait between downloads to the same domain.
+Number of seconds to wait in between downloads to the same domain.
Some domains have internal limits set by the program, which can not be modified:
- `bunkr`: 0.5
-- `coomer`: 0.5
-- `kemono`: 0.5
- `nhentai.net`: 1
-## `download_speed_limit`
+```yaml
+downloads:
+ delay: 0.0
+```
+
+# `speed_limit`
| Type | Default |
| ---------- | ------- |
@@ -49,7 +41,12 @@ This setting specifies speed and it's interpreted as `<value> / second`. ex: `8M
This is the max rate of downloading in bytes (per second) for all downloads combined. Set to `0` to disable
-## `concurrent_segments`
+```yaml
+downloads:
+ speed_limit: 0B
+```
+
+# `concurrent_segments`
| Type | Default |
| ------------- | ------- |
@@ -57,7 +54,12 @@ This is the max rate of downloading in bytes (per second) for all downloads comb
Allow up to `<N>` HLS segments to be downloaded concurrently.
-## `jitter`
+```yaml
+downloads:
+ concurrent_segments: 10
+```
+
+# `jitter`
| Type | Default |
| ------------------ | ------- |
@@ -65,7 +67,12 @@ Allow up to `<N>` HLS segments to be downloaded concurrently.
Additional number of seconds to wait in between downloads. CDL will wait an additional random number of seconds in between 0 and the `jitter` value.
-## `max_simultaneous_downloads`
+```yaml
+downloads:
+ jitter: 0.0
+```
+
+# `concurrency`
| Type | Default |
| ------------- | ------- |
@@ -73,7 +80,12 @@ Additional number of seconds to wait in between downloads. CDL will wait an addi
This is the maximum number of files that can be downloaded simultaneously.
-## `max_simultaneous_downloads_per_domain`
+```yaml
+downloads:
+ concurrency: 15
+```
+
+# `concurrency_per_domain`
| Type | Default |
| ------------- | ------- |
@@ -90,22 +102,37 @@ Some domains have internal limits set by the program, which can not be modified:
- `pixeldrain`: 2
- `xxxbunker`: 2
-## `rate_limit`
+```yaml
+downloads:
+ concurrency_per_domain: 5
+```
-| Type | Default |
-| --------------- | ------- |
-| `PositiveFloat` | `25.0` |
+# `skip_and_mark_completed`
-{% hint style="info" %}
-This setting specifies speed and it's interpreted as `<value> / second`. ex: `25` means `25 requests / second`
-{% endhint %}
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
-This is the maximum number of requests that can be made by the program per second.
+Skip the download process for every file and mark them as downloaded in the database.
-## `read_timeout`
+```yaml
+downloads:
+ skip_and_mark_completed: false
+```
+
+# `slow_speed`
+
+| Type | Default |
+| ---------- | ------- |
+| `ByteSize` | `0` |
+
+{% hint style="info" %}
+This setting specifies speed and it's interpreted as `<value> / second`. ex: `8MB` means `8MB/s`
+{% endhint %}
-| Type | Default |
-| ------------------------- | ------- |
-| `PositiveFloat` or `null` | `300.0` |
+Downloads with a speed lower than this value for more than 10 seconds will be skipped. Set to `0` to disable
-The number of seconds to wait while reading data from a website before timing out. A `null` value will make CDL keep the socket connection open indefinitely, even if the server is not sending data anymore
+```yaml
+downloads:
+ slow_speed: 0B
+```
diff --git a/docs/reference/config/filters.md b/docs/reference/config/filters.md
new file mode 100644
index 000000000..f0d172015
--- /dev/null
+++ b/docs/reference/config/filters.md
@@ -0,0 +1,153 @@
+# `before`
+
+| Type | Default | Additional Info |
+| ---------------- | ------- | --------------------------------------------------------- |
+| `date` or `null` | `null` | The date should a valid ISO 8601 format, ex: `2021-12-23` |
+
+Only download files uploaded before this date.
+
+```yaml
+filters:
+ before: null
+```
+
+# `after`
+
+| Type | Default | Additional Info |
+| ---------------- | ------- | --------------------------------------------------------- |
+| `date` or `null` | `null` | The date should a valid ISO 8601 format, ex: `2021-12-23` |
+
+Only download files uploaded after this date.
+
+```yaml
+filters:
+ after: null
+```
+
+# `filename_regex`
+
+| Type | Default |
+| ----------------------- | ------- |
+| `NonEmptyStr` or `null` | `null` |
+
+Only download files if their filename match this regex expression
+
+```yaml
+filters:
+ filename_regex: null
+```
+
+# `only_hosts`
+
+| Type | Default | Additional Info |
+| ------------------- | ------- | -------------------------------------------------------------------- |
+| `list[NonEmptyStr]` | `[]` | This is an [`AdditiveArg`](../special_setting_types.md#additiveargs) |
+
+You can supply hosts that you'd like the program to exclusively scrape/download from. This setting accepts any domain, even if they are no supported.
+
+```yaml
+filters:
+ only_hosts: []
+```
+
+# `skip_hosts`
+
+| Type | Default | Additional Info |
+| ------------------- | ------- | -------------------------------------------------------------------- |
+| `list[NonEmptyStr]` | `[]` | This is an [`AdditiveArg`](../special_setting_types.md#additiveargs) |
+
+You can supply hosts that you'd like the program to skip, to not scrape/download from them. This setting accepts any domain, even if they are no supported.
+
+```yaml
+filters:
+ skip_hosts: []
+```
+
+# `allow_files_with_no_extension`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Download files without an extension. These files could potentially be dangerous
+
+{% hint style="info" %}
+CDL internally assumes any file without an extension is an `.mp4` file. That means any option that applies to videos like `--no-videos` and `--video.size.min` will apply to them.
+The actual file will still be downloaded without an extension
+{% endhint %}
+
+```yaml
+filters:
+ allow_files_with_no_extension: false
+```
+
+# Duration Limits
+
+You can provide the maximum and minimum duration for audio and video files.
+
+| Type | Default |
+| --------------------- | ------- |
+| `timedelta` or `null` | `null` |
+
+- A `timedelta` input is expected to be a valid ISO 8601 timespan, ex: `P10DT2H30M10S`
+- An `int` input is assumed to be seconds
+- A `str` input is expected to be in the format; `<value> <unit>`, ex: `10 days`.
+
+A value of `0` or `null` means no limit
+
+```yaml
+filters:
+ duration:
+ audio:
+ max: null
+ min: null
+ video:
+ max: null
+ min: null
+```
+
+# File Size Limits
+
+You can provide the maximum and minimum file size for each file "type".
+
+All options on this category take a `ByteSize` input ([more info here](../special_setting_types.md#bytesize)).
+
+| Type | Default |
+| -------------------- | ------- |
+| `ByteSize` or `null` | `null` |
+
+Setting any of these options to `0` or `null` means that limit is disabled
+
+```yaml
+filters:
+ sizes:
+ audio:
+ max: null
+ min: null
+ image:
+ max: null
+ min: null
+ non_media:
+ max: null
+ min: null
+ video:
+ max: null
+ min: null
+```
+
+# Files
+
+Enable/Disable downloads by file type
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `true` |
+
+```yaml
+filters:
+ files:
+ audio: true
+ images: true
+ non_media: true
+ videos: true
+```
diff --git a/docs/reference/config/general.md b/docs/reference/config/general.md
new file mode 100644
index 000000000..10f57b505
--- /dev/null
+++ b/docs/reference/config/general.md
@@ -0,0 +1,314 @@
+All setting on this section go at the root of the config file
+
+# `download_folder`
+
+| Type | Default |
+| ------ | ------------------------ |
+| `Path` | `downloads/cyberdrop-dl` |
+
+The path to the folder you want `cyberdrop-dl` to download files to.
+
+```yaml
+download_folder: downloads/cyberdrop-dl
+```
+
+# `dump_json`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `False` |
+
+If enabled, CDL will created a [json lines](https://jsonlines.org/) files with the information about every file downloaded in the current run.
+The path to this file will be the same as `--log-file` but with the extension `.results.jsonl`
+
+Each line in the file will contain the following details:
+
+```json
+{
+ "url": "https://store9.gofile.io/download/web/7c88c147-ABCD-4e4d-9a6c-12345678/a_video.mp4",
+ "referer": "https://gofile.io/d/ABC123",
+ "download_folder": "downloads/cyberdrop-dl/test_album (GoFile)",
+ "filename": "0hxte0li0o931lwgcrzbz_source.mp4",
+ "original_filename": "a_video.mp4",
+ "download_filename": "0hxte0li0o931lwgcrzbz_source.mp4",
+ "filesize": 12054723,
+ "ext": ".mp4",
+ "debrid_link": null,
+ "duration": null,
+ "album_id": "ABC123",
+ "datetime": "2025-01-22T11:00:07",
+ "parents": ["https://a_forum.com/threads/<name>.54321/post-123123"],
+ "parent_threads": ["https://a_forum.com/threads/<name>.54321"],
+ "partial_file": "downloads/cyberdrop-dl/test_album (GoFile)/a_video.mp4.part",
+ "complete_file": "downloads/cyberdrop-dl/test_album (GoFile)/a_video.mp4",
+ "hash": "xxh128:53ee56b7bfafa31b8780a572e9783df3",
+ "downloaded": true,
+ "attempts": 1
+}
+```
+
+```yaml
+dump_json: false
+```
+
+{% hint style="warning" %}
+The schema of this JSON output is NOT stable may change without notice, even on minor version updates
+{% endhint %}
+
+# `max_file_name_length`
+
+| Type | Default |
+| ------------- | ------- |
+| `PositiveInt` | `95` |
+
+Maximum number of characters a filename should have. CDL will truncate filenames longer that this.
+
+```yaml
+max_file_name_length: 95
+```
+
+# `max_folder_name_length`
+
+| Type | Default |
+| ------------- | ------- |
+| `PositiveInt` | `60` |
+
+Maximum number of characters a folder should have. CDL will truncate folders longer that this.
+
+```yaml
+max_folder_name_length: 60
+```
+
+# `min_free_space`
+
+| Type | Default | Restrictions |
+| ---------- | ------- | ------------ |
+| `ByteSize` | `5GB` | `>=512MB` |
+
+This is the minimum amount of free space require to start new downloads.
+
+```yaml
+min_free_space: 5.0GB
+```
+
+{% hint style="info" %}
+Values lower than `512MB` will always be replaced with `512MB`
+{% endhint %}
+
+# `cookies`
+
+| Type | Default |
+| ---------------- | ------- |
+| `Path` or `null` | `null` |
+
+Path to a file/folder with Netscape cookies. All cookie files must have a `.txt` extension. If the path is a folder, all `.txt` in the folder are read (non recursive)
+
+These can be used for websites that require login or to pass DDoS-Guard challenges.
+
+You can extract the cookies from your browser using tools like [cookie-editor](https://cookie-editor.com) and save them as a `.txt` file.
+The file must be a Netscape formatted cookie file. You can use any name for the file as long as it has a `.txt` extension.
+
+See: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839) for detailed instructions
+
+{% hint style="warning" %}
+The `user-agent` config value **MUST** match the `user-agent` of the browser from which you imported the cookies. If they do not match, the cookies will not work
+{% endhint %}
+
+# `deep_scrape`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+`cyberdrop-dl` uses a some tricks to try to reduce the number of requests it needs to make while scraping a site. However, this may cause a few links to be skipped.
+Use `--deep-scrape` to disable this and always make a new requests if required.
+
+```yaml
+deep_scrape: false
+```
+
+{% hint style="warning" %}
+Use this option only if when absolutely necessary, as it will significantly increase the number of requests being made.
+
+For example, scraping an album normally takes one single request.
+
+With `--deep-scrape`, CDL will make `n` requests per album, where `n` is the total number of items in the album
+{% endhint %}
+
+# `delete_partial_files`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Files downloaded by CDL have a `.part` extension (or `.cdl_hls` for HLS segments) that will replaced with the original extension the download reaches 100%.
+
+This allows CDL to resume downloads on subsequent runs.
+
+Set `true` will delete any `.part` and `.cdl_hls` files in the download folder at the end of a session.
+
+```yaml
+delete_partial_files: false
+```
+
+# `ignore_history`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+By default, the program tracks your downloads in a database to prevent downloading the same file multiple times, to save time and reduce load on the servers you're downloading from.
+
+Setting this to `true` to disable it, ignoring the database and allowing you to re-download files.
+
+```yaml
+ignore_history: false
+```
+
+# `delete_empty_folders`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Check (and remove) any empty files and folders in the `--download-folder` and `--sort.input_folder` at the end of a session.
+
+```yaml
+delete_empty_folders: true
+```
+
+# `mtime`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `True` |
+
+CDL dos it's absolute best to extract the upload date of a files.
+
+By default, this date will be set as the `last modified` and `last accessed` date on the downloaded file.
+
+On Windows and macOS, it will also try to set the `created` date.
+
+Change this to `false` and those dates will be the current datetime instead
+
+```yaml
+mtime: true
+```
+
+# `max_thread_depth`
+
+| Type | Default |
+| ---------------- | ------- |
+| `NonNegativeInt` | 0 |
+
+Restricts how many levels deep the scraper is allowed to go while scraping a thread
+
+A value of `0` means only the top level thread will be scraped
+
+```yaml
+max_thread_depth: 0
+```
+
+{% hint style="info" %}
+This setting is hardcoded to `0` for Discourse sites
+{% endhint %}
+
+{% hint style="warning" %}
+It is not recommended to set this above the default value of `0`, as there is a high chance of infinite nesting in certain cases.
+
+For example, when dealing with Megathreads, if a Megathread is linked to another Megathread, you could end up scraping an undesirable amount of data.
+{% endhint %}
+
+## Example
+
+Consider CDL finds the following sub-threads while scraping an input URL:
+
+```shell
+└── thread_01
+ ├── thread_02
+ ├── thread_03
+ │ ├── thread_09
+ │ ├── thread_10
+ │ └── thread_11
+ ├── thread_04
+ ├── thread_05
+ ├── thread_06
+ ├── thread_07
+ │ └── thread_12
+ └── thread_08
+```
+
+- With `max_thread_depth` = 0, CDL will only download files in `thread_01`, all the other threads will be ignored
+- With `max_thread_depth` = 1, CDL will only download files in `thread_01` to `thread_08`. All threads from `thread_09` to `thread_12` will be ignored
+- With `max_thread_depth` >= 2, CDL will download files from all the threads in this case
+
+# `max_thread_folder_depth`
+
+| Type | Default |
+| -------------------------- | ------- |
+| `NonNegativeInt` or `null` | `null` |
+
+Restricts the max number of nested folders CDL will create when `max_thread_depth` is greater that 0
+
+Values:
+
+- `null`: Create as many nested folders as required (AKA, the same number as `max_thread_depth` allows)
+- `0`: Do not create subfolders, use a flat structure for any nested thread.
+- `1+`: Create a max of `n` folders
+
+```yaml
+max_thread_folder_depth: null
+```
+
+## Example
+
+- With `max_thread_folder_depth` = `null`:
+
+```shell
+└── thread_01
+ ├── thread_02
+ ├── thread_03
+ │ ├── thread_09
+ │ ├── thread_10
+ │ └── thread_11
+ ├── thread_04
+ ├── thread_05
+ ├── thread_06
+ ├── thread_07
+ │ └── thread_12
+ └── thread_08
+```
+
+- With `max_thread_folder_depth` = 0:
+
+```shell
+├── thread_01
+├── thread_02
+├── thread_03
+├── thread_09
+├── thread_10
+├── thread_11
+├── thread_04
+├── thread_05
+├── thread_06
+├── thread_07
+├── thread_12
+└── thread_08
+```
+
+- With `max_thread_folder_depth` = 1:
+
+```shell
+└── thread_01
+ ├── thread_02
+ ├── thread_03
+ ├── thread_09
+ ├── thread_10
+ ├── thread_11
+ ├── thread_04
+ ├── thread_05
+ ├── thread_06
+ ├── thread_07
+ ├── thread_12
+ └── thread_08
+```
diff --git a/docs/reference/config/hashing.md b/docs/reference/config/hashing.md
new file mode 100644
index 000000000..c4a60593f
--- /dev/null
+++ b/docs/reference/config/hashing.md
@@ -0,0 +1,81 @@
+---
+description: These are options for enable/disable hashing and auto dupe deletion
+---
+
+`cyberdrop-dl` maintains an internal database of all downloaded files, indexed by their hashes.
+This can be used to automatically delete newly downloaded files if they were downloaded before. To enable auto dupe cleanup:
+
+1. Set `hashing` to `IN_PLACE` or `POST_DOWNLOAD`
+2. Set `dedupe` to `true`
+
+# `mode`
+
+| Type | Default |
+| ----------------------------------- | ---------- |
+| `OFF`,`IN_PLACE` or `POST_DOWNLOAD` | `IN_PLACE` |
+
+1. `OFF`: Do not compute any checksum of downloaded files
+2. `IN_PLACE`: compute checksums after each download finishes
+3. `POST_DOWNLOAD`: Wait for all downloads to finish and compute checksums for all files at once
+
+```yaml
+hashing:
+ mode: in_place
+```
+
+# `algorithms`
+
+| Type | Default |
+| ----------------------------------- | -------------------------- |
+| list of `xxh128`, `md5` or `sha256` | [`xxh128`, `md5`,`sha256`] |
+
+List of checksum algorithms to compute for new downloads. `xxh128` is used for file deduplication and will always be automatically added by CDL if missing from the list.
+The additional algorithms are used to skip downloads _before_ they even begin. Some file hosts provide these checksums beforehand.
+
+ex: Gofile provides `md5` and pixeldrain provides `sha256`
+
+```yaml
+hashing:
+ algorithms:
+ - xxh128
+ - md5
+ - sha256
+```
+
+# `dedupe`
+
+## `enabled`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Delete duplicated downloads automatically. Needs `hashing` to be enabled (`IN_PLACE` or `POST_DOWNLOAD`)
+
+Files with matching known hashes from the database are automatically deleted. Only the oldest copy of the files will be kept.
+
+Deletion will only happen if two or more matching files are found during the database search.
+
+{% hint style="warning" %}
+dedupe will delete files if you _ever_ downloaded them before, even if the original download no longer exists on disk
+{% endhint %}
+
+```yaml
+hashing:
+ dedupe:
+ enabled: true
+```
+
+## `use_trash_bin`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Deduped files are sent to the trash bin instead of being deleted
+
+```yaml
+hashing:
+ dedupe:
+ use_trash_bin: true
+```
diff --git a/docs/reference/config/jdownloader.md b/docs/reference/config/jdownloader.md
new file mode 100644
index 000000000..1ff013186
--- /dev/null
+++ b/docs/reference/config/jdownloader.md
@@ -0,0 +1,57 @@
+# `enabled`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Send unsupported URLs to JDownloader. All other JDownloader settings are ignored if this is `false`
+
+```yaml
+jdownloader:
+ enabled: false
+```
+
+# `autostart`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Request to JDownloader start downloads as immediately.
+
+If disabled, downloads will be added to the LinkGrabber queue and you have to manually start them on JDDownloader itself
+
+```yaml
+jdownloader:
+ autostart: false
+```
+
+# `download_folder`
+
+| Type | Default |
+| ---------------- | ------- |
+| `Path` or `null` | `null` |
+
+The `download_folder` jdownloader will use. A `null` value (the default) will use the same value as CDL's download folder (`--download-folder`).
+
+Use this option as path mapping when JDownloader is running on a different host / docker.
+
+```yaml
+jdownloader:
+ download_folder: null
+```
+
+# `whitelist`
+
+| Type | Default |
+| ------------------- | ------- |
+| `list[NonEmptyStr]` | `[]` |
+
+List of domain names. An unsupported URL will only be sent to JDownloader if its host is found on the list.
+
+An empty whitelist will send _any_ unsupported URL to jdownloader.
+
+```yaml
+jdownloader:
+ whitelist: []
+```
diff --git a/docs/reference/config/logs.md b/docs/reference/config/logs.md
new file mode 100644
index 000000000..7a2c5e961
--- /dev/null
+++ b/docs/reference/config/logs.md
@@ -0,0 +1,179 @@
+# `level`
+
+| Type | Default |
+| ----------------------------------------------- | ------- |
+| `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL` | `DEBUG` |
+
+Only log messages of this level or higher to the main log file, according to [Python logging levels](https://docs.python.org/3/library/logging.html#levels).
+
+| Level | Value | Description |
+| ---------- | ----- | -------------------------------------------------------------------------------------------------- |
+| `DEBUG` | 10 | Offers detailed information and HTTP requests details, typically useful to troubleshoot problems |
+| `INFO` | 20 | Provides general information about scrape and download progress |
+| `WARNING` | 30 | Potential issues or something that might need attention (e.g. `Login wasn't provided for <FORUM>`) |
+| `ERROR` | 40 | Serious problem preventing `cyberdrop-dl` to execute some function |
+| `CRITICAL` | 50 | Fatal error that causes `cyberdrop-dl` to exit immediately |
+
+```yaml
+logs:
+ level: DEBUG
+```
+
+{% hint style="info" %}
+Using anything other that `DEBUG` makes troubleshooting issues harder. Practically speaking, you should _only_ change this if you expect CDL to run for an extended period
+(with a large number of input URLs) to minimize the log files sizes
+{% endhint %}
+
+{% hint style="warning" %}
+`DEBUG` logs raw HTTP requests to the main log file. These requests may have personally identifiable information like your IP or login credentials for sites in cookies/headers
+{% endhint %}
+
+# `console_level`
+
+| Type | Default |
+| --------------------------------------------------------- | ------- |
+| `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL` or `null` | `null` |
+
+Only log messages of this level or higher to the console. A `null` value will use the same level as `logs.level`
+
+```yaml
+logs:
+ level: null
+```
+
+# `expire_after`
+
+| Type | Default |
+| --------------------- | ------- |
+| `timedelta` or `null` | `null` |
+
+if `logs.rotate` is enabled, this setting specifies the retention period for log files before they are deleted.
+
+- A `timedelta` input is expected to be a valid ISO 8601 timespan, ex: `P10DT2H30M10S`
+- An `int` input is assumed to be seconds
+- A `str` input is expected to be in the format; `<value> <unit>`, ex: `10 days`.
+- A `null` value means disabled (never delete any logs)
+
+{% hint style="warning" %}
+Any `.log` or `.csv` file within `logs.folder` will be deleted, even if CDL did not create them
+{% endhint %}
+
+{% hint style="info" %}
+Log files with an absolute path not relative to `logs.folder` will never be deleted
+{% endhint %}
+
+```yaml
+logs:
+ expire_after: null
+```
+
+# `folder`
+
+| Type | Default |
+| ---------------- | ------- |
+| `Path` or `null` | `null` |
+
+The path to the location you want `cyberdrop-dl` to store logs in. A `null` values will use the platform's default
+
+- Windows: `%AppData%/cyberdrop-dl/Logs`
+- macOS/Linux/Android: `${XDG_STATE_HOME}/cyberdrop-dl/logs` or `~/.local/state/cyberdrop-dl/logs`
+
+```yaml
+logs:
+ folder: null
+```
+
+# `rotate`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+If enabled, `cyberdrop-dl` will add the current date and time as a suffix to each log file, in the format `YYMMDD_HHMMSS`
+
+Every log file will be created inside a sub folder with the current date
+
+This will prevent overriding old log files
+
+```yaml
+logs:
+ rotate: false
+```
+
+# Files
+
+## `main`
+
+| Type | Default | Restrictions |
+| ------ | ---------------- | --------------------------------------------- |
+| `Path` | `downloader.log` | extension will always be overridden to `.log` |
+
+Path of main log file. For relative paths, the final path will be `logs.folder` / `logs.files.main`
+
+```yaml
+logs:
+ files:
+ main: downloader.log
+```
+
+## `download_errors`
+
+| Type | Default | Restrictions |
+| ------ | --------------------- | --------------------------------------------- |
+| `Path` | `download_errors.csv` | extension will always be overridden to `.csv` |
+
+Path of the download error log. For relative paths, the final path will be `logs.folder` / `logs.files.download_errors`
+
+`cyberdrop-dl` will output the links it fails to download, the reason and their origin in CSV format.
+
+```yaml
+logs:
+ files:
+ download_errors: download_errors.csv
+```
+
+## `scrape_errors`
+
+| Type | Default | Restrictions |
+| ------ | ------------------- | --------------------------------------------- |
+| `Path` | `scrape_errors.csv` | extension will always be overridden to `.csv` |
+
+Path of the errors errors log file. For relative paths, the final path will be `logs.folder` / `logs.files.scrape_errors`
+
+`cyberdrop-dl` will save to the file the links it fails to scrape, the reason and their origin in CSV format.
+
+```yaml
+logs:
+ files:
+ scrape_errors: scrape_errors.csv
+```
+
+## `unsupported`
+
+| Type | Default | Restrictions |
+| ------ | ----------------- | --------------------------------------------- |
+| `Path` | `unsupported.csv` | extension will always be overridden to `.csv` |
+
+Path of the unsupported log file. For relative paths, the final path will be `logs.folder` / `logs.files.unsupported`
+
+`cyberdrop-dl` will output links it can't download to this file.
+
+```yaml
+logs:
+ files:
+ unsupported: unsupported.csv
+```
+
+## `last_forum_post`
+
+| Type | Default | Restrictions |
+| ------ | --------------------- | --------------------------------------------- |
+| `Path` | `last_forum_post.csv` | extension will always be overridden to `.csv` |
+
+Save the URL of the last scraped post from each thread to this file. For relative paths, the final path will be `logs.folder` / `logs.files.last_forum_post`
+
+```yaml
+logs:
+ files:
+ unsupported: last_forum_post.csv
+```
diff --git a/docs/reference/config/max_children.md b/docs/reference/config/max_children.md
new file mode 100644
index 000000000..19ad55e35
--- /dev/null
+++ b/docs/reference/config/max_children.md
@@ -0,0 +1,74 @@
+# Max Children
+
+Limit the number of items to scrape. Each option defines the maximum number of sub-items a specific type of `scrape_item` will have:
+
+1. Max number of children from a **FORUM URL**
+2. Max number of children from a **FORUM POST**
+3. Max number of children from a **FILE HOST PROFILE**
+4. Max number of children from a **FILE HOST ALBUM**
+
+Using `0` for any option means no limit on the number of children for that type.
+
+```yaml
+max_children:
+ forum: 0
+ forum_post: 0
+ profile: 0
+ album: 0
+```
+
+### Examples
+
+{% tabs %}
+{% tab title="example 1" %}
+Scrape up to 15 forum posts max, grab all links and media within those posts, but only scrape a maximum of 10 items from each link in a post:
+
+```yaml
+max_children:
+ forum: 15
+ forum_post: 0
+ profile: 10
+ album: 0
+```
+
+{% endtab %}
+
+{% tab title="example 2" %}
+Only grab the first link from each post in a forum, but that link will have no limit of children:
+
+```yaml
+max_children:
+ forum: 0
+ forum_post: 1
+ profile: 0
+ album: 0
+```
+
+{% endtab %}
+
+{% tab title="example 3" %}
+Only grab the first **POST** / **ALBUM** from a profile
+
+```yaml
+max_children:
+ forum: 0
+ forum_post: 0
+ profile: 1
+ album: 0
+```
+
+{% endtab %}
+
+{% tab title="example 4" %}
+No limit on the number of posts, no limit of links inside a posts, no limits on a profile, maximum of 20 items from any album:
+
+```yaml
+max_children:
+ forum: 0
+ forum_post: 0
+ profile: 0
+ album: 20
+```
+
+{% endtab %}
+{% endtabs %}
diff --git a/docs/reference/config/network.md b/docs/reference/config/network.md
new file mode 100644
index 000000000..de5acf995
--- /dev/null
+++ b/docs/reference/config/network.md
@@ -0,0 +1,180 @@
+# `connection_timeout`
+
+| Type | Default |
+| ------------- | ------- |
+| `PositiveInt` | `15` |
+
+The number of seconds to wait while connecting to a website before timing out
+
+{% hint style="info" %} This value will also be used for Flaresolverr (if enabled) as the max number of seconds to solve a CAPTCHA challenge {% endhint %}
+
+```yaml
+network:
+ connection_timeout: 15.0
+```
+
+# `rate_limit`
+
+| Type | Default |
+| --------------- | ------- |
+| `PositiveFloat` | `25.0` |
+
+This is the maximum number of requests that can be made by the program per second.
+
+```yaml
+network:
+ rate_limit: 25.0
+```
+
+{% hint style="info" %}
+This setting specifies speed and it's interpreted as `<value> / second`. ex: `25` means `25 requests / second`
+{% endhint %}
+
+{% hint style="info" %}
+Rate limit is only taken into account while scraping, not for downloads
+{% endhint %}
+
+# `read_timeout`
+
+| Type | Default |
+| ------------------------- | ------- |
+| `PositiveFloat` or `null` | `300.0` |
+
+The number of seconds to wait while reading data from a website before timing out. A `null` value will make CDL keep the socket connection open indefinitely,
+even if the server is not sending data anymore
+
+```yaml
+network:
+ read_timeout: 300.0
+```
+
+# `flaresolverr`
+
+| Type | Default |
+| ------------------- | ------- |
+| `HttpURL` or `null` | `null` |
+
+[FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) is a proxy server to bypass Cloudflare and `DDoS-Guard` protection. The provided value must be a valid `http` URL of an existing flaresolverr instance. Ex: `http://192.168.1.44:4000`
+
+```yaml
+network:
+ flaresolverr: null
+```
+
+{% hint style="info" %}
+`0.0.0.0` is NOT a valid IP address. To set up a flaresolverr instance running on the same machine as CDL, use `127.0.0.1` as the IP
+{% endhint %}
+
+{% hint style="warning" %}
+This wiki does not cover flaresolverr setup process. If you need help, refer to their documentation. Please do not open issues related to flaresolverr or `DDoS-Guard`.
+See: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839) for alternatives using cookies
+{% endhint %}
+
+# `proxy`
+
+| Type | Default |
+| ------------------- | ------- |
+| `HttpURL` or `null` | `null` |
+
+The proxy you want CDL to use. Only `http`/`https` proxies are supported. Ex: `https://user:password@ip:port`
+
+```yaml
+network:
+ proxy: null
+```
+
+# `dump_responses`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `False` |
+
+CDL will save to disk a copy of every non binary request (text/HTML/JSON) as a single file. The files will be saved to a folder named `cdl_responses`, inside the parent folder of the main log file.
+
+```yaml
+network:
+ dump_responses: false
+```
+
+{% hint style="info" %}
+Flaresolverr responses are excluded. They are never dumped to disk
+{% endhint %}
+
+# `impersonate`
+
+| Type | Default | Action |
+| -------------------------------------------------------------------------------- | ------- | ------------- |
+| `chrome", "edge", "safari", "safari_ios", "chrome_android", "firefox"` or `null` | `null` | `store_const` |
+
+Impersonation allows CDL to make requests and appear to be a legitimate web browser. This helps bypass bot-protection on some sites and it's required for any site that only accepts HTTP2 connections.
+
+- The default value (`null`) means CDL will automatically use impersonation for crawlers that were programmed to use it.
+- Passing an specific target (ex: `--impersonate chrome_android`) will make CDL use impersonation for all requests, using that tarjet
+
+```yaml
+network:
+ impersonate: null
+```
+
+{% hint style="info" %}
+The current default target is `chrome`. The default target can change on any new release without notice, even minor versions
+{% endhint %}
+
+# `ssl_context`
+
+| Type | Default |
+| ----------------------- | -------------------- |
+| `NonEmptyStr` or `null` | `truststore+certifi` |
+
+Context that will used to verify SSL connections. Valid values are:
+
+- `truststore`: Will use certificates already included with the OS
+
+- `certifi`: Will use certificates bundled with the `certifi` version available at the release of the current CDL version
+
+- `truststore+certifi`: Will use certificates already included with the OS, with a fallback to `certifi` for missing certificates
+
+- `null`: Will completely disable SSL verification, allowing insecure connections via `HTTP`.
+
+Setting this to `null` will allow the program to connect to websites without SSL encryption (insecurely).
+
+```yaml
+network:
+ ssl_context: truststore+certifi
+```
+
+{% hint style="danger" %}
+Sensitive data may be exposed using an insecure connection. For your safety, is recommended to always use a secure HTTPS connection.
+{% endhint %}
+
+# `user_agent`
+
+| Type | Default |
+| ------------- | ------------------------------------------------------------------------ |
+| `NonEmptyStr` | `Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0` |
+
+The user agent is the signature of your browser. Some sites use it to identify if the request came from a human or a robot.
+You can google "what is my user agent" to get yours.
+
+```yaml
+network:
+ user_agent: Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0
+```
+
+{% hint style="info" %}
+If you use flaresolverr, this value **MUST** match with flaresolverr's user agent. Otherwise, flaresolverr cookies won't work
+{% endhint %}
+
+{% hint style="info" %}
+These crawlers will ignore custom user-agents and will always use `cyberdrop-dl/<version>`
+
+<!-- START_CUSTOM_UA_CRAWLERS -->
+
+- Archive.org
+- E621
+- MegaNz
+- RealDebrid
+- Transfer.it
+<!-- END_CUSTOM_UA_CRAWLERS -->
+
+{% endhint %}
diff --git a/docs/reference/config/notifications.md b/docs/reference/config/notifications.md
new file mode 100644
index 000000000..9dbd164db
--- /dev/null
+++ b/docs/reference/config/notifications.md
@@ -0,0 +1,114 @@
+---
+icon: envelope-open-text
+description: These are the options to setup notifications from CDL.
+---
+
+`cyberdrop-dl` generates a report at the end of a run with stats about all the downloads, total runtime, errors, deduplication report, etc.
+By default, this report is only shown in the console and at the end of the main log file.
+
+You can set up CDL to sent you the report via discord, email, a native notification of your OS, telegram and many other services.
+
+# Notifications via Discord
+
+To get notifications via discord, you need to provide a valid discord webhook URL in your config file.
+
+You can learn how to setup a webhook following the [official discord guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks).
+
+Optionally, you can add the tag `attach_logs=` as a prefix to your webhook url. This will tell CDL to include a copy of the main log as an attachment to Discord.
+
+| Type | Default | Restrictions |
+| ---------------------- | ------- | ----------------------------------------------- |
+| `AppriseURL` or `null` | `null` | The scheme of the URL must be `http` or `https` |
+
+```yaml
+notifications:
+ webhook: <URL>
+```
+
+{% hint style="info" %}
+Attachments have a size limit of 25MB. If you use `attach_logs=` and the main log file exceeds this limit, CDL will ignore it and send the notification without it
+{% endhint %}
+
+Example:
+
+> `attach_logs=https://discord.com/api/webhooks/webhook_id/webhook_token`
+
+# Notifications to other services (via Apprise)
+
+`cyberdrop-dl` uses [Apprise](https://github.com/caronc/apprise) to send notifications to any of the services than they support.
+
+{% hint style="info" %}
+`apprise` is an an optional dependency; It's not installed by default.
+
+To install `cyberdrop-dl` with `apprise`, add it as extra during installation:
+
+```shell
+uv tool install cyberdrop-dl-patched[apprise]
+```
+
+{% endhint %}
+
+## How to setup Apprise
+
+To send notifications via Apprise, paste all your Apprrise URLs in your config file. URLs must be in the format of one of the supported apprise services.
+
+You can check the full list of supported services [here](https://appriseit.com/services/).
+
+Apprise services also support the `attach_logs=` tag to send the main log as an attachment.
+
+```yaml
+notifications:
+ apprise: []
+```
+
+{% hint style="info" %}
+You can build the URL interactively on their website: <https://appriseit.com/url-builder>
+{% endhint %}
+
+## Troubleshooting Apprise notifications
+
+`cyberdrop-dl` will show you a message at the end of a run telling you if the apprise notifications were successfully sent or not. If you are having trouble getting notifications via Apprise, follow their [troubleshooting guide](https://github.com/caronc/apprise/wiki/Troubleshooting).
+
+# Examples
+
+{% tabs %}
+{% tab title="Email" %}
+To get notifications via email, use this URL format in your `apprise.txt` file:
+
+```shell
+mailto://user:[email protected]
+```
+
+{% endtab %}
+
+{% tab title="Email + Logs" %}
+Add `attach_logs` to your email URL in your `apprise.txt` file:
+
+```shell
+attach_logs=mailto://user:[email protected]
+```
+
+{% endtab %}
+
+{% tab title="Native OS notifications" %}
+Some operating systems require additional dependencies for notifications to work. `cyberdrop-dl` includes the required dependencies for Windows and macOS.
+Follow the url on the OS name to get additional information on how to set them up.
+
+| OS | Syntax |
+| -------------------------------------------------------------------- | --------------------------------------------------- |
+| [Linux (DBus Notifications)](https://appriseit.com/services/dbus/) | `dbus://` <br> `qt://` <br> `glib://` <br> `kde://` |
+| [Linux (Gnome Notifications)](https://appriseit.com/services/gnome/) | `gnome://` |
+| [macOS](https://appriseit.com/services/macosx/) | `macosx://` |
+| [Windows](https://appriseit.com/services/windows/) | `windows://` |
+
+{% endtab %}
+
+{% tab title="Discord + Logs" %}
+Add `attach_logs` to the `webhook_url` config option:
+
+```shell
+attach_logs=https://discord.com/api/webhooks/webhook_id/webhook_token
+```
+
+{% endtab %}
+{% endtabs %}
diff --git a/docs/reference/configuration-options/settings/sorting.md b/docs/reference/config/sorting.md
similarity index 64%
rename from docs/reference/configuration-options/settings/sorting.md
rename to docs/reference/config/sorting.md
index 10a0e1915..e7f75e25b 100644
--- a/docs/reference/configuration-options/settings/sorting.md
+++ b/docs/reference/config/sorting.md
@@ -1,9 +1,7 @@
-# Sorting
+`cyberdrop-dl` has a file sorter built in, but it's not enabled by default.
-Cyberdrop-DL has a file sorter built in, but it's disabled by default
-
-You can use the field names below to create a custom path format. You can also use essentially none of them and have a hard coded path.
-However, `filename` and `ext` must always be used.
+You can use the field names below to create a custom path format. You can also use none of them and have a hard coded path for sorted files.
+However, `filename` and `ext` should always be used as files will overwrite each other otherwise.
Common fields for sorting format options (supported for `audio`, `videos`, `images` and `other`):
@@ -19,55 +17,58 @@ Common fields for sorting format options (supported for `audio`, `videos`, `imag
>
> `filename`: the file's name (stem)
>
-> `parent_dir`: the name of the folder where the file is located at (its parent folder). This is normally the album name for photos or the post name for forums/reddit if `separate_post` is enabled
+> `parent_dir`: the name of the folder where the file is located at (its parent folder). This is normally the album name for photos or the post name for forums/reddit if `separate_post` is enabled
>
> `sort_dir`: the same path as `sort_folder` from the download options
-## `scan_folder`
+# `enabled`
-| Type | Default |
-| ---------------- | ------- |
-| `Path` or `null` | `null` |
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
-Sets the starting point for the file scan
+Enable/Disabled file sorting at the end of a download session. All other sorting options are ignored if this is `false`
-Each direct child of the `scan_folder` is recursively scanned, and files are moved based on your settings.
+```yaml
+sort:
+ enabled: false
+```
-If this is set to `null` (the default), the value of `download_dir` from the download options is used.
+# `input_folder`
-## `sort_downloads`
+| Type | Default |
+| ---------------- | ------- |
+| `Path` or `null` | `null` |
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
+Sort all files within this folder. Subfolders are recursively scanned, and files are moved based on your settings.
-Setting this to `true` will allow Cyberdrop-DL to sort downloads after a run is complete.
+A value of `null` (the default) will use the save folder as `--download-folder`.
+
+```yaml
+sort:
+ input_folder: null
+```
-## `sort_folder`
+# `output_folder`
-| Type | Default |
-| ------ | ----------------------------------------- |
-| `Path` | `Downloads/Cyberdrop-DL Sorted Downloads` |
+| Type | Default |
+| ------ | ------------------------------- |
+| `Path` | `downloads/cyberdrop-dl sorted` |
This is the path to the folder you'd like sorted downloads to be stored in.
{% hint style="warning" %}
-Setting `sort_folder` to the same value as `scan_folder` is not supported and will lead to expected results
+Setting `--sort.output_folder` to the same value as `--sort.input_folder` (or a subfolder of it) is not supported and will lead to expected results
{% endhint %}
-## `sort_incrementer_format`
-
-| Type | Default |
-| ------------- | ------- |
-| `NonEmptyStr` | `({i})` |
-
-When naming collisions happen, Cyberdrop-DL will rename files automatically
-
-> `image.jpg` -> `image (1).jpg`.
+```yaml
+sort:
+ output_folder: downloads/cyberdrop-dl sorted
+```
-You can modify the format as needed, but it must include `{i}` to specify where the auto-increment value should be placed
+# Formats
-## `sorted_audio`
+## `audio`
| Type | Default |
| ----------------------- | --------------------------------------------- |
@@ -85,7 +86,13 @@ In addition to the common sorting format fields, this option supports:
>
> `sample_rate`: audio sample rate. This is an `int`
-## `sorted_image`
+```yaml
+sort:
+ formats:
+ audio: "{sort_dir}/{base_dir}/Audio/{filename}{ext}"
+```
+
+## `image`
| Type | Default |
| ----------------------- | ---------------------------------------------- |
@@ -101,7 +108,13 @@ In addition to the common sorting format fields, this option supports:
>
> `resolution`: `width`x`height` ex. 1080x1920. This is a `str`
-## `sorted_video`
+```yaml
+sort:
+ formats:
+ image: "{sort_dir}/{base_dir}/Images/{filename}{ext}"
+```
+
+## `video`
| Type | Default |
| ----------------------- | --------------------------------------------- |
@@ -111,11 +124,11 @@ This is the format for the directory structure and naming scheme for video files
In addition to the common sorting format fields, this option supports:
-> `codec`: ex. h264. This is a `str`. It could potentially be `None` for some files
+> `codec`: ex. h264. This is a `str`. It could potentially be `null` for some files
>
> `duration`: video total runtime in seconds. This is an `int`
>
-> `fps`: ex. `24`. This represents a number but is a `str`. It could potentially be `None` for some files
+> `fps`: ex. `24`. This represents a number but is a `str`. It could potentially be `null` for some files
>
> `length`: same as `duration`
>
@@ -125,7 +138,13 @@ In addition to the common sorting format fields, this option supports:
>
> `resolution`: `width`x`height` ex. 1080x1920. This is a `str`
-## `sorted_other`
+```yaml
+sort:
+ formats:
+ video: "{sort_dir}/{base_dir}/Videos/{filename}{ext}"
+```
+
+## `non_media`
| Type | Default |
| ----------------------- | --------------------------------------------- |
@@ -133,7 +152,31 @@ In addition to the common sorting format fields, this option supports:
This is the format for the directory structure and naming scheme for other files. Set to `null` to skip sorting other files
-## Group URLs
+```yaml
+sort:
+ formats:
+ non_media: "{sort_dir}/{base_dir}/Other/{filename}{ext}"
+```
+
+## `incrementer`
+
+| Type | Default |
+| ------------- | -------- |
+| `NonEmptyStr` | ` ({i})` |
+
+When naming collisions happen, `cyberdrop-dl` will rename files automatically
+
+> `image.jpg` -> `image (1).jpg`.
+
+You can modify the format as needed, but it must include `{i}` to specify where the auto-increment value should be placed
+
+```yaml
+sort:
+ formats:
+ incrementer: " ({i})"
+```
+
+# Group URLs
It is possible to treat a list of URLs as a group, allowing them to be downloaded to a single folder.
@@ -141,7 +184,7 @@ To define a group, put a title above the URLs you want to be in the group, using
To define the end of a group, add a new group with no name. (`---` or `===`)
-Here is an example URL file with two groups:
+Here is an example `URLs.txt` file with two groups:
```text
https://example.com/file1.jpg
@@ -164,3 +207,20 @@ Those downloads would be sorted as follows:
| file1.jpg | file2.jpg | file5.jpg |
| file4.jpg | file3.jpg | file6.jpg |
| file7.jpg | | |
+
+And downloaded to the following folders:
+
+```shell
+└── downloads
+ ├── Group 1
+ │ ├── file2.jpg
+ │ └── file3.jpg
+ ├── Group 2
+ │ ├── file5.jpg
+ │ └── file6.jpg
+ └── Loose Files
+ ├── file1.jpg
+ ├── file4.jpg
+ └── file7.jpg
+
+```
diff --git a/docs/reference/configuration-options/special_setting_types.md b/docs/reference/config/special_types.md
similarity index 66%
rename from docs/reference/configuration-options/special_setting_types.md
rename to docs/reference/config/special_types.md
index bc2499f31..1033f7f2d 100644
--- a/docs/reference/configuration-options/special_setting_types.md
+++ b/docs/reference/config/special_types.md
@@ -3,13 +3,11 @@ description: Configuration settings with special behavior or details.
icon: sparkles
---
-# Special Setting Types
-
-## `AdditiveArgs`
+# `AdditiveArgs`
Special type for some settings that accept multiple values as input (`lists` or `sets`). When passing values as CLI arguments, if the first value is `+`, any value after it will be added to the values specified in the config file instead of overriding it. Similarly, if the first value is `-`, any value after it will be removed from the values specified in the config
-### Examples
+## Examples
If you have the following `skip_hosts` setting in you config file:
@@ -22,8 +20,8 @@ skip_hosts:
You will get the following results:
-| Value you used | Value CDL interpreted | Details |
-| ---------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------- |
+| Value you used | Value CDL interpreted | Details |
+| ----------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------- |
| `--skip-hosts instagram.com` | `[instagram.com]` | config values were overridden by CLI values |
| `--skip-hosts "+" instagram.com` | `[drive.google.com, youtube.com, facebook.com, instagram.com]` | config values and CLI values were merged |
| `--skip-hosts "-" drive.google.com youtube.com` | `[facebook.com]` | CLI values were removed from the config values |
@@ -32,18 +30,18 @@ You will get the following results:
Always use quotes for "+" and "-" to make sure your shell does not try to parse them as additional flags
{% endhint %}
-## `BoolFlag`
+# `BoolFlag`
A special kind of `bool`. Within a config file, it can have a `true` or `false` value. However, when used via CLI, the value is assumed from the flag name. The normal name is `true`, and prefixing the name with `--no` means `false`.
-### Examples
+## Examples
-| Value you used | Value CDL interpreted |
-| ------------------ | --------------------- |
-| `--auto-dedupe` | auto-dedupe: `true` |
-| `--no-auto-dedupe` | auto-dedupe: `false` |
+| Value you used | Value CDL interpreted |
+| --------------------------- | ----------------------------- |
+| `--delete-partial-files` | delete_partial_files: `true` |
+| `--no-delete-partial-files` | delete_partial_files: `false` |
-## `ByteSize`
+# `ByteSize`
A special kind of `int` that also accepts suffixes like `GB`, `MiB` and `KB` to specify valid values
@@ -51,11 +49,11 @@ In conformance with IEC 80000-13 Standard, `1KB` means `1000 bytes`, and `1KiB`
### Examples
-| Value you used | Value CDL interpreted |
-| -------------- | --------------------- |
-| `1GB` | `1.000.000.000 bytes` |
-| `512` | `512 bytes` |
-| `1MiB` | `1.048.576 bytes` |
+| Value you used | Value CDL interpreted |
+| ----------------------------- | --------------------------------------- |
+| `--min-free-space 1000000000` | min_free_space: `1.000.000.000` (bytes) |
+| `--min-free-space 1GB` | min_free_space: `1.000.000.000` (bytes) |
+| `--min-free-space 1GiB` | min_free_space: `1,073,741,824` (bytes) |
{% hint style="info" %}
`ByteSize` is also used for some settings to specify speed and it's interpreted as `<value> / second`. ex: `8MB` means `8MB/s`
diff --git a/docs/reference/config/subfolders.md b/docs/reference/config/subfolders.md
new file mode 100644
index 000000000..461c114b4
--- /dev/null
+++ b/docs/reference/config/subfolders.md
@@ -0,0 +1,127 @@
+# `create`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `true` |
+
+Normally, downloads may create a folder structure like:
+
+> `downloads/folderA/folderB/folderC/image.jpg`
+
+If this si set to `false` will only create a single folder per URL place all its children inside it:
+
+> `Downloads/folderA/image.jpg`
+
+```yaml
+subfolders:
+ create: true
+```
+
+# `include`
+
+## `album_id`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Include the album ID (random alphanumeric string) of the album in the subfolder name.
+
+## `thread_id`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Include the thread ID (random alphanumeric string) of the forum thread in the subfolder name.
+
+## `domain`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Include "(DOMAIN)" of the website in the subfolder name
+
+```yaml
+subfolders:
+ include:
+ album_id: false
+ domain: true
+ thread_id: false
+```
+
+# `separate_posts`
+
+| Type | Default |
+| ------ | ------- |
+| `bool` | `false` |
+
+Setting this to `true` will separate content from forum and site posts into separate folders.
+
+This option only works with sites that have 'posts':
+
+- `Forums`
+- `Discourse`
+- `Tiktok`
+- `Coomer`, `Kemono` and `Nekohouse`.
+
+For some sites, this value is hardcorded to `true` because each post is always an individual page:
+
+- `Wordpress`
+- `eFukt`
+
+```yaml
+subfolders:
+ separate_posts: false
+```
+
+# `separate_posts_format`
+
+| Type | Default |
+| ------------- | ----------- |
+| `NonEmptyStr` | `{default}` |
+
+This is the format for the directory created when using `--separate-posts`.
+
+Unique Path Flags:
+
+> `date`: date of the post. This is a python `datetime` object
+>
+> `id`: The post id. This is always a `string`, even if some sites use numbers
+>
+> `number`: This no longer means anything. Currently, it always has the same value as `id`
+>
+> `title`: post title. This is a `string`
+
+{% hint style="warning" %}
+Not all sites support all possible flags.
+
+If you use a format with a field that the site does not support, CDL will replace it with `UNKNOWN_<FIELD_NAME>`
+
+{% endhint %}
+
+Setting it to `{default}` will use the default format, which is different for each crawler:
+
+| Site | Default Format |
+| ------------------------------------- | ---------------------------------- |
+| `Forums (Xenforo/vBulletin/Invision)` | `{date} - {id} - {title}` |
+| `Discourse` | `{date} - {id} - {title}` |
+| `Reddit` | `{title}` |
+| `WordPress` | `{date:%Y-%m-%d} - {id} - {title}` |
+| `eFukt` | `{date:%Y-%m-%d} {title}` |
+| `Tiktok` | `{date:%Y-%m-%d} - {id}` |
+
+A date without a `format_spec` defaults to ISO 8601 format
+
+You can use any valid format string supported by python, with the following restrictions:
+
+- You can not have positional arguments in the format string. ex: `post {0} from date {1}`
+- You can not have unnamed fields in the format string. ex: `post {} from date {}`
+- You can not perform operations within the format string. ex: `post {id + 1} from date {date}`
+- All the fields named in the format string must be valid fields for that format option. CDL will validate this at startup
+
+```yaml
+subfolders:
+ separate_posts_format: "{default}"
+```
diff --git a/docs/reference/config/ui-options.md b/docs/reference/config/ui-options.md
new file mode 100644
index 000000000..74abbd92d
--- /dev/null
+++ b/docs/reference/config/ui-options.md
@@ -0,0 +1,62 @@
+---
+description: These are the options for controlling the UI of the program
+---
+
+# `mode`
+
+| Type | Default |
+| ----------------------------------------------- | ------------ |
+| `DISABLED`, `ACTIVITY`,`SIMPLE` or `FULLSCREEN` | `FULLSCREEN` |
+
+- `DISABLED` : no output at all, only log messages (if enabled)
+- `ACTIVITY` : only shows a spinner with the text `running cyberdrop-dl vX.Y.Z...`
+- `SIMPLE`: shows spinner + simplified progress bar
+- `FULLSCREEN`: shows the normal UI/progress view
+
+```yaml
+ui:
+ mode: fullscreen
+```
+
+{% hint style="info" %}
+Values are case insensitive, ex: both `disabled` and `DISABLED` are valid
+{% endhint %}
+
+# `portrait`
+
+| Type | Default |
+| ------ | ------- |
+| `Bool` | `False` |
+
+Force CDL to run with a vertical layout
+
+```yaml
+ui:
+ portrait: false
+```
+
+# `refresh_rate`
+
+| Type | Default |
+| --------------- | ------- |
+| `PositiveFloat` | `10.0` |
+
+Refresh the UI <n> times per second. Changing this value may help with screen flickering
+
+```yaml
+ui:
+ refresh_rate: 10.0
+```
+
+# `show_stats`
+
+| Type | Default |
+| ------ | ------- |
+| `Bool` | `true` |
+
+Show stats report at the end of a run
+
+```yaml
+ui:
+ show_stats: true
+```
diff --git a/docs/reference/configuration-options/README.md b/docs/reference/configuration-options/README.md
deleted file mode 100644
index 12ed03fec..000000000
--- a/docs/reference/configuration-options/README.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-icon: sliders
-description: Here's how configuration works.
----
-
-# Configuration Options
-
-There are three type of config files: config settings, global settings and authentication settings.
-
-{% content-ref url="authentication.md" %}
-[authentication.md](authentication.md)
-{% endcontent-ref %}
-
-{% content-ref url="global-settings/" %}
-[global-settings/](global-settings/)
-{% endcontent-ref %}
-
-{% content-ref url="settings/" %}
-[settings](settings/)
-{% endcontent-ref %}
-
-{% hint style="info" %}
-**Global Settings** and **Authentication Settings** are "global". They apply to *all* config settings. You can set them once and never touch them again.
-{% endhint %}
-
-Each config setting will be setup by default to have a separate `URLs.txt` files and separate log files.
diff --git a/docs/reference/configuration-options/authentication.md b/docs/reference/configuration-options/authentication.md
deleted file mode 100644
index 6947c7483..000000000
--- a/docs/reference/configuration-options/authentication.md
+++ /dev/null
@@ -1,92 +0,0 @@
----
-description: These are all of the configuration options for Authentication.
-icon: user-lock
----
-
-# Authentication
-
-All the options in these list are optional. The default value for all of them is an empty `str`
-
-| Type | Default |
-| ----- | ------- |
-| `str` | `""` |
-
-<details>
-
-<summary>Forums</summary>
-
-{% hint style="warning" %}
-Logging to forums with `Authentication` was deprecated in v6.7.0
-
-You need to use cookie files.
-
-See: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839)
-{% endhint %}
-
-</details>
-
-<details>
-
-<summary>GoFile</summary>
-
-If you decide to pay for GoFile Premium (faster downloads, etc.) you can provide your API key to Cyberdrop-DL in order for the program to use it.
-
-- `api_key`
-
-You can get your API key here: [https://gofile.io/myProfile](https://gofile.io/myProfile)
-
-</details>
-
-<details>
-
-<summary>JDownloader</summary>
-
-Under JDownloader 2 settings -> MyJDownloader:
-
-- `username`
-
-- `password`
-
-- `device`
-
-</details>
-
-<details>
-
-<summary>PixelDrain</summary>
-
-If you decide to pay for PixelDrain premium (faster downloads, etc.) you can provide your API key to Cyberdrop-DL in order for the program to use it.
-
-- `api_key`
-
-You can get your API key here: [https://pixeldrain.com/user/api_keys](https://pixeldrain.com/user/api_keys)
-
-</details>
-
-<details>
-
-<summary>Real-Debrid</summary>
-
-In order to download files from sites supported by real-debrid, you'll need to get the API token from your account.
-
-- `api_key`
-
-You can get your API key here (you must be logged in): [https://real-debrid.com/apitoken](https://real-debrid.com/apitoken)
-
-</details>
-
-<details>
-
-<summary>Mega.nz</summary>
-
-If you have premium or want to download files/folders only shared with you, provide CDL these values:
-
-- `email`
-
-- `password`
-
-{% hint style="warning" %}
-Accounts with 2 factor authentication (2FA) are NOT supported
-{% endhint %}
-
-</details>
diff --git a/docs/reference/configuration-options/global-settings/README.md b/docs/reference/configuration-options/global-settings/README.md
deleted file mode 100644
index 6242b2e95..000000000
--- a/docs/reference/configuration-options/global-settings/README.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-description: These are all of the configuration options for Global Settings.
-icon: earth-americas
----
-
-# Global Settings
diff --git a/docs/reference/configuration-options/global-settings/general.md b/docs/reference/configuration-options/global-settings/general.md
deleted file mode 100644
index 59df49ecd..000000000
--- a/docs/reference/configuration-options/global-settings/general.md
+++ /dev/null
@@ -1,130 +0,0 @@
----
-description: These are some general settings that will be used regardless of which config is loaded
----
-
-# General
-
-## `disable_crawlers`
-
-| Type | Default | Additional Info |
-| ------------------- | ------- | -------------------------------------------------------------------- |
-| `list[NonEmptyStr]` | `[]` | This is an [`AdditiveArg`](../special_setting_types.md#additiveargs) |
-
-You can supply a list of crawlers to disable for the current run. This will make CDL completely ignore the crawler, as if the site was not supported. However, links from the site will still be processed by Real-Debrid (if enabled), Jdownloader (If enabled) and the Generic crawler (If enabled), in that order.
-
-The list should be valid crawlers names. The name of the crawler is the name of the primary site they support. ex: `4Chan`, `Bunkrr`, `Dropbox`
-
-Crawlers names correspond to the column `site` in the [supported sites page](https://script-ware.gitbook.io/cyberdrop-dl/reference/supported-websites#supported-sites).
-
-## `enable_generic_crawler`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-CDL has a generic crawler that will try to download from unsupported sites. Setting this to `true` will enable it.
-
-{% hint style="info" %}
-CDL will always try to download from unsupported URLs if the last part of the URL has a known file extension. ex: `.jpg`
-{% endhint %}
-
-## `flaresolverr`
-
-| Type | Default |
-| ------------------- | ------- |
-| `HttpURL` or `null` | `null` |
-
-[FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) is a proxy server to bypass Cloudflare and `DDoS-Guard` protection. The provided value must be a valid `http` URL of an existing flaresolverr instance. Ex: `http://192.168.1.44:4000`
-
-{% hint style="info" %}
-`0.0.0.0` is NOT a valid IP address. To set up a flaresolverr instance running on the same machine as CDL, use `127.0.0.1` as the IP
-{% endhint %}
-
-{% hint style="warning" %}
-This wiki does not cover flaresolverr setup process. If you need help, refer to their documentation. Please do not open issues related to flaresolverr or `DDoS-Guard`.
-See: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839) for alternatives using cookies
-{% endhint %}
-
-## `max_file_name_length`
-
-| Type | Default |
-| ------------- | ------- |
-| `PositiveInt` | `95` |
-
-This is the maximum number of characters a filename should have. CDL will truncate filenames longer that this.
-
-## `max_folder_name_length`
-
-| Type | Default |
-| ------------- | ------- |
-| `PositiveInt` | `95` |
-
-This is the maximum number of characters a folder should have. CDL will truncate folders longer that this.
-
-## `proxy`
-
-| Type | Default |
-| ------------------- | ------- |
-| `HttpURL` or `null` | `null` |
-
-The proxy you want CDL to use. Only `http` proxies are supported. Ex: `https://user:password@ip:port`
-
-## `required_free_space`
-
-| Type | Default | Restrictions |
-| ---------- | ------- | ------------ |
-| `ByteSize` | `5GB` | `>=512MB` |
-
-This is the minimum amount of free space require to start new downloads.
-
-{% hint style="info" %}
-If you set a value lower than `512MB`, CDL will override it with `512MB`
-{% endhint %}
-
-## `ssl_context`
-
-| Type | Default |
-| --------------------- | -------------------- |
-| `NonEmptyStr` or None | `truststore+certifi` |
-
-Context that will used to verify SSL connections. Valid values are:
-
-- `truststore`: Will use certificates already included with the OS
-
-- `certifi`: Will use certificates bundled with the `certifi` version available at the release of the current CDL version
-
-- `truststore+certifi`: Will use certificates already included with the OS, with a fallback to `certifi` for missing certificates
-
-- `None`: Will completely disable SSL verification, allowing insecure connections.
-
-Setting this to `None` will allow the program to connect to websites without SSL encryption (insecurely).
-
-{% hint style="danger" %}
-Sensitive data may be exposed using an insecure connection. For your safety, is recommended to always use a secure HTTPS connection.
-{% endhint %}
-
-## `user_agent`
-
-| Type | Default |
-| ------------- | ------------------------------------------------------------------------ |
-| `NonEmptyStr` | `Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0` |
-
-The user agent is the signature of your browser. Some sites use it to identify if the request came from a human or a robot.
-You can google "what is my user agent" to get yours.
-
-{% hint style="info" %}
-If you use flaresolverr, this value MUST match with flaresolverr's user agent. Otherwise, flaresolverr cookies won't work
-{% endhint %}
-
-{% hint style="info" %}
-These crawlers will ignore custom user-agents and will always use `cyberdrop-dl/<version>`
-
-<!-- START_CUSTOM_UA_CRAWLERS -->
-- Archive.org
-- E621
-- MegaNz
-- RealDebrid
-- Transfer.it
-<!-- END_CUSTOM_UA_CRAWLERS -->
-
-{% endhint %}
diff --git a/docs/reference/configuration-options/global-settings/generic_crawlers_instances.md b/docs/reference/configuration-options/global-settings/generic_crawlers_instances.md
deleted file mode 100644
index 7cf390e30..000000000
--- a/docs/reference/configuration-options/global-settings/generic_crawlers_instances.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-description: These are the options to define generic crawlers.
----
-
-# Generic Crawlers
-
-CDL has some "generic" crawlers disabled by default. Generic crawlers are designed to work on any site that uses a **specific** framework. Users can supply a list of sites to map to these crawlers, and CDL will then be able to download from them. The URL in the list should be the primary URL of the site. ex: `https://forums.docker.com/`
-
-Supported generic crawlers:
-
-- `chevereto`: This works on any site that uses [Chevereto](https://chevereto.com//).
-
-- `discourse`: This works on any forum that uses [Discourse](https://www.discourse.org/).
-
-- `wordpress_media`: This crawler should work on any [WordPress](https://wordpress.com/) site where content primarily consists of images or galleries. The images need to be hosted on the site itself. It requires sites to have a public WordPress REST API.
-
-- `wordpress_html`: This works on any WordPress site. It scrapes the actual HTML of the site, which means it works on sites that have embedded third-party media like videos or links to hosting sites. It is always slower than `wordpress_media`.
-
-## generic_crawlers_instances
-
-## `chevereto`
-
-| Type | Default |
-| --------------- | ------- |
-| `list[HttpURL]` | `[]` |
-
-## `discourse`
-
-| Type | Default |
-| --------------- | ------- |
-| `list[HttpURL]` | `[]` |
-
-## `wordpress_media`
-
-| Type | Default |
-| --------------- | ------- |
-| `list[HttpURL]` | `[]` |
-
-## `wordpress_html`
-
-| Type | Default |
-| --------------- | ------- |
-| `list[HttpURL]` | `[]` |
diff --git a/docs/reference/configuration-options/global-settings/ui-options.md b/docs/reference/configuration-options/global-settings/ui-options.md
deleted file mode 100644
index fd10fc92f..000000000
--- a/docs/reference/configuration-options/global-settings/ui-options.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-description: These are the options for controlling the UI of the program
----
-# UI Options
-
-## `downloading_item_limit`
-
-| Type | Default |
-| ------------- | ------- |
-| `PositiveInt` | `5` |
-
-This is the limit on the number of items shown in the UI (while downloading) before they are simply added to the overflow number (`and <X> other files`)
-
-## `refresh_rate`
-
-| Type | Default |
-| ------------- | ------- |
-| `PositiveInt` | `10` |
-
-This is the refresh rate per second for the UI.
-
-## `scraping_item_limit`
-
-| Type | Default |
-| ------------- | ------- |
-| `PositiveInt` | `5` |
-
-This is the limit on the number of items shown in the UI (while scraping) before they are simply added to the overflow number (`and <X> other links`)
-
-## `vi_mode`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-This enables vi/vim key binds while editing/entering text in CDL.
diff --git a/docs/reference/configuration-options/settings/README.md b/docs/reference/configuration-options/settings/README.md
deleted file mode 100644
index f868c4000..000000000
--- a/docs/reference/configuration-options/settings/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-icon: screwdriver-wrench
-
-description: These are all configuration options for individual config settings
----
-
-# Settings
diff --git a/docs/reference/configuration-options/settings/browser_cookies.md b/docs/reference/configuration-options/settings/browser_cookies.md
deleted file mode 100644
index 0745966c7..000000000
--- a/docs/reference/configuration-options/settings/browser_cookies.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Browser Cookies
-
-These can be used for websites that require login or to pass DDoS-Guard challenges.
-
-{% hint style="warning" %}
-The `user-agent` config value **MUST** match the `user-agent` of the browser from which you imported the cookies. If they do not match, the cookies will not work
-{% endhint %}
-
-## `cookies`
-
-| Type | Default |
-| ---------------- | ------- |
-| `Path` or `None` | `None` |
-
-Path to a file/folder with Netscape cookies with a `.txt` extension. If the path is a folder, all `.txt` in the folder are read (Non recursive)
-
-You can extract the cookies from your browser using tools like [cookie-editor](https://cookie-editor.com) and save them as a `.txt` file.
-The file must be a Netscape formatted cookie file. You can use any name for the file as long as it has a `.txt` extension.
-
-See: [How to extract cookies (DDoSGuard or login errors) #839](https://github.com/Cyberdrop-DL/cyberdrop-dl/discussions/839) for detailed instructions
-
-{% hint style="info" %}
-Multiple cookie files are supported. You could have a `SocialMediaGirls.txt` file and a `cyberdrop.txt` file, for example
-{% endhint %}
diff --git a/docs/reference/configuration-options/settings/download_options.md b/docs/reference/configuration-options/settings/download_options.md
deleted file mode 100644
index 4fb52a16b..000000000
--- a/docs/reference/configuration-options/settings/download_options.md
+++ /dev/null
@@ -1,289 +0,0 @@
-# Download Options
-
-## `block_download_sub_folders`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-When this is set to `true`, downloads that would be in a folder structure like:
-
-> `Downloads/folderA/folderB/folderC/image.jpg`
-
-will be changed to:
-
-> `Downloads/folderA/image.jpg`
-
-## `mtime`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `True` |
-
-By default the program will do it's absolute best to try and find the upload date of a file. It'll then set the `last modified` and `last accessed` dates on the file to match. On Windows and macOS, it will also try to set the `created` date.
-
-Setting this to `false` will disable this function, and the dates for those metadata entries will be the date the file was downloaded.
-
-## `include_album_id_in_folder_name`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Setting this to `true` will include the album ID (random alphanumeric string) of the album in the download folder name.
-
-## `include_thread_id_in_folder_name`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Setting this to `true` will include the thread ID (random alphanumeric string) of the forum thread in the download folder name.
-
-## `maximum_number_of_children`
-
-| Type | Default |
-| ---------------------- | ------- |
-| `list[NonNegativeInt]` | `[]` |
-
-Limit the number of items to scrape using a tuple of up to 4 positions. Each position defines the maximum number of sub-items (`children_limit`) a specific type of `scrape_item` will have:
-
-1. Max number of children from a **FORUM URL**
-2. Max number of children from a **FORUM POST**
-3. Max number of children from a **FILE HOST PROFILE**
-4. Max number of children from a **FILE HOST ALBUM**
-
-Using `0` on any position means no limit on the number of children for that type of `scrape_item`. Any tailing value not supplied is assumed as `0`
-
-### Examples
-
-{% tabs %}
-{% tab title="example 1" %}
-Limit **FORUM** scrape to 15 posts max, grab all links and media within those posts, but only scrape a maximum of 10 items from each link in a post:
-
-```shell
---maximum-number-of-children 15 0 10
-
-```
-
-{% endtab %}
-
-{% tab title="example 2" %}
-Only grab the first link from each post in a forum, but that link will have no `children_limit`:
-
-```shell
---maximum-number-of-children 0 1
-```
-
-{% endtab %}
-
-{% tab title="example 3" %}
-Only grab the first **POST** / **ALBUM** from a **FILE_HOST_PROFILE**
-
-```shell
---maximum-number-of-children 0 0 1
-```
-
-{% endtab %}
-
-{% tab title="example 4" %}
-No **FORUM** limit, no **FORUM_POST** limit, no **FILE_HOST_PROFILE** limit, maximum of 20 items from any **FILE_HOST_ALBUM**:
-
-```shell
- --maximum-number-of-children 0 0 0 20
-```
-
-{% endtab %}
-{% endtabs %}
-
-## `remove_domains_from_folder_names`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Setting this to `true` will remove the "(DOMAIN)" portion of folder names on new downloads.
-
-## `separate_posts`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Setting this to `true` will separate content from forum and site posts into separate folders.
-
-This option only works with sites that have 'posts':
-
-- `Forums`
-- `Discourse`
-- `Tiktok`
-- `Coomer`, `Kemono` and `Nekohouse`.
-
-For some sites, this value is hardcorded to `true` because each post is always an individual page:
-
-- `Wordpress`
-- `eFukt`
-
-## `separate_posts_format`
-
-| Type | Default |
-| ------------- | ----------- |
-| `NonEmptyStr` | `{default}` |
-
-This is the format for the directory created when using `--separate-posts`.
-
-Unique Path Flags:
-
-> `date`: date of the post. This is a python `datetime` object
->
-> `id`: The post id. This is always a `string`, even if some sites use numbers
->
-> `number`: This no longer means anything. Currently, it always has the same value as `id`
->
-> `title`: post title. This is a `string`
-
-{% hint style="warning" %}
-Not all sites support all possible flags.
-
-If you use a format with a field that the site does not support, CDL will replace it with `UNKNOWN_<FIELD_NAME>`
-
-{% endhint %}
-
-Setting it to `{default}` will use the default format, which is different for each crawler:
-
-| Site | Default Format |
-| ------------------------------------- | ---------------------------------- |
-| `Coomer`, `Kemono` and `Nekohouse` | `{date} - {title}` |
-| `Forums (Xenforo/vBulletin/Invision)` | `{date} - {id} - {title}` |
-| `Discourse` | `{date} - {id} - {title}` |
-| `Reddit` | `{title}` |
-| `WordPress` | `{date:%Y-%m-%d} - {id} - {title}` |
-| `eFukt` | `{date:%Y-%m-%d} {title}` |
-| `Tiktok` | `{date:%Y-%m-%d} - {id}` |
-
-A date without a `format_spec` defaults to ISO 8601 format
-
-You can use any valid format string supported by python, with the following restrictions:
-
-- You can not have positional arguments in the format string. ex: `post {0} from date {1}`
-- You can not have unnamed fields in the format string. ex: `post {} from date {}`
-- You can not perform operations within the format string. ex: `post {id + 1} from date {date}`
-- All the fields named in the format string must be valid fields for that format option. CDL will validate this at startup
-
-## `skip_download_mark_completed`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Setting this to `true` will skip the download process for every file and mark them as downloaded in the database.
-
-## `maximum_thread_depth`
-
-| Type | Default |
-| ---------------- | ------- |
-| `NonNegativeInt` | 0 |
-
-{% hint style="warning" %}
-It is not recommended to set this above the default value of `0`, as there is a high chance of infinite nesting in certain cases.
-
-For example, when dealing with Megathreads, if a Megathread is linked to another Megathread, you could end up scraping an undesirable amount of data.
-{% endhint %}
-
-Restricts how many levels deep the scraper is allowed to go while scraping a thread
-
-A value of `0` means only the top level thread will be scraped
-
-{% hint style="info" %}
-This setting is hardcoded to `0` for Discourse sites
-{% endhint %}
-
-### Example
-
-Consider CDL finds the following sub-threads while scraping an input URL:
-
-```shell
-└── thread_01
- ├── thread_02
- ├── thread_03
- │ ├── thread_09
- │ ├── thread_10
- │ └── thread_11
- ├── thread_04
- ├── thread_05
- ├── thread_06
- ├── thread_07
- │ └── thread_12
- └── thread_08
-```
-
-- With `maximum_thread_depth` = 0, CDL will only download files in `thread_01`, all the other threads will be ignored
-- With `maximum_thread_depth` = 1, CDL will only download files in `thread_01` to `thread_08`. All threads from `thread_09` to `thread_12` will be ignored
-- With `maximum_thread_depth` >= 2, CDL will download files from all the threads in this case
-
-## `maximum_thread_folder_depth`
-
-| Type | Default |
-| -------------------------- | ------- |
-| `NonNegativeInt` or `None` | `None` |
-
-Restricts the max number of nested folders CDL will create when `maximum_thread_depth` is greater that 0
-
-Values:
-
-- `None`: Create as many nested folders as required (AKA, the same number as `maximum_thread_depth` allows)
-- `0`: Do not create subfolders, use a flat structure for any nested thread.
-- `1+`: Create a max of `n` folders
-
-### Example
-
-- With `maximum_thread_folder_depth` = None:
-
-```shell
-└── thread_01
- ├── thread_02
- ├── thread_03
- │ ├── thread_09
- │ ├── thread_10
- │ └── thread_11
- ├── thread_04
- ├── thread_05
- ├── thread_06
- ├── thread_07
- │ └── thread_12
- └── thread_08
-```
-
-- With `maximum_thread_folder_depth` = 0:
-
-```shell
-├── thread_01
-├── thread_02
-├── thread_03
-├── thread_09
-├── thread_10
-├── thread_11
-├── thread_04
-├── thread_05
-├── thread_06
-├── thread_07
-├── thread_12
-└── thread_08
-```
-
-- With `maximum_thread_folder_depth` = 1:
-
-```shell
-└── thread_01
- ├── thread_02
- ├── thread_03
- ├── thread_09
- ├── thread_10
- ├── thread_11
- ├── thread_04
- ├── thread_05
- ├── thread_06
- ├── thread_07
- ├── thread_12
- └── thread_08
-```
diff --git a/docs/reference/configuration-options/settings/dupe_cleanup_options.md b/docs/reference/configuration-options/settings/dupe_cleanup_options.md
deleted file mode 100644
index 17ad90231..000000000
--- a/docs/reference/configuration-options/settings/dupe_cleanup_options.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-description: These are options for enable/disable hashing and auto dupe deletion
----
-
-# Dupe Cleanup Options
-
-Cyberdrop-DL maintains an internal database of all downloaded files, indexed by their hashes. This can be used to automatically delete newly downloaded files if they were downloaded before. To enable auto dupe cleanup:
-
-1. Set `hashing` to `IN_PLACE` or `POST_DOWNLOAD`
-2. Set `auto_dedupe` to `true`
-
-## `auto_dedupe`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Enables deduping files functionality. Needs `hashing` to be enabled
-
-The `auto_dedupe` feature scans the database for files with matching hashes and sizes, automatically deleting any duplicates and retaining only the oldest copy.
-
-Deletion will only occur if two or more matching files are found during the database search.
-
-{% hint style="warning" %}
-Auto dedupe will delete files if you have _ever_ downloaded them before, even if you no longer have the original download on disk
-{% endhint %}
-
-## `hashing`
-
-| Type | Default | Restrictions |
-| --------- | ------- | -------------------------------------------- |
-| `HASHING` | `OFF` | Must be `OFF`, `IN_PLACE` or `POST_DOWNLOAD` |
-
-There are three possible options for hashing:
-
-1. `OFF`: disables hashing
-2. `IN_PLACE`: performs hashing after each download
-3. `POST_DOWNLOAD`: performs hashing after all downloads have completed
-
-The default hashing algorithm is `xxh128`. You can enable additional hashing algorithms, but you can not replace the default.
-
-## `send_deleted_to_trash`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Deduped files are sent to the trash bin instead of being deleted
diff --git a/docs/reference/configuration-options/settings/file_size_limits.md b/docs/reference/configuration-options/settings/file_size_limits.md
deleted file mode 100644
index 1057da360..000000000
--- a/docs/reference/configuration-options/settings/file_size_limits.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# File Size Limits
-
-You can provide the maximum and minimum file size for each file "type".
-
-All options on this category take a `ByteSize` input ([more info here](../special_setting_types.md#bytesize)).
-
-| Type | Default |
-| ---------- | ------- |
-| `ByteSize` | `0` |
-
-Setting any of these options to `0` means that limit is `disabled`
-
-- `maximum_image_filesize`
-- `minimum_image_filesize`
-- `maximum_video_filesize`
-- `minimum_video_filesize`
-- `maximum_other_filesize`
-- `minimum_other_filesize`
diff --git a/docs/reference/configuration-options/settings/files.md b/docs/reference/configuration-options/settings/files.md
deleted file mode 100644
index 29efe9ec1..000000000
--- a/docs/reference/configuration-options/settings/files.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Files
-
-## `download_folder`
-
-| Type | Default |
-| ------ | ----------- |
-| `Path` | `Downloads` |
-
-The path to the folder you want Cyberdrop-DL to download files to.
-
-## `dump_json`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `False` |
-
-If enabled, CDL will created a [json lines](https://jsonlines.org/) files with the information about every file downloaded in the current run. The path to this file will be the same as `--main-log` but with the extension `.results.jsonl`
-
-Each line in the file will contain the following details (this may change on future versions):
-
-```json
-{
- "url": "https://store9.gofile.io/download/web/7c88c147-ABCD-4e4d-9a6c-12345678/a_video.mp4",
- "referer": "https://gofile.io/d/ABC123",
- "download_folder": "Downloads/Cyberdrop-DL Downloads/test_album (GoFile)",
- "filename": "0hxte0li0o931lwgcrzbz_source.mp4",
- "original_filename": "a_video.mp4",
- "download_filename": "0hxte0li0o931lwgcrzbz_source.mp4",
- "filesize": 12054723,
- "ext": ".mp4",
- "debrid_link": null,
- "duration": null,
- "album_id": "ABC123",
- "datetime": "2025-01-22T11:00:07",
- "parents": ["https://a_forum.com/threads/<name>.54321/post-123123"],
- "parent_threads": ["https://a_forum.com/threads/<name>.54321"],
- "partial_file": "Downloads/Cyberdrop-DL Downloads/test_album (GoFile)/a_video.mp4.part",
- "complete_file": "Downloads/Cyberdrop-DL Downloads/test_album (GoFile)/a_video.mp4",
- "hash": "xxh128:53ee56b7bfafa31b8780a572e9783df3",
- "downloaded": true,
- "attempts": 1
-}
-```
-
-## `input_file`
-
-| Type | Default |
-| ------ | ----------------------------------- |
-| `Path` | `AppData/Configs/{config}/URLs.txt` |
-
-The path to the text file containing the URLs you want to download. Each line should be a single URL.
-
-You can also use `html` code. Cyberdrop-DL will parse all the links on the HTML
-
-## `dump_responses`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `False` |
-
-CDL will save to disk a copy of every non binary request (text/HTML/JSON) as a single file. The files will be saved to a folder named `cdl_responses`, inside the parent folder of the main log file.
-
-{% hint style="info" %}
-Flaresolverr responses are excluded. They are never dumped to disk
-{% endhint %}
diff --git a/docs/reference/configuration-options/settings/ignore_options.md b/docs/reference/configuration-options/settings/ignore_options.md
deleted file mode 100644
index 26d6a8879..000000000
--- a/docs/reference/configuration-options/settings/ignore_options.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# Ignore Options
-
-## `exclude_audio`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-When this is set to `true`, the program will skip downloading audio files.
-
-## `exclude_images`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-When this is set to `true`, the program will skip downloading image files.
-
-## `exclude_videos`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-When this is set to `true`, the program will skip downloading video files.
-
-## `exclude_other`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-When this is set to `true`, the program will skip downloading non media files files.
-
-## `exclude_files_with_no_extension`
-
-| Type | Default |
-|---------------------|----------|
-| `bool` | `true` |
-
-When this is set to `true`, the program will skip downloading files without an extension.
-
-{% hint style="info" %}
-CDL internally assumes any file without an extension is an `.mp4` file. That means any option that applies to videos like `--exclude-videos` and `--minimum-video-size` will apply to them. The actual file will still be downloaded without an extension
-{% endhint %}
-
-## `filename_regex_filter`
-
-| Type | Default |
-| ----------------------- | ------- |
-| `NonEmptyStr` or `null` | `null` |
-
-Any download with a filename that matches this regex expression will be skipped
-
-## `ignore_coomer_ads`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-When this is set to `true`, CDL will skip posts marked as `#ad` by models.
-
-Despite the name, this option affects all kemono based sites (Nekohouse, Kemono and Coomer)
-
-{% hint style="info" %}
-This requires fetching all posts with the tag `#ad` first and them filter them out from the normal ones.
-This means at least 1 additional request per profile is needed, depending on how many ads the profile has.
-{% endhint %}
-
-## `ignore_coomer_post_content`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `true` |
-
-When this is set to `false`, CDL will scan the text inside each post for URLs and process them.
-
-Despite the name, this option affects all kemono based sites (Nekohouse, Kemono and Coomer)
-
-{% hint style="warning" %}
-This requires making 50x more requests when downloading an entire profile. Only enable this option if you actually need it
-{% endhint %}
-
-## `only_hosts`
-
-| Type | Default | Additional Info |
-| ------------------- | ------- | ------------------------------------------------------------------- |
-| `list[NonEmptyStr]` | `[]` | This is an [`AdditiveArg`](../special_setting_types.md#additiveargs) |
-
-You can supply hosts that you'd like the program to exclusively scrape/download from. This setting accepts any domain, even if they are no supported.
-
-## `skip_hosts`
-
-| Type | Default | Additional Info |
-| ------------------- | ------- | -------------------------------------------------------------------- |
-| `list[NonEmptyStr]` | `[]` | This is an [`AdditiveArg`](../special_setting_types.md#additiveargs) |
-
-You can supply hosts that you'd like the program to skip, to not scrape/download from them. This setting accepts any domain, even if they are no supported.
-
-## `exclude_before`
-
-| Type | Default | Additional Info |
-| -------------------- | ------- | ------------------------------------------------------------------ |
-| `date` or `null` | `null` | The date should a valid ISO 8601 format, for example, `2021-12-23` |
-
-Do not download files uploaded before this date.
-
-## `exclude_after`
-
-| Type | Default | Additional Info |
-| -------------------- | ------- | ------------------------------------------------------------------ |
-| `date` or `null` | `null` | The date should a valid ISO 8601 format, for example, `2021-12-23` |
-
-Do not download files uploaded after this date.
diff --git a/docs/reference/configuration-options/settings/logs.md b/docs/reference/configuration-options/settings/logs.md
deleted file mode 100644
index 5194ebea6..000000000
--- a/docs/reference/configuration-options/settings/logs.md
+++ /dev/null
@@ -1,100 +0,0 @@
-# Logs
-
-## `download_error_urls`
-
-| Type | Default | Restrictions |
-| ------ | ------------------------- | --------------------------------------------- |
-| `Path` | `Download_Error_URLs.csv` | extension will always be overridden to `.csv` |
-
-Path of the download error log. For relative paths, the final path will be `log_folder` / `download_error_urls`
-
-Cyberdrop-DL will output the links it fails to download, the reason and their origin in CSV format.
-
-## `log_folder`
-
-| Type | Default |
-| ------ | ------------------------------- |
-| `Path` | `AppData/Configs/{config}/Logs` |
-
-The path to the location you want Cyberdrop-DL to store logs in.
-
-## `log_line_width`
-
-| Type | Default | Restrictions |
-| ------------- | ------- | ------------ |
-| `PositiveInt` | `240` | `>=50` |
-
-Line width to use when writing to the main log file
-
-## `logs_expire_after`
-
-| Type | Default |
-| --------------------- | ------- |
-| `timedelta` or `null` | `null` |
-
-With `rotate_logs` enabled, this setting specifies the retention period for log files before they are deleted.
-
-- A `timedelta` input is expected to be a valid ISO 8601 timespan, ex: `P10DT2H30M10S`
-- An `int` input is assumed to be the number of days
-- A `str` input is expected to be in the format; `<value> <unit>`, ex: `10 days`.
-- A `null` value means disabled (never delete any logs)
-
-{% hint style="warning" %}
-Any `.log` or `.csv` file within `log_folder` will be deleted, even if CDL did not create them
-{% endhint %}
-
-{% hint style="info" %}
-Log files with an absolute path not relative to `log_folder` will never be deleted
-{% endhint %}
-
-## `main_log`
-
-| Type | Default | Restrictions |
-| ------ | ---------------- | --------------------------------------------- |
-| `Path` | `downloader.log` | extension will always be overridden to `.log` |
-
-Path of main log file. For relative paths, the final path will be `log_folder` / `main_log`
-
-## `rotate_logs`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-If enabled, Cyberdrop-DL will add the current date and time as a suffix to each log file, in the format `YYMMDD_HHMMSS`
-
-Every log file will be created inside a sub folder with the current date
-
-This will prevent overriding old log files
-
-## `scrape_error_urls`
-
-| Type | Default | Restrictions |
-| ------ | ----------------------- | --------------------------------------------- |
-| `Path` | `Scrape_Error_URLs.csv` | extension will always be overridden to `.csv` |
-
-What you want Cyberdrop-DL to call the scrape error log. For relative paths, the final path will be `log_folder` / `scrape_error_urls`
-
-Cyberdrop-DL will output the links it fails to scrape, the reason and their origin in CSV format.
-
-## `unsupported_urls`
-
-| Type | Default | Restrictions |
-| ------ | ---------------------- | --------------------------------------------- |
-| `Path` | `Unsupported_URLs.csv` | extension will always be overridden to `.csv` |
-
-Path of the unsupported log file. For relative paths, the final path will be `log_folder` / `unsupported_urls`
-
-Cyberdrop-DL will output links it can't download to this file.
-
-## `webhook`
-
-| Type | Default | Restrictions |
-| ---------------------- | ------- | ----------------------------------------------- |
-| `AppriseURL` or `null` | `null` | The scheme of the URL must be `http` or `https` |
-
-The URL of a webhook that you want to send download stats to (Ex: Discord). You can add the optional tag `attach_logs=` as a prefix to include a copy of the main log as an attachment.
-
-Example:
-
-> `attach_logs=https://discord.com/api/webhooks/webhook_id/webhook_token`
diff --git a/docs/reference/configuration-options/settings/media_duration_limits.md b/docs/reference/configuration-options/settings/media_duration_limits.md
deleted file mode 100644
index a00258b6e..000000000
--- a/docs/reference/configuration-options/settings/media_duration_limits.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# Duration Limits
-
-You can provide the maximum and minimum duration for audio and video files.
-
-| Type | Default |
-|-------------------|----------|
-| `timedelta` | `0s`|
-
-- A `timedelta` input is expected to be a valid ISO 8601 timespan, ex: `P10DT2H30M10S`
-- An `int` input is assumed to be the number of days
-- A `str` input is expected to be in the format; `<value> <unit>`, ex: `10 days`.
-
-Setting any of these options to `0` means that limit is `disabled`
-
-- `minimum_audio_duration`
-- `maximum_audio_duration`
-- `minimum_video_duration`
-- `maximum_video_duration`
diff --git a/docs/reference/configuration-options/settings/runtime_options.md b/docs/reference/configuration-options/settings/runtime_options.md
deleted file mode 100644
index 1d5a0e1bb..000000000
--- a/docs/reference/configuration-options/settings/runtime_options.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# Runtime Options
-
-These are higher level options that effect the overarching functions of the program.
-
-## `console_log_level`
-
-| Type | Default |
-| ----------------------------------------------- | ------- |
-| `DEBUG, INFO, WARNING, ERROR, CRITICAL or None` | `None` |
-
-Only log messages of this level or higher to the console. An empty or `None` value will use the same level as `log_level`
-
-## `deep_scrape`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Cyberdrop-DL uses a some tricks to try to reduce the number of requests it needs to make while scraping a site. However, this may cause a few links to be skipped. Use `--deep-scrape` to disable this functionality and always make a new request.
-
-This setting is temporary and will always reset to `false` after each run
-
-{% hint style="warning" %}
-Use this option only when absolutely necessary, as it will significantly increase the number of requests being made.
-
-For example, scraping an album normally takes one single request.
-
-With `--deep-scrape`, CDL will make `n` requests per album, where `n` is the total number of items in the album
-{% endhint %}
-
-## `delete_partial_files`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Files downloaded by CDL have a `.part` extension (`.cdl_hls` for HLS segments). CDL only changes the extension to the original one after a successful download.
-This allows CDL to resume downloads on subsequent runs.
-
-Setting this to `true` will delete any `.part` and `.cdl_hls` files in the download folder.
-
-## `ignore_history`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-By default, the program tracks your downloads in a database to prevent downloading the same files multiple times, to save time and reduce strain on the servers you're downloading from.
-
-Setting this to `true` will cause the program to ignore the database, and will allow you to re-download files.
-
-## `jdownloader_autostart`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Setting this to `true` will make jdownloader start downloads as soon as they are sent.
-
-{% hint style="info" %}
-This option has no effect unless `send_unsupported_to_jdownloader` is `true`
-{% endhint %}
-
-## `jdownloader_download_dir`
-
-| Type | Default |
-| ---------------- | ------- |
-| `Path` or `null` | `null` |
-
-The `download_dir` jdownloader will use. A `null` value (the default) will make jdownloader use the same `download_dir` as Cyberdrop-DL. Use this option as path mapping when jdownloader is running on a different host / docker.
-
-{% hint style="info" %}
-This option has no effect unless `send_unsupported_to_jdownloader` is `true`
-{% endhint %}
-
-## `jdownloader_whitelist`
-
-| Type | Default |
-| ------------------- | ------- |
-| `list[NonEmptyStr]` | `[]` |
-
-List of domain names. An unsupported URL will only be sent to jdownloader if its host is found on the list. An empty whitelist (the default) will disable this functionality, sending any unsupported URL to jdownloader.
-
-{% hint style="info" %}
-This option has no effect unless `send_unsupported_to_jdownloader` is `true`
-{% endhint %}
-
-## `log_level`
-
-| Type | Default |
-| --------------------------------------- | ------- |
-| `DEBUG, INFO, WARNING, ERROR, CRITICAL` | `DEBUG` |
-
-Only log messages of this level or higher to the main log file, according to [Python logging levels](https://docs.python.org/3/library/logging.html#levels).
-
-| Level | Value | Description |
-| ---------- | ----- | -------------------------------------------------------------------------------------------------- |
-| `DEBUG` | 10 | Offers detailed information, typically useful to troubleshoot problems |
-| `INFO` | 20 | Provides general information about scrape and download progress |
-| `WARNING` | 30 | Potential issues or something that might need attention (e.g. `Login wasn't provided for <FORUM>`) |
-| `ERROR` | 40 | Serious problem preventing Cyberdrop-DL to execute some function |
-| `CRITICAL` | 50 | Fatal error that causes Cyberdrop-DL to exit immediately |
-
-{% hint style="info" %}
-Using anything other that `DEBUG` makes troubleshooting issues harder. Practically speaking, you should _only_ change this if you expect CDL to run for an extended period (with a large number of input URLs) to minimize the log files sizes
-{% endhint %}
-
-## `send_unsupported_to_jdownloader`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-Cyberdrop-DL has integration with jdownloader. This will allow you to download URLs that Cyberdrop-DL finds but do not support. However, this setting is disabled by default.
-
-Setting this to `true`, will send unsupported links over.
-
-## `skip_check_for_empty_folders`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-After a run is complete, the program will do a check (and remove) any empty files and folders in the download and scan folder.
-
-Setting this to `true` will disable this functionality.
-
-## `skip_check_for_partial_files`
-
-| Type | Default |
-| ------ | ------- |
-| `bool` | `false` |
-
-After a run is complete, the program will do a check to see if any partially downloaded files remain in the downloads folder and will notify you of them.
-
-Setting this to `true` will skip this check.
-
-## `slow_download_speed`
-
-| Type | Default |
-| ---------- | ------- |
-| `ByteSize` | `0` |
-
-{% hint style="info" %}
-This setting specifies speed and it's interpreted as `<value> / second`. ex: `8MB` means `8MB/s`
-{% endhint %}
-
-Downloads with a speed lower than this value for more than 10 seconds will be skipped. Set to `0` to disable
diff --git a/docs/reference/notifications.md b/docs/reference/notifications.md
deleted file mode 100644
index 579f3321f..000000000
--- a/docs/reference/notifications.md
+++ /dev/null
@@ -1,90 +0,0 @@
----
-icon: envelope-open-text
-description: These are the options to setup notifications from CDL.
----
-
-# Notifications
-
-Cyberdrop-DL generates a report at the end of a run with stats about all the downloads, total runtime, errors, deduplication report, etc. By default, this report is only shown in the console and at the end of the main log file.
-
-You can set up CDL to sent you the report via discord, email, a native notification of your OS, telegram and many other services.
-
-## Notifications via Discord
-
-To get notifications via discord, you need to provide a discord `webhook_url` inside the `settings.yaml` of your config.
-
-You can learn how to setup a webhook following the [official discord guide](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks).
-
-Optionally, you can add the tag `attach_logs=` as a prefix to your webhook url. This will tell CDL to include a copy of the main log as an attachment to Discord.
-
-## Notifications to other services (via Apprise)
-
-Cyberdrop-DL uses [Apprise](https://github.com/caronc/apprise) to send notifications to any of the services than they support.
-
-{% hint style="info" %}
-`apprise` is an an optional dependency; It's not installed by default with CDL. To install `cyberdrop-dl` with `apprise`, especify it as an extra while installing cyberdrop:
-
-```shell
-uv tool install cyberdrop-dl-patched[apprise]
-```
-
-{% endhint %}
-
-### How to setup Apprise
-
-To send notifications via Apprise, you need to create an `apprise.txt` file inside `AppData/Configs/Default`. The file must contain a list of URLs and they must be in the format of one of the supported apprise services.
-
-You can check the full list of supported services [here](https://appriseit.com/services/).
-
-Apprise services also support the `attach_logs=` tag to send the main log as an attachment.
-
-{% hint style="success" %}
-You can build the URL interactively on their website: [https://appriseit.com/url-builder](https://appriseit.com/url-builder/)
-{% endhint %}
-
-### Troubleshooting Apprise notifications
-
-Cyberdrop-DL will show you a message at the end of a run telling you if the apprise notifications were successfully sent or not. If you are having trouble getting notifications via Apprise, follow their [troubleshooting guide](https://github.com/caronc/apprise/wiki/Troubleshooting).
-
-## Examples
-
-{% tabs %}
-{% tab title="Email" %}
-To get notifications via email, use this URL format in your `apprise.txt` file:
-
-```shell
-mailto://user:[email protected]
-```
-
-{% endtab %}
-
-{% tab title="Email + Logs" %}
-Add `attach_logs` to your email URL in your `apprise.txt` file:
-
-```shell
-attach_logs=mailto://user:[email protected]
-```
-
-{% endtab %}
-
-{% tab title="Native OS notifications" %}
-Some operating systems require additional dependencies for notifications to work. Cyberdrop-DL includes the required dependencies for Windows. Follow the url on the OS name to get additional information on how to set them up.
-
-| OS | Syntax |
-| ---------------------------------------------------------------------------------- | --------------------------------------------------- |
-| [Linux (DBus Notifications)](https://github.com/caronc/apprise/wiki/Notify_dbus) | `dbus://` <br> `qt://` <br> `glib://` <br> `kde://` |
-| [Linux (Gnome Notifications)](https://github.com/caronc/apprise/wiki/Notify_gnome) | `gnome://` |
-| [macOS](https://github.com/caronc/apprise/wiki/Notify_macosx) | `macosx://` |
-| [Windows](https://github.com/caronc/apprise/wiki/Notify_windows) | `windows://` |
-
-{% endtab %}
-
-{% tab title="Discord + Logs" %}
-Add `attach_logs` to the `webhook_url` config option:
-
-```shell
-attach_logs=https://discord.com/api/webhooks/webhook_id/webhook_token
-```
-
-{% endtab %}
-{% endtabs %}
diff --git a/docs/reference/supported-websites.md b/docs/reference/supported-websites.md
index 65d2653a7..83f78b26c 100644
--- a/docs/reference/supported-websites.md
+++ b/docs/reference/supported-websites.md
@@ -1,5 +1,5 @@
---
-description: These are the websites supported by Cyberdrop-DL
+description: These are the websites supported by `cyberdrop-dl`
icon: globe-pointer
---
@@ -11,29 +11,45 @@ For a full list of all supported sites, see [supported sites](#supported-sites)
## Password Protected Content Hosts
-Cyberdrop-DL can download password protected files and folders from these hosts. User must include the password as a query parameter in the input URL, adding `?password=<URL_PASSWORD>` to it.
+`cyberdrop-dl` can download password protected files and folders from these hosts. User must include the password as a query parameter in the input URL, adding `?password=<URL_PASSWORD>` to it.
-Example: `https://cyberfile.me/folder/xUGg?password=1234`
+Example: `https://gofile.io/d/xUGg-sghx?password=1234`
-| Domain |
-| --------------------------------------------------- |
-| GoFile |
-| Cyberfile |
-| Chevereto Sites (`JPG5`, `ImagePond.net`,`ImgLike`) |
-| Filester |
-| Iceyfile.com |
-| Transfer.it |
-| Koofr.eu |
-| Sites supported by Real-Debrid |
+| Domain |
+| ------------------------------ |
+| Chevereto sites (`ImgLike`) |
+| Cyberfile |
+| Filester |
+| GoFile |
+| Iceyfile.com |
+| Imagepond.net |
+| Koofr.eu |
+| Transfer.it |
+| Sites supported by Real-Debrid |
-## Additional Content Hosts with Real-Debrid
+## Additional supported sites with Real-Debrid
-Cyberdrop-DL has integration with Real-Debrid as download service to support additional hosts. In order to enable Real-Debrid, user must provide their API token inside the `authentication.yaml` file. You can get your API token from this URL (you must be logged in): [https://real-debrid.com/apitoken](https://real-debrid.com/apitoken)
+`cyberdrop-dl` has integration with Real-Debrid as download service to support additional hosts. In order to enable Real-Debrid, user must provide their API token
+inside their config file. You can get your API token from this URL (you must be logged into Real-Debrid to view it): <https://real-debrid.com/apitoken>
-Supported domains via Real-Debrid include `rapidgator`, `4shared.com`, `fikper.com`, `k2s`, `etc`. List of all supported domains can be found here (250+): [https://api.real-debrid.com/rest/1.0/hosts/domains](https://api.real-debrid.com/rest/1.0/hosts/domains)
+Supported domains via Real-Debrid include `rapidgator`, `4shared.com`, `fikper.com`, `k2s`, `etc`.
+List of all supported domains can be found here (250+): <https://api.real-debrid.com/rest/1.0/hosts/domains>
{% hint style="info" %}
-CDL will only use Real-Debrid for unsupported sites. To use it for a site that CDL supports, ex: `mega.nz`, you have to disable the `mega.nz` crawler. See: https://script-ware.gitbook.io/cyberdrop-dl/reference/configuration-options/global-settings/general#disable_crawlers
+Real-Debrid will only be used for _unsupported_ sites. To use it for a site that CDL supports, ex: `mega.nz`, you have to disable the `mega.nz` crawler.
+See: <https://script-ware.gitbook.io/cyberdrop-dl/reference/config/crawlers#disabled>
+{% endhint %}
+
+## Additional supported sites with JDownloader
+
+`cyberdrop-dl` has integration with JDownloader as a backup downloader for unsupported sites hosts. `cyberdrop-dl` will send unsupported URLs to a running instance of JDownloader
+with a custom setup to make sure JDownloader put files on the same folder and with the same name `cyberdrop-dl` would have used.
+
+You must provide your MyJDownloader credentials in your config file to connect to JDownloader
+
+{% hint style="info" %}
+JDownloader will only be used for _unsupported_ sites. To use it for a site that CDL supports, ex: `mega.nz`, you have to disable the `mega.nz` crawler.
+See: <https://script-ware.gitbook.io/cyberdrop-dl/reference/config/crawlers#disabled>
{% endhint %}
<!-- START_SUPPORTED_SITES -->
diff --git a/docs/simpcity-support-dropped.md b/docs/simpcity-support-dropped.md
deleted file mode 100644
index 772533f94..000000000
--- a/docs/simpcity-support-dropped.md
+++ /dev/null
@@ -1,41 +0,0 @@
----
-description: >-
- Due to the recent DDOS attacks on SimpCity, I have made some changes to
- Cyberdrop-DL.
-icon: building-circle-xmark
----
-
-# SimpCity Support Dropped
-
-## Removal of SimpCity Scraping Support
-
-Support for scraping SimpCity has been was removed on v5.6.3. This may be disappointing to some users, but the explanation provided should clarify the reasoning behind this decision. Following the recent DDOS attacks, SimpCity has implemented the following security measures to protect their website:
-
-- SimpCity has implemented a DDOS-Guard browser check.
-- Access is now restricted to [whitelisted email domains](https://simpcity.su/threads/emails-august-2024.365869/).
-- [New rate limits](https://simpcity.su/threads/rate-limit-429-error.397746/) have been introduced to protect the site.
-
-## Why Scraping SimpCity Has Been Disabled
-
-Cyberdrop-DL allows users to scrape a model’s entire thread quickly, downloading large amounts of content. While convenient, this has created several issues:
-
-- Large-scale scraping can result in downloading content you may never view.
-- Such scraping puts additional load on their servers, particularly during DDOS attacks.
-- Scraping provides no direct benefit to SimpCity, and in light of these attacks, they have chosen not to support automated scraping.
-
-For these reasons, SimpCity has removed the Cyberdrop-DL thread, and scraping for their site has been disabled in order to reduce the strain on their servers.
-
-## Usage Best Practices
-
-I encourage you to use the program responsibly. Here are some tips to help minimize the impact on websites:
-
-- Avoid running multiple scraping sessions repeatedly in a short span of time.
-- Regularly clean up your URLs file by removing links you no longer need, and reducing how often you run the program.
-- Be selective with what you download. It’s helpful to quickly scan content to avoid downloading files you'll delete later.
-
-## Alternatives to Scraping SimpCity
-
-If you wish to continue downloading from SimpCity, you can use Tampermonkey scripts like these ones:
-
-- [SimpCity Tampermonkey Forum Downloader](https://simpcity.su/threads/forum-post-downloader-tampermonkey-script.96714/).
-- [Forums Link Grabber](https://github.com/Garcarius/forumslinkgraber)