From 4d5f76ab6b735810641fedde6c3d06cebf2af982 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Thu, 28 Sep 2023 18:42:29 -0400 Subject: [PATCH] Added unknown to stream Qualities union --- src/providers/embeds/mixdrop.ts | 5 +---- src/providers/streams.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/providers/embeds/mixdrop.ts b/src/providers/embeds/mixdrop.ts index d6314bf..932642c 100644 --- a/src/providers/embeds/mixdrop.ts +++ b/src/providers/embeds/mixdrop.ts @@ -27,10 +27,7 @@ export const mixdropScraper = makeEmbed({ type: 'file', flags: [flags.NO_CORS], qualities: { - // TODO - Allow unknown qualitys? - // MixDrop does not give quality info - // This is just so it's even visible - '1080': { + unknown: { type: 'mp4', url: url.startsWith('http') ? url : `https:${url}`, // URLs don't always start with the protocol headers: { diff --git a/src/providers/streams.ts b/src/providers/streams.ts index 3cad3ce..8a4674c 100644 --- a/src/providers/streams.ts +++ b/src/providers/streams.ts @@ -6,7 +6,7 @@ export type StreamFile = { headers?: Record; }; -export type Qualities = '360' | '480' | '720' | '1080'; +export type Qualities = 'unknown' | '360' | '480' | '720' | '1080'; export type FileBasedStream = { type: 'file';