Added unknown to stream Qualities union

This commit is contained in:
Jonathan Barrow
2023-09-28 18:42:29 -04:00
parent dd168c7458
commit 4d5f76ab6b
2 changed files with 2 additions and 5 deletions

View File

@@ -27,10 +27,7 @@ export const mixdropScraper = makeEmbed({
type: 'file', type: 'file',
flags: [flags.NO_CORS], flags: [flags.NO_CORS],
qualities: { qualities: {
// TODO - Allow unknown qualitys? unknown: {
// MixDrop does not give quality info
// This is just so it's even visible
'1080': {
type: 'mp4', type: 'mp4',
url: url.startsWith('http') ? url : `https:${url}`, // URLs don't always start with the protocol url: url.startsWith('http') ? url : `https:${url}`, // URLs don't always start with the protocol
headers: { headers: {

View File

@@ -6,7 +6,7 @@ export type StreamFile = {
headers?: Record<string, string>; headers?: Record<string, string>;
}; };
export type Qualities = '360' | '480' | '720' | '1080'; export type Qualities = 'unknown' | '360' | '480' | '720' | '1080';
export type FileBasedStream = { export type FileBasedStream = {
type: 'file'; type: 'file';