chore: more cleanup

This commit is contained in:
Adrian Castro
2024-02-15 20:09:19 +01:00
parent 53106d8b7b
commit b3dbb7f334
2 changed files with 4 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ export function findHighestQuality(
return undefined;
}
export interface HLSPlaylist {
export interface HLSTracks {
video: Item[];
audio: Item[];
subtitles: Item[];
@@ -115,7 +115,7 @@ export interface HLSPlaylist {
export async function extractTracksFromHLS(
playlistUrl: string,
headers: Record<string, string>,
): Promise<HLSPlaylist | null> {
): Promise<HLSTracks | null> {
try {
const response = await fetch(playlistUrl, { headers }).then((res) =>
res.text(),