+
-
-
${this.escapeHtml(video.title)}
-
${this.escapeHtml(video.channel)}
+
+
${this.escapeHtml(video.title)}
+
${this.escapeHtml(video.channel)}
diff --git a/src/server.ts b/src/server.ts
index 6ccb77a..52c9f5c 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -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!' });
});
diff --git a/src/soundcloud.ts b/src/soundcloud.ts
index e569cdf..fee5f93 100644
--- a/src/soundcloud.ts
+++ b/src/soundcloud.ts
@@ -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