debug: ext_info info endpoint
This commit is contained in:
@@ -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
|
// DEBUG – nach Test entfernen
|
||||||
router.get('/debug-xrel3', authenticate, async (req, res) => {
|
router.get('/debug-xrel3', authenticate, async (req, res) => {
|
||||||
const title = req.query.title || '';
|
const title = req.query.title || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user