debug: ext_info info endpoint

This commit is contained in:
2026-06-11 10:50:51 +02:00
parent 1c6f4e816d
commit 5374935022

View File

@@ -377,6 +377,16 @@ router.put('/settings', authenticate, requireAdmin, (req, res) => {
});
// DEBUG ext_info nach Test entfernen
router.get('/debug-extinfo', authenticate, async (req, res) => {
const id = req.query.id || '';
if (!id) return res.json({ error: 'id required' });
try {
const data = await xrelFetch('/ext_info/info.json', { id, type: 'movie' });
res.json(data);
} catch(e) { res.status(500).json({ error: e.message }); }
});
// DEBUG nach Test entfernen
router.get('/debug-xrel3', authenticate, async (req, res) => {
const title = req.query.title || '';