fix authors?

This commit is contained in:
Andrey Kondratev
2025-11-10 16:51:57 +05:00
parent beb2d19019
commit 21a32ffc79
5 changed files with 83 additions and 28 deletions

View File

@@ -158,8 +158,8 @@ app.post('/api/search', async (req: Request, res: Response) => {
// Convert video to MP3
app.post('/api/convert', async (req: Request, res: Response) => {
try {
const { videoId, title, userId, url }: { videoId?: string; title?: string; userId?: string; url?: string } = req.body;
logger.info(`Convert request received: ${title} (ID: ${videoId})`);
const { videoId, title, userId, url, performer }: { videoId?: string; title?: string; userId?: string; url?: string; performer?: string } = req.body;
logger.info(`Convert request received: ${title} by ${performer || 'Unknown'} (ID: ${videoId})`);
if (!videoId) {
return res.status(400).json({ error: 'Video ID is required' });