mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-18 08:01:43 +00:00
18 lines
403 B
TypeScript
18 lines
403 B
TypeScript
import { Stream, ProviderContext } from "../types";
|
|
|
|
export const getStream = async function ({
|
|
link: data,
|
|
}: {
|
|
link: string;
|
|
providerContext: ProviderContext;
|
|
}): Promise<Stream[]> {
|
|
const streamLinks: Stream[] = [];
|
|
const dataJson = JSON.parse(data);
|
|
streamLinks.push({
|
|
link: dataJson.url,
|
|
server: dataJson.server,
|
|
type: "mkv",
|
|
});
|
|
return streamLinks;
|
|
};
|