-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli-tools.toml
More file actions
376 lines (262 loc) · 9.94 KB
/
cli-tools.toml
File metadata and controls
376 lines (262 loc) · 9.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
# Common config for all CLI tools.
# Copy file to ~/.config/cli-tools.toml
[dirmove]
# Auto-confirm all prompts without asking
# auto = false
# Create directories for files with matching prefixes
# create = false
# Print debug information
# debug = false
# Only print changes without moving files
# dryrun = false
# Include files that match the given pattern
# include = []
# Exclude files that match the given pattern
# exclude = []
# Overwrite existing files
# overwrite = false
# Recurse into subdirectories
# recurse = false
# Minimum number of matching files needed to create a group
# min_group_size = 3
# Minimum character count for prefixes to be valid group names (excluding dots)
# min_prefix_chars = 5
# Prefixes to ignore when matching filenames (will not be used for grouping)
# prefix_ignores = ["Something", "Other.Prefix"]
# Prefixes to always use for directory names (overrides automatic prefix detection)
# prefix_overrides = ["longer.prefix", "some.name"]
# Custom mapping pairs [pattern, dirname] - files containing pattern are moved to dirname
# Pattern matching is case-insensitive and ignores dots/spaces
# custom_mappings = [["something", "Custom Dir"], ["otherpattern", "Another Directory"]]
# Group names to ignore (exact match, won't be offered as new directory).
# In create mode, press "s" at the prompt to skip a group and add it here automatically.
# ignored_group_names = ["Episode", "Video", "Part", "Chapter", "Scene"]
# Ignore groups containing this part (substring match in any part of group name)
# ignored_group_parts = ["x265", "x264", "HEVC"]
# Directory names to "unpack" by moving their contents to the parent directory
# unpack_directories = ["videos", "vids", "vid", "horizontal", "vertical"]
[dots]
# Enable debug prints
# debug = false
# Rename directories
# directory = false
# Only print changes without renaming files
# dryrun = false
# Include files that match the given pattern
# include = []
# Overwrite existing files
# overwrite = false
# Recurse into subdirectories
# recurse = false
# Assume year is first in short dates
# date_starts_with_year = true
# Increment conflicting file name with running index
# increment = false
# For files starting with these prefixes, move the date to directly after the prefix
# Example: "Artist something 2024.01.15" -> "Artist.2024.01.15.Something"
# move_date_after_prefix = ["Artist"]
# Strings to move to the end of the filename
# move_to_end = []
# Strings to move to the start of the filename
# move_to_start = []
# Prefix files with their parent directory name
# prefix_dir = false
# Use each file's parent directory name as prefix (when recursing)
# prefix_dir_recursive = false
# Force prefix to always be at the start of the filename
# prefix_dir_start = false
# Suffix files with their parent directory name
# suffix_dir = false
# Use each file's parent directory name as suffix (when recursing)
# suffix_dir_recursive = false
# Replacements applied before the main rename logic (list of [pattern, replacement] pairs)
# pre_replace = []
# Regex pattern replacements (list of [pattern, replacement] pairs)
# regex_replace = []
# Remove random-looking strings (hashes, UUIDs) from filenames
# remove_random = false
# Patterns to remove from the start of filenames only
# remove_from_start = []
# Plain text replacement pairs [pattern, replacement]
replace = [
[".WEBDL", ""],
[".HEVC", ".x265"],
]
[dupefind]
# Only print changes without moving files
# dryrun = false
# Move duplicates to a "Duplicates" directory
# move_files = false
# Recurse into subdirectories
# recurse = false
# Paths to search when --default flag is used
# default_paths = []
# Paths to always search (in addition to CLI arguments)
# paths = []
# File extensions to include in search
# extensions = ["mp4", "mkv", "avi", "mov", "wmv", "webm"]
# Identifier patterns to search for (regex) - used to find duplicate video IDs
# patterns = ["ABC\\d{3,4}", "XYZ\\d{3,4}"]
# Pattern match texts to ignore (case-insensitive).
# Groups whose display name matches any of these strings will be skipped.
# ignore_matches = ["ABC-123"]
[flip_date]
# Only print changes without renaming
# dryrun = false
# Overwrite existing files
# overwrite = false
# Recurse into subdirectories
# recurse = false
# Use directory rename mode
# directory = false
# Specify file extension(s) to limit renaming
# file_extensions = []
# Swap year and day around (for correcting incorrectly formatted dates)
# swap_year = false
# Assume year is first in short dates (e.g., 24.12.31 instead of 31.12.24)
# year_first = false
[video_convert]
# Convert all known video file types (default is only .mp4 and .mkv)
# convert_all_types = false
# Convert all known video file types except MP4 files
# convert_other_types = false
# Delete input files immediately instead of moving to trash
# delete = false
# Delete source file if converted x265 file already exists
# delete_duplicates = false
# Exclude files that match the given pattern
# exclude = []
# Include files that match the given pattern
# include = []
# Override file extensions to convert
# extensions = []
# Overwrite existing output files
# overwrite = false
# Recurse into subdirectories
# recurse = false
# Skip files with bitrate lower than this threshold (kbps)
# bitrate = 8000
# Maximum bitrate in kbps (files above this are skipped)
# max_bitrate = 50000
# Minimum duration in seconds (files shorter than this are skipped)
# min_duration = 60
# Maximum duration in seconds (files longer than this are skipped)
# max_duration = 7200
# Minimum resolution in pixels — skip files where either width or height is below this value
# min_resolution = 1000
# Limit the number of files to convert
# count = 10
# Maximum number of files to display in listings (0 = unlimited)
# display_limit = 100
# Sort order for files to convert. Options:
# - "bitrate" (highest first, default)
# - "bitrate_asc" (lowest first)
# - "size" (largest first)
# - "size_asc" (smallest first)
# - "duration" (longest first)
# - "duration_asc" (shortest first)
# - "resolution" (highest first)
# - "resolution_asc" (lowest first)
# - "impact" (potential savings: bitrate / fps * duration, highest first)
# - "name" (alphabetical)
# sort = "bitrate"
[thumbnail]
# Print commands without running them
# dryrun = false
# Overwrite existing thumbnail files
# overwrite = false
# Recurse into subdirectories
# recurse = false
# Number of columns in the thumbnail grid (landscape videos)
# cols_landscape = 3
# Number of rows in the thumbnail grid (landscape videos)
# rows_landscape = 4
# Padding between tiles in pixels (landscape videos)
# padding_landscape = 8
# Number of columns in the thumbnail grid (portrait videos)
# cols_portrait = 4
# Number of rows in the thumbnail grid (portrait videos)
# rows_portrait = 3
# Padding between tiles in pixels (portrait videos)
# padding_portrait = 16
# Thumbnail width in pixels (height is calculated to maintain aspect ratio)
# scale_width = 480
# Font size for timestamp overlay
# font_size = 20
# JPEG quality (1-31, lower values = better quality, larger file size)
# quality = 2
[qtorrent]
# Print what would be done without actually adding torrents
# dryrun = false
# Offline mode: skip qBittorrent connection entirely (implies dryrun)
# offline = false
# Recurse into subdirectories when searching for torrent files
# recurse = false
# qBittorrent WebUI host
# host = "localhost"
# qBittorrent WebUI port
# port = 8080
# qBittorrent WebUI username
# username = "admin"
# qBittorrent WebUI password
# password = "adminadmin"
# Save path for downloaded files
# save_path = "/downloads"
# Category for the torrent
# category = ""
# Tags for the torrent (comma-separated)
# tags = ""
# Add torrent in paused state
# paused = false
# Skip confirmation prompts
# yes = false
# Skip rename prompts for existing/duplicate torrents
# skip_existing = false
# Include image files (.jpg, .jpeg, .png) in multi-file torrents
# include_images = false
# Minimum number of image files required before images are included.
# Torrents with fewer images behave as if include_images is false.
# min_image_file_count = 10
# File extensions to skip when selecting files from multi-file torrents (without dot)
# When include_images is false, keeping jpg/jpeg/png here matches the default behavior.
# skip_extensions = ["nfo", "txt", "jpg", "jpeg", "png", "sfv", "md5", "url"]
# Directory names to skip in multi-file torrents (case-insensitive full name match)
# skip_directories = ["sample", "proof", "screens"]
# Minimum file size in MB for non-image files (0 disables size filtering)
# min_file_size_mb = 10
# Minimum image file size in KB when include_images is true (0 disables image size filtering)
# min_image_size_kb = 0
# Substrings to remove from torrent filename when generating suggested name
# remove_from_name = ["[Example]", "Dummy"]
# Apply dots formatting to suggested name (uses [dots] config settings)
# use_dots_formatting = true
# Apply dots formatting to custom names entered in rename prompts
# format_custom_name = true
# If torrent filename contains any of these strings, ignore it and use internal name instead
# ignore_torrent_names = []
# Overwrite tags based on torrent filename prefix.
# If a torrent filename starts with one of these prefixes (case-insensitive),
# use the prefix as the tag string instead of the default "tags" value.
# Longer prefixes are checked first to allow more specific matches.
# tag_overwrite_prefixes = ["SomePrefix", "Other"]
[resolution]
# Enable debug prints
# debug = false
# Only print file names without renaming or deleting
# dryrun = false
# Overwrite existing files
# overwrite = false
# Recurse into subdirectories
# recurse = false
# Delete files with width or height smaller than this limit (default: 500)
# delete_limit = 500
[visaparse]
# Only print information without writing to file
# print = false
# How many merchant total sums to print with verbose output
# number = 20
[video_stats]
# Recurse into subdirectories
# recurse = false
# Print verbose per-file output
# verbose = false