This commit is contained in:
bytedream 2025-04-04 00:01:21 +02:00
parent 8d575241fe
commit 8a13dea681
4 changed files with 16 additions and 12 deletions

View File

@ -1,6 +1,6 @@
import { unpack } from './util/userspace';
import { Hosters, Redirect, TmpHost } from './settings';
import {lastPathSegment} from "~/lib/util/extract";
import { lastPathSegment } from '~/lib/util/extract';
export interface Match {
name: string;
@ -10,12 +10,16 @@ export interface Match {
regex: RegExp[];
notice?: string;
match(match: RegExpMatchArray): Promise<string | {[MatchMediaType.Hls]: string} | {[MatchMediaType.Native]: string} | null>;
match(
match: RegExpMatchArray
): Promise<
string | { [MatchMediaType.Hls]: string } | { [MatchMediaType.Native]: string } | null
>;
}
export enum MatchMediaType {
Hls = 'hls',
Native = 'native',
Native = 'native'
}
export const Doodstream: Match = {