Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9c4627a77 | ||
|
|
eff7a288cf | ||
|
|
94d419cf01 | ||
|
|
4760d576f3 | ||
|
|
800c9f3f02 |
No files matched your search
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [3.11.4](https://github.com/Masutayunikon/FanKarr/compare/v3.11.3...v3.11.4) (2026-04-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* ajout de la mise a jour des noms toutes les 1h ([0fe5c8c](https://github.com/Masutayunikon/FanKarr/commit/0fe5c8ccb7ecdc1643b5e69de3957c39dfd8085e))
|
||||||
|
|
||||||
## [3.11.3](https://github.com/Masutayunikon/FanKarr/compare/v3.11.2...v3.11.3) (2026-04-26)
|
## [3.11.3](https://github.com/Masutayunikon/FanKarr/compare/v3.11.2...v3.11.3) (2026-04-26)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+14
-1
@@ -11,7 +11,7 @@ import transmissionDriver from './torrent-clients/transmission.js'
|
|||||||
import synologyDsDriver from './torrent-clients/synology-ds.js'
|
import synologyDsDriver from './torrent-clients/synology-ds.js'
|
||||||
import utorrentDriver from './torrent-clients/utorrent.js'
|
import utorrentDriver from './torrent-clients/utorrent.js'
|
||||||
import rtorrentDriver from './torrent-clients/rtorrent.js'
|
import rtorrentDriver from './torrent-clients/rtorrent.js'
|
||||||
import { autoOrganizeAll, scanMediaPath } from './organize.js'
|
import { autoOrganizeAll, scanMediaPath, syncFilenameChanges } from './organize.js'
|
||||||
import { logger } from './logger.js'
|
import { logger } from './logger.js'
|
||||||
import { DATA_DIR, BASE_DIR } from './config.js'
|
import { DATA_DIR, BASE_DIR } from './config.js'
|
||||||
import { readAvailable, readInfohashMap, loadEnrichedSeriesData } from './lib/github-cache.js'
|
import { readAvailable, readInfohashMap, loadEnrichedSeriesData } from './lib/github-cache.js'
|
||||||
@@ -139,4 +139,17 @@ server.listen(PORT, async () => {
|
|||||||
checkNfoUpdates().catch(err => logger.error('nfo-update', `Vérif horaire échouée : ${err instanceof Error ? err.message : err}`))
|
checkNfoUpdates().catch(err => logger.error('nfo-update', `Vérif horaire échouée : ${err instanceof Error ? err.message : err}`))
|
||||||
}, 60 * 60_000)
|
}, 60 * 60_000)
|
||||||
}, 30_000)
|
}, 30_000)
|
||||||
|
|
||||||
|
// Sync automatique des noms de fichiers toutes les heures.
|
||||||
|
// Le TTL du cache GitHub est de 1h — ce setInterval tire toujours sur des données fraîches.
|
||||||
|
setInterval(async () => {
|
||||||
|
try {
|
||||||
|
const seriesData = await loadEnrichedSeriesData()
|
||||||
|
const { renamed } = await syncFilenameChanges(seriesData, path.join(DATA_DIR, 'organized.json'))
|
||||||
|
if (renamed > 0)
|
||||||
|
logger.info('api', `Sync noms auto — ${renamed} fichier(s) renommé(s)`)
|
||||||
|
} catch (err) {
|
||||||
|
logger.error('api', `Sync noms auto échoué : ${err instanceof Error ? err.message : err}`)
|
||||||
|
}
|
||||||
|
}, 60 * 60_000)
|
||||||
})
|
})
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
3.11.3
|
3.11.4
|
||||||
Reference in new issue
Block a user