-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathapplication-template.yml
112 lines (100 loc) · 6.25 KB
/
application-template.yml
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
server:
port: 8978
logging:
level:
com.github.schaka: INFO # Set to debug or trace to get more info about what Janitorr is doing
threshold:
file: NONE # Set to TRACE to enable file logging
# File system access (same mapping as Sonarr, Radarr and Jellyfin) is required to delete TV shows by season and create "Leaving Soon" collections in Jellyfin
# Currently, Jellyfin does not support an easy way to add only a few seasons or movies to a collection, we need access to temporary symlinks
# Additionally, checks to prevent deletion on currently still seeding media currently require file system access as well
file-system:
access: true
validate-seeding: true # validates seeding by checking if the original file exists and skips deletion - turning this off will send a delete to the *arrs even if a torrent may still be active
leaving-soon-dir: "/data/media/leaving-soon" # The directory that's known to Janitorr - this will contain new folders with symlinks to your media library for "Leaving Soon"
media-server-leaving-soon-dir: "/data/media/leaving-soon" # This is the directory Jellyfin/Emby will be told it can find the "Leaving Soon" library, in case its mapped differently
from-scratch: true # Clean up entire "Leaving Soon" directory and rebuild from scratch - this can help with clearing orphaned data - turning this off can save resources (less writes to drive)
free-space-check-dir: "/" # This is the default directory Janitorr uses to check how much space is left on your drives. By default, it checks the entire root - you may point it at a specific folder
application:
dry-run: true
run-once: false # If you enable this, Janitorr will clean up once and then shut down.
whole-tv-show: false # activating this will treat as a whole show as recently download/watched from a single episode, rather than that episode's season - shows will be deleted as a whole
whole-show-seeding-check: false # Turning this off, disables the seeding check entirely if whole-tv-show is enabled. Activating this check will keep a whole TV show if any season is still seeding (requires file access).
leaving-soon: 14d # 14 days before a movie is deleted, it gets added to a "Leaving Soon" type collection (i.e. movies that are 76 to 89 days old)
exclusion-tag: "janitorr_keep" # Set this tag to your movies or TV shows in the *arrs to exclude media from being cleaned up
media-deletion:
enabled: true
movie-expiration:
# Percentage of free disk space to expiration time - if the highest given number is not reached, nothing will be deleted
# If filesystem access is not given, disk percentage can't be determined. As a result, Janitorr will always choose the largest expiration time.
5: 15d # 15 days
10: 30d # 1 month - if a movie's files on your system are older than this, they will be deleted
15: 30d # 2 months
20: 90d # 3 months
season-expiration:
5: 15d # 15 days
10: 20d # 20 days - if a season's files on your system are older than this, they will be deleted
15: 60d # 2 months
20: 120d # 4 months
tag-based-deletion:
enabled: true
minimum-free-disk-percent: 100
schedules:
- tag: 5 - demo
expiration: 30d
- tag: 10 - demo
expiration: 7d
episode-deletion: # This ignores Jellystat. Only grab history matters. It also doesn't clean up Jellyfin. There is NO seeding check either.
enabled: true
tag: janitorr_daily # Shows tagged with this will have all episodes of their LATEST season deleted by the below thresholds
max-episodes: 10 # maximum (latest) episodes of this season to keep
max-age: 30d # Maximum age to keep any episode at all - even the last 10 episodes would expire after 30 days in this example
clients:
sonarr:
enabled: true
url: "http://localhost:8989"
api-key: "4ed7f4d0e8584d65aa2d47d944077ff6"
delete-empty-shows: true # Delete empty shows if deleting by season. Otherwise leaves Sonarr entries behind.
determine-age-by: most_recent # Optional property, use 'most_recent' or 'oldest' - remove this line if Janitorr should determine by upgrades enabled for your profile
radarr:
enabled: true
url: "http://localhost:7878"
api-key: "cd0912f129d348c9b69bb20d49fcbe44"
only-delete-files: true # NOT RECOMMENDED - When set to true, Janitorr will only delete your media files but keep the entries in Radarr
determine-age-by: most_recent # Optional property, use 'most_recent' or 'oldest' - remove this line if Janitorr should determine by upgrades enabled for your profile
bazarr:
enabled: false # Only used if you want to copy over subtitle files managed by Bazarr
url: "http://localhost:6767"
api-key: "cd0912f129d348c9b69bb20d49fcbe55"
## You can only choose one out of Jellyfin or Emby.
## User login is only needed if deletion is enabled.
jellyfin:
enabled: true
url: "http://localhost:8096"
api-key: "4da8d93992804489ba2d1f0e31b8316c"
username: Janitorr
password: janitorr
delete: true # Jellyfin setup is required for JellyStat. However, if you don't want Janitorr to send delete requests to the Jellyfin API, disable it here
leaving-soon-tv: "Shows (Leaving Soon)"
leaving-soon-movies: "Movies (Leaving Soon)"
## You can only choose one out of Jellyfin or Emby. Emby support is secondary.
## User login is only needed if deletion is enabled.
emby:
enabled: false
url: "http://localhost:8096"
api-key: "4da8d93992804489ba2d1f0e31b8316c"
username: Janitorr
password: janitorr
delete: true # Emby setup is required for JellyStat. However, if you don't want Janitorr to send delete requests to the Emby API, disable it here
leaving-soon-tv: "Shows (Leaving Soon)"
leaving-soon-movies: "Movies (Leaving Soon)"
jellyseerr:
enabled: true
url: "http://localhost:5055"
api-key: "MTY3NzU3NzI0NzgzOWFhNWYxMGE4LWNlMWYtNDc1ZS04ODYzLThkMjQyMTQ4M2NiZCe="
match-server: false # Enable if you have several Radarr/Sonarr instances set up in Jellyseerr. Janitorr will match them by the host+port supplied in their respective config settings.
jellystat:
enabled: true
whole-tv-show: false # Enabling this will make Jellystat consider TV shows as a whole if any episode of any season has been watched
url: "http://jellystat:3000"
api-key: "jellystat-key"