1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

add quality to streams

This commit is contained in:
Jelle van Snik 2023-01-11 23:41:27 +01:00
parent e34ddddddb
commit 094f9208a8
3 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import { MWEmbedType } from "../helpers/embed";
import { registerEmbedScraper } from "../helpers/register";
import { MWStreamType } from "../helpers/streams";
import { MWStreamQuality, MWStreamType } from "../helpers/streams";
registerEmbedScraper({
id: "testembed",
@ -15,6 +15,7 @@ registerEmbedScraper({
return {
streamUrl: "hello-world",
type: MWStreamType.MP4,
quality: MWStreamQuality.Q1080P,
};
},
});

View file

@ -3,7 +3,13 @@ export enum MWStreamType {
HLS = "hls",
}
export enum MWStreamQuality {
Q360P = "360p",
Q1080P = "1080p",
}
export type MWStream = {
streamUrl: string;
type: MWStreamType;
quality: MWStreamQuality;
};

View file

@ -1,6 +1,6 @@
import { MWEmbedType } from "../helpers/embed";
import { registerProvider } from "../helpers/register";
import { MWStreamType } from "../helpers/streams";
import { MWStreamQuality, MWStreamType } from "../helpers/streams";
import { MWMediaType } from "../metadata/types";
registerProvider({
@ -20,6 +20,7 @@ registerProvider({
stream: {
streamUrl: "hello-world",
type: MWStreamType.HLS,
quality: MWStreamQuality.Q1080P,
},
embeds: [
{