Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6624843b9 | ||
|
|
8bd30913cd | ||
|
|
d7eb932ed3 | ||
|
|
4594dc5189 |
No files matched your search
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [2.1.3](https://github.com/Masutayunikon/FanKarr/compare/v2.1.2...v2.1.3) (2026-03-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* use magnet before torrent ([ed4665a](https://github.com/Masutayunikon/FanKarr/commit/ed4665a378d15c0b45a2be32d612e41082a43df1))
|
||||||
|
|
||||||
## [2.1.2](https://github.com/Masutayunikon/FanKarr/compare/v2.1.1...v2.1.2) (2026-03-23)
|
## [2.1.2](https://github.com/Masutayunikon/FanKarr/compare/v2.1.1...v2.1.2) (2026-03-23)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -545,7 +545,7 @@ app.get('/api/series/:id', requireAuth, async (req, res) => {
|
|||||||
|
|
||||||
// ── Download ───────────────────────────────────────────────────
|
// ── Download ───────────────────────────────────────────────────
|
||||||
app.post('/api/download', requireAuth, async (req, res) => {
|
app.post('/api/download', requireAuth, async (req, res) => {
|
||||||
const url = req.body.torrent_url ?? req.body.magnet
|
const url = req.body.magnet ?? req.body.torrent_url
|
||||||
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: any) => r.ok) ? 200 : 207).json({ results })
|
res.status(results.every((r: any) => r.ok) ? 200 : 207).json({ results })
|
||||||
|
|||||||
Reference in new issue
Block a user