Skip to content

Commit ad257e5

Browse files
committed
Add config.toml to gitignore and provide example config file
1 parent 9f38d6e commit ad257e5

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,8 @@ test_run/
194194
test_export.sh
195195
test_real_data.sh
196196
test_prod/
197+
198+
# Config files with credentials
199+
config/config.toml
200+
# But keep the example file
201+
!config/config.example.toml

config/config.example.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Trakt.tv API Configuration
2+
[trakt]
3+
# Obtenir ces identifiants sur https://trakt.tv/oauth/applications
4+
client_id = "YOUR_CLIENT_ID"
5+
client_secret = "YOUR_CLIENT_SECRET"
6+
access_token = "YOUR_ACCESS_TOKEN"
7+
api_base_url = "https://api.trakt.tv"
8+
extended_info = "full"
9+
10+
# Letterboxd Export Configuration
11+
[letterboxd]
12+
export_dir = "exports"
13+
watched_filename = "trakt-watched-films.csv"
14+
collection_filename = "trakt-collection-films.csv"
15+
shows_filename = "trakt-shows.csv"
16+
17+
# Export Settings
18+
[export]
19+
format = "csv"
20+
date_format = "2006-01-02"
21+
22+
# Logging Configuration
23+
[logging]
24+
level = "info"
25+
file = "logs/export.log"
26+
27+
# Internationalization Settings
28+
[i18n]
29+
default_language = "en"
30+
language = "en"
31+
locales_dir = "locales"

0 commit comments

Comments
 (0)