forked from reluce/szurubooru-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_sample.toml
94 lines (84 loc) · 4.2 KB
/
config_sample.toml
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
[szurubooru]
url = "https://szuru.example.com"
username = "my_szuru_user" # Username which connects to the Szuruboori API
api_token = "my_api_token" # See the README.md on how to generate one
public = false # Is your szurubooru reachable over the internet?
[auto_tagger]
saucenao_api_token = "my_saucenao_api_token" # In case you want to increase your daily query limit
saucenao_enabled = true # Set this to false and deepbooru_enabled to true if you only want to tag with DeepBooru
deepbooru_enabled = false
deepbooru_model = "./misc/deepbooru/model-resnet_custom_v3.h5"
deepbooru_threshold = "0.7" # Define how accurate the matched tag from DeepBooru has to be
deepbooru_forced = false # Always tag with SauceNAO and Deepbooru
deepbooru_set_tag = true # Tag Deepbooru post with tag "deepbooru"
hide_progress = false # Set this to true to hide the progress bar
# Leave those options as "None" if you have no accounts on these sites
[danbooru]
user = "None"
api_key = "None"
[gelbooru]
user = "None"
api_key = "None"
[konachan]
user = "None"
password = "None"
[yandere]
user = "None"
password = "None"
[pixiv]
user = "None"
password = "None"
token = "None"
[twitter]
user_id = "None" # The user id which should be queried.
consumer_key = "None" # See https://developer.twitter.com/en/docs/authentication/oauth-1-0a
consumer_secret = "None" # See https://developer.twitter.com/en/docs/authentication/oauth-1-0a
access_token = "None" # See https://developer.twitter.com/en/docs/authentication/oauth-1-0a
access_token_secret = "None" # See https://developer.twitter.com/en/docs/authentication/oauth-1-0a
[upload_media]
src_path = "/local/path/to/upload/dir" # Every valid media file under this dir (recursively) will get uploaded
hide_progress = false # Set this to true to hide the progress bar
cleanup = false # Set this to true if images in the source directory should be deleted after upload
tags = ["tagme"] # These tags will get set for all uploaded posts
auto_tag = true # Set this to true if you want your post to be automatically tagged after upload
max_similarity = "0.99" # 1.00 being basically the same image
convert_to_jpg = false # Convert images to JPG to save disk space. This won't overwrite the source files and only affects the uploaded image. Images might slip through identical post check.
convert_threshold = "3MB" # Convert images only if specified threshold has been broken.
convert_quality = "90" # Set up to 95. Higher means better quality, but takes up more disk space.
shrink = false # Set to true to shrink images to shrink_dimensions based on shrink_threshold below. Images might slip through identical post check.
shrink_threshold = "6000000" # Images which total pixel size exceeds this treshold will be resized to shrink_size. E.g. 2000x3000 results in 6000000.
shrink_dimensions = "2500x2500" # Set the max value for width/height. Keeps aspect ratio. E.g. 2000x4000 results in 700x1400, 4000x2000 in 1400x700.
[import_from_booru]
deepbooru_enabled = true # Apply Deepbooru tagging additionally besides fetched tags from Booru
hide_progress = false # Set this to true to hide the progress bar
# Following settings apply from upload_media as well:
# max_similarity
# convert_to_jpg
# convert_threshold
# shrink
# shrink_threshold
# shrink_dimensions
[import_from_twitter]
saucenao_enabled = true # Tag posts with SauceNAO
deepbooru_enabled = false # Tag posts with Deepbooru
hide_progress = false # Set this to true to hide the progress barions
# Following settings apply from upload_media as well:
# max_similarity
# convert_to_jpg
# convert_threshold
# shrink
# shrink_threshold
# shrink_dimensions
[tag_posts]
hide_progress = false # Set this to true to hide the progress bar
[delete_posts]
hide_progress = false # Set this to true to hide the progress bar
[reset_posts]
hide_progress = false # Set this to true to hide the progress bar
[create_tags]
hide_progress = false # Set this to true to hide the progress bar
[logging]
log_enabled = false
log_file = "szurubooru_toolkit.log" # If no full path is specified, the log file gets created in the current working directory
log_level = "DEBUG"
log_colorized = true # Set this to false if your log viewer has trouble parsing the file. less -r or tail -f works just fine.