-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.example.toml
137 lines (112 loc) · 4.74 KB
/
config.example.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
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
# Autotorrent specific settings.
[autotorrent]
# Path to the internally used sqlite3 database.
# The path is relative to the config.toml if it is relative.
database_path = "./autotorrent.db"
# Link type to use.
# Choices:
# soft - use soft links.
# hard - use hard links, can only be used on same device.
# reflink - use reflink, not supported on all filesystems.
link_type = "soft"
# List of files to always verify hash on, can be used for files
# that might have the same size but often vary.
# It is case-sensitive to some extend, see https://docs.python.org/3/library/fnmatch.html for syntax and description
always_verify_hash = [
"*.nfo",
"*.sfv",
"*.diz",
]
# List of paths to scan when running at2 scan
paths = [
"/mnt/sd1/anime/",
"/mnt/sd1/tv/",
"/mnt/sd*/random/"
]
# Paths that are the same but mounted different places, useful for e.g. rar2fs.
# There is no need to include both paths in the path config.
same_paths = [
["/mnt/sd1/tv/", "/mnt/sd1/rar2fs/"]
]
## The add_limit settings will choose the smallest one, e.g.
## 1GB torrent will be 5% which is 53MB
## 10GB torrent will be 128MB because 5% is 530MB
# Maximum number of bytes missing when matching data and not doing an exact match
add_limit_size = 128_000_000
# Maximum number of percent missing when matching data and not doing an exact match
add_limit_percent = 5
# Where to store links, supports the following variables:
# client - the key found in the [clients] section, e.g. 'the-transmission' for [clients.the-transmission]
# torrent_name - torrent filename, e.g. /path/to/a.good.file.torrent is a.good.file
# torrent_source - source key from torrent, will throw an error if it does not exist in torrent
# tracker_domain - base domain for the tracker
store_path = "/mnt/store_path/{client}/{torrent_name}"
# Skip various metadata store in the store_folder when creating links
# Disabling this makes it impossible for autotorrent to trace back what a link folder contains
skip_store_metadata = false
# Cache files that are touched, useful with e.g. if the source is a read-only filesystem.
# Torrent clients need write access to the source data if pieces are missing that overlap with existing files.
cache_touched_files = false
# Set owner and group for a path after links are created
# ONLY UNIX
# rw_file_cache_chown = "1000:1000"
## Config settings for the RW cache if enabled
# TTL in seconds for files in the cache, i.e. it'll be deleted from the cache after X time
# and the links to files in the cache are replaced with links to the original file
rw_file_cache_ttl = 86400
# Path to the cache
rw_file_cache_path = "/mnt/store_path/cache"
# Tell client to fast-resume, not supported in all clients or in all situations.
# WARNING: setting fast_resume to true can cause errors and problems.
fast_resume = false
# List of fnmatch patterns to ignore when scanning local data and matching against torrent.
# The patterns are only used doing "at2 scan" and "at add". They are only matched against the filename.
# It is case-sensitive to some extend, see https://docs.python.org/3/library/fnmatch.html for syntax and description
ignore_file_patterns = [
"*.png"
]
# List of fnmatch patterns to ignore when scanning local data and matching against torrent.
# The patterns are only used doing "at2 scan" and "at add". They are only matched against the directory name.
# Unlike file matching, it is NOT case-sensitive, see https://docs.python.org/3/library/fnmatch.html for syntax and description
ignore_directory_patterns = [
".*"
]
# List of clients
# See https://github.com/JohnDoee/libtc#config-file-syntax for syntax (or infer it from reading the examples)
[clients]
[clients.deluge]
display_name = "A Deluge"
client_type = "deluge"
host = "127.0.0.1"
port = 58846
username = "localclient"
password = "secretpassword"
session_path = "~/.config/deluge/"
label = "labelthis"
[clients.the-transmission]
display_name = "Some transmission"
client_type = "transmission"
url = "http://127.0.0.1:9091/transmission/rpc"
session_path = "~/.config/transmission-daemon/"
[clients.another-transmission]
display_name = "Horse transmission"
client_type = "transmission"
url = "http://127.0.0.1:9092/transmission/rpc"
session_path = "~/.config/transmission-daemon2/"
[clients.rtorrent]
display_name = "rtorrent"
client_type = "rtorrent"
url = "scgi://127.0.0.1:5000"
session_path = "~/.rtorrent/"
label = "testlabel"
[clients.another-q-bittorrent]
display_name = "qBittorrent 1"
client_type = "qbittorrent"
url = "http://localhost:8080/"
username = "admin"
password = "adminadmin"
session_path = "~/.config/qbittorrent/"
label = "testlabel"
[clients.deluge-url]
display_name = "Deluge url"
client_url = "deluge://localclient:da39a3ee5e6b4b0d3255bfef95601890afd80709@127.0.0.1:58846?session_path=%7E/.config/deluge"