fix: settings

This commit is contained in:
MasutaYunikon committed 2026-04-11 12:59:24 +02:00
1 parent 176dfed0af
commit 271fc14386
1 file changed
+13 -2
+13 -2
View File
@@ -7,12 +7,23 @@ const DATA_PATH = path.join(DATA_DIR, 'settings.json')
export interface Settings {
mediaPath : string
completePath : string
organizeMode : 'hardlink' | 'copy' | 'move'
organizeMode : 'hardlink' | 'copy' | 'move' // ← ajouter 'copy'
category : string
nfoSupport : boolean
autoImport : boolean
devMode : boolean
deleteTorrentOnMove : boolean
deleteTorrentOnMove : boolean // ← ajouter
}
const defaults: Settings = {
mediaPath : '',
completePath: '',
organizeMode: 'hardlink',
category : 'fankai',
nfoSupport : false,
autoImport : true,
devMode : false,
deleteTorrentOnMove: false,
}
export function readSettings(): Settings {