This commit is contained in:
Andrey Kondratev
2025-08-28 17:49:08 +05:00
parent 3c615acaeb
commit 3dee6021fc
3 changed files with 14 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import express, { Request, Response, NextFunction } from 'express';
import express, { Request, Response } from 'express';
import path from 'path';
import fs from 'fs';
import ffmpeg from 'fluent-ffmpeg';
@@ -197,7 +197,7 @@ app.get('/health', (req: Request, res: Response) => {
});
// Error handler
app.use((err: Error, req: Request, res: Response, _next: NextFunction) => {
app.use((err: Error, req: Request, res: Response) => {
console.error(err.stack);
res.status(500).json({ error: 'Something went wrong!' });
});

View File

@@ -180,7 +180,7 @@ export class SoundCloudService {
console.log('Audio stream obtained with track ID method');
return stream;
} catch (_fallbackError: any) {
} catch {
console.error('Track ID method failed, trying URL construction...');
// Final fallback - try constructing different URL formats