mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
refactor: clean up unused variables and improve error handling in getStream function
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Stream, ProviderContext, TextTracks, TextTrackType } from "../types";
|
import { Stream, ProviderContext, TextTracks } from "../types";
|
||||||
|
|
||||||
export const getStream = async function ({
|
export const getStream = async function ({
|
||||||
link: url,
|
link: url,
|
||||||
@@ -133,7 +133,7 @@ export const getStream = async function ({
|
|||||||
subtitles.push({
|
subtitles.push({
|
||||||
language: lang,
|
language: lang,
|
||||||
uri: sub,
|
uri: sub,
|
||||||
type: TextTrackType.VTT,
|
type: "text/vtt",
|
||||||
title: lang,
|
title: lang,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user