mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
renaming
This commit is contained in:
21
providers/vadapav/stream.ts
Normal file
21
providers/vadapav/stream.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Stream, ProviderContext } from "../types";
|
||||
|
||||
export const getStream = async function ({
|
||||
link: url, // type, // providerContext,
|
||||
}: {
|
||||
link: string;
|
||||
type: string;
|
||||
providerContext: ProviderContext;
|
||||
}): Promise<Stream[]> {
|
||||
try {
|
||||
const stream: Stream[] = [];
|
||||
stream.push({
|
||||
server: "vadapav",
|
||||
link: url,
|
||||
type: url?.split(".").pop() || "mkv",
|
||||
});
|
||||
return stream;
|
||||
} catch (err) {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user