You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added `job.download_file` and `job.download_attachments` configuration options to control **whether to download files and attachments in posts**
8
-
- Related configuration options:
9
-
-`job.download_file` (default: `True`): Whether to download the file corresponding to the `file` field of the post (usually the cover image)
10
-
-`job.download_attachments` (default: `True`): Whether to download files corresponding to the `attachments` field of the post (usually original images, compressed packages, etc.)
11
-
- These options are enabled by default to maintain the same behavior as previous versions
12
-
- You can edit these options via `ktoolbox config-editor` (`Job -> ...`)
13
-
- Or manually edit them in the `.env` file or environment variables:
7
+
- Added configuration options to support **filtering** downloads by **file size** - #343
8
+
- You can set the minimum and maximum file size (in bytes) via `job.min_file_size` and `job.max_file_size`
9
+
- Both options can be set together to define a file size range
10
+
- Configure these options using the graphical config editor, or set them in the dotenv file `.env` or via system environment variables:
14
11
```dotenv
15
-
# Whether to download the file corresponding to the `file` field of the post (usually the cover image)
# Whether to download files corresponding to the `attachments` field of the post (usually original images, compressed packages, etc.)
20
-
# Download enabled by default
21
-
KTOOLBOX_JOB__DOWNLOAD_ATTACHMENTS=True
15
+
# Skip files larger than 50 MB (to save disk space)
16
+
KTOOLBOX_JOB__MAX_FILE_SIZE=52428800
17
+
```
18
+
- 📖 More info: [Configuration-Reference-JobConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.JobConfiguration)
19
+
- Improved progress bar output - #345
20
+
- Fixed the issue of the download file progress bar **constantly reordering**
21
+
- Added **visual overall progress bar**
22
+
- Added display of **total download speed**
23
+
- Enhanced the **color rendering** of the progress bar
- 📖 More information: [Configuration Reference - JobConfiguration](https://ktoolbox.readthedocs.io/latest/zh/configuration/reference/#ktoolbox._configuration_zh.JobConfiguration)
24
31
25
-
[//]: # (### 🪲 Fixes)
32
+
### 🪲 Fixes
33
+
34
+
- **Increased** the default **tps limit** (maximum number of connections established per second)
35
+
- This setting is optional. To **improve download efficiency** in general cases, the default value has been increased from `1.0` to `5.0`
36
+
- If you frequently encounter **403** errors during downloads, try setting this value lower, such as `1.0`
37
+
- Run `ktoolbox config-editor` to edit this setting (`Downloader -> tps_limit`)
38
+
- Or manually edit the `KTOOLBOX_DOWNLOADER__TPS_LIMIT` in the `.env` file or set it via environment variables
39
+
```dotenv
40
+
KTOOLBOX_DOWNLOADER__TPS_LIMIT=1.0
41
+
```
42
+
- 📖 More info: [Configuration-Reference-DownloaderConfiguration](https://ktoolbox.readthedocs.io/latest/configuration/reference/#ktoolbox.configuration.DownloaderConfiguration)
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,9 @@
67
67
- Such as `[2025-01-02]_TheTitle_1.jpg`, `[2025-01-02]_TheTitle_2.jpg`, `[2025-01-02]_TheTitle_3.jpg`, etc.
68
68
- Support excluding **specified file formats** or downloading only specified formats
69
69
- For example, if you don't want to download large and duplicate PSD or archive files, you can exclude `.psd` and `.zip` files in the config
70
+
- Support filtering downloads by **file size**
71
+
- For example, if you want to avoid downloading large video files when running out of disk space, you can set a maximum file size limit in the config
72
+
- You can also set a minimum file size to skip downloading thumbnail or preview images
70
73
- Support filtering downloads by post **title keywords**
71
74
- For example, if you only want to download posts whose titles contain "表情" or "効果音差分", you can use the `sync-creator` command with the `--keywords` option
72
75
- You can also exclude posts with specific keywords in the title using the `--keywords-exclude` option
Copy file name to clipboardExpand all lines: docs/en/index.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@
55
55
- Such as `[2025-01-02]_TheTitle_1.jpg`, `[2025-01-02]_TheTitle_2.jpg`, `[2025-01-02]_TheTitle_3.jpg`, etc.
56
56
- Support excluding **specified file formats** or downloading only specified formats
57
57
- For example, if you don't want to download large and duplicate PSD or archive files, you can exclude `.psd` and `.zip` files in the config
58
+
- Support filtering downloads by **file size**
59
+
- For example, if you want to avoid downloading large video files when running out of disk space, you can set a maximum file size limit in the config
60
+
- You can also set a minimum file size to skip downloading thumbnail or preview images
58
61
- Support filtering downloads by post **title keywords**
59
62
- For example, if you only want to download posts whose titles contain "表情" or "効果音差分", you can use the `sync-creator` command with the `--keywords` option
60
63
- You can also exclude posts with specific keywords in the title using the `--keywords-exclude` option
0 commit comments