Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9c4627a77 | ||
|
|
eff7a288cf | ||
|
|
94d419cf01 | ||
|
|
4760d576f3 | ||
|
|
800c9f3f02 | ||
|
|
6c7def3184 | ||
|
|
962279db29 | ||
|
|
bffe286f40 | ||
|
|
abc96dd648 |
No files matched your search
@@ -1,5 +1,19 @@
|
|||||||
# 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)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* dockerfile node version to 22 ([5983494](https://github.com/Masutayunikon/FanKarr/commit/598349407750c729579bd639680ebc6a8ebcc12f))
|
||||||
|
|
||||||
## [3.11.2](https://github.com/Masutayunikon/FanKarr/compare/v3.11.1...v3.11.2) (2026-04-26)
|
## [3.11.2](https://github.com/Masutayunikon/FanKarr/compare/v3.11.1...v3.11.2) (2026-04-26)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-slim AS base
|
FROM node:22-slim AS base
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
@@ -15,7 +15,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
|||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# ── Production ─────────────────────────────────────────────────
|
# ── Production ─────────────────────────────────────────────────
|
||||||
FROM node:20-slim
|
FROM node:22-slim
|
||||||
RUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
+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.2
|
3.11.4
|
||||||
Reference in new issue
Block a user