Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
754a7296f6 | ||
|
|
784e2d80a2 | ||
|
|
4ed8dc3a54 | ||
|
|
27027642eb |
No files matched your search
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.0.1](https://github.com/Masutayunikon/FanKarr/compare/v1.0.0...v1.0.1) (2026-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* docker errors ([2702764](https://github.com/Masutayunikon/FanKarr/commit/27027642eb55b75adb04446a88e5007e88f75948))
|
||||||
|
|
||||||
## 1.0.0 (2026-03-10)
|
## 1.0.0 (2026-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -8,7 +8,7 @@ import {
|
|||||||
registerDriver, getDriver, getAvailableClients,
|
registerDriver, getDriver, getAvailableClients,
|
||||||
listClients, addClient, removeClient, getClient,
|
listClients, addClient, removeClient, getClient,
|
||||||
sanitizeClient, dispatchDownload, dispatchList
|
sanitizeClient, dispatchDownload, dispatchList
|
||||||
} from './torrent-clients'
|
} from './torrent-clients/index.js'
|
||||||
import qbittorrentDriver from './torrent-clients/qbittorrent.js'
|
import qbittorrentDriver from './torrent-clients/qbittorrent.js'
|
||||||
import { organizeTorrent, autoOrganizeAll } from './organize.js'
|
import { organizeTorrent, autoOrganizeAll } from './organize.js'
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ app.get('/api/torrent-clients/available', requireAuth, (_req, res) => {
|
|||||||
res.json(getAvailableClients())
|
res.json(getAvailableClients())
|
||||||
})
|
})
|
||||||
app.get('/api/torrent-clients', requireAuth, (_req, res) => {
|
app.get('/api/torrent-clients', requireAuth, (_req, res) => {
|
||||||
res.json(listClients().map(c => sanitizeClient(c)))
|
res.json(listClients().map((c: any) => sanitizeClient(c)))
|
||||||
})
|
})
|
||||||
app.post('/api/torrent-clients', requireAuth, (req, res) => {
|
app.post('/api/torrent-clients', requireAuth, (req, res) => {
|
||||||
const { name, type, config } = req.body
|
const { name, type, config } = req.body
|
||||||
@@ -222,7 +222,7 @@ app.post('/api/download', requireAuth, async (req, res) => {
|
|||||||
const url = req.body.torrent_url ?? req.body.magnet
|
const url = req.body.torrent_url ?? req.body.magnet
|
||||||
if (!url) { res.status(400).json({ error: 'torrent_url ou magnet requis' }); return }
|
if (!url) { res.status(400).json({ error: 'torrent_url ou magnet requis' }); return }
|
||||||
const results = await dispatchDownload(url)
|
const results = await dispatchDownload(url)
|
||||||
res.status(results.every(r => r.ok) ? 200 : 207).json({ results })
|
res.status(results.every((r: any) => r.ok) ? 200 : 207).json({ results })
|
||||||
})
|
})
|
||||||
|
|
||||||
// ── Downloads — liste torrents Fankai ──────────────────────────
|
// ── Downloads — liste torrents Fankai ──────────────────────────
|
||||||
|
|||||||
Reference in new issue
Block a user