mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-22 20:23:44 +08:00
refactor: remove unused variables and imports, and internalize module-specific functions and interfaces.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { NextRequest } from 'next/server';
|
||||
|
||||
export async function processM3u8Content(
|
||||
content: string,
|
||||
@@ -19,7 +18,7 @@ export async function processM3u8Content(
|
||||
const absoluteUrl = new URL(line.trim(), base).toString();
|
||||
// Wrap in proxy
|
||||
return `${origin}/api/proxy?url=${encodeURIComponent(absoluteUrl)}`;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return line;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user