mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-11 13:15:13 +02:00
Format
This commit is contained in:
parent
8d575241fe
commit
8a13dea681
@ -1,6 +1,6 @@
|
|||||||
import { unpack } from './util/userspace';
|
import { unpack } from './util/userspace';
|
||||||
import { Hosters, Redirect, TmpHost } from './settings';
|
import { Hosters, Redirect, TmpHost } from './settings';
|
||||||
import {lastPathSegment} from "~/lib/util/extract";
|
import { lastPathSegment } from '~/lib/util/extract';
|
||||||
|
|
||||||
export interface Match {
|
export interface Match {
|
||||||
name: string;
|
name: string;
|
||||||
@ -10,12 +10,16 @@ export interface Match {
|
|||||||
regex: RegExp[];
|
regex: RegExp[];
|
||||||
notice?: string;
|
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 {
|
export enum MatchMediaType {
|
||||||
Hls = 'hls',
|
Hls = 'hls',
|
||||||
Native = 'native',
|
Native = 'native'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Doodstream: Match = {
|
export const Doodstream: Match = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user