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:
17
providers/ringz/stream.ts
Normal file
17
providers/ringz/stream.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user