refactor: update text track types and clean up imports across multiple stream providers

This commit is contained in:
himanshu8443
2025-06-18 13:39:34 +05:30
parent e3208db7b0
commit dc009266be
10 changed files with 87 additions and 288 deletions

View File

@@ -1,4 +1,4 @@
import { ProviderContext, Stream, TextTrackType } from "../types";
import { ProviderContext, Stream } from "../types";
export const getStream = async function ({
link: id,
@@ -33,7 +33,7 @@ export const getStream = async function ({
subtitles.push({
language: sub?.lang?.slice(0, 2) as any,
uri: sub?.url,
type: TextTrackType.VTT,
type: "text/vtt",
title: sub?.lang,
});
});