mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-14 08:05:10 +01:00
add quality to streams
This commit is contained in:
parent
e34ddddddb
commit
094f9208a8
@ -1,6 +1,6 @@
|
|||||||
import { MWEmbedType } from "../helpers/embed";
|
import { MWEmbedType } from "../helpers/embed";
|
||||||
import { registerEmbedScraper } from "../helpers/register";
|
import { registerEmbedScraper } from "../helpers/register";
|
||||||
import { MWStreamType } from "../helpers/streams";
|
import { MWStreamQuality, MWStreamType } from "../helpers/streams";
|
||||||
|
|
||||||
registerEmbedScraper({
|
registerEmbedScraper({
|
||||||
id: "testembed",
|
id: "testembed",
|
||||||
@ -15,6 +15,7 @@ registerEmbedScraper({
|
|||||||
return {
|
return {
|
||||||
streamUrl: "hello-world",
|
streamUrl: "hello-world",
|
||||||
type: MWStreamType.MP4,
|
type: MWStreamType.MP4,
|
||||||
|
quality: MWStreamQuality.Q1080P,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,13 @@ export enum MWStreamType {
|
|||||||
HLS = "hls",
|
HLS = "hls",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum MWStreamQuality {
|
||||||
|
Q360P = "360p",
|
||||||
|
Q1080P = "1080p",
|
||||||
|
}
|
||||||
|
|
||||||
export type MWStream = {
|
export type MWStream = {
|
||||||
streamUrl: string;
|
streamUrl: string;
|
||||||
type: MWStreamType;
|
type: MWStreamType;
|
||||||
|
quality: MWStreamQuality;
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { MWEmbedType } from "../helpers/embed";
|
import { MWEmbedType } from "../helpers/embed";
|
||||||
import { registerProvider } from "../helpers/register";
|
import { registerProvider } from "../helpers/register";
|
||||||
import { MWStreamType } from "../helpers/streams";
|
import { MWStreamQuality, MWStreamType } from "../helpers/streams";
|
||||||
import { MWMediaType } from "../metadata/types";
|
import { MWMediaType } from "../metadata/types";
|
||||||
|
|
||||||
registerProvider({
|
registerProvider({
|
||||||
@ -20,6 +20,7 @@ registerProvider({
|
|||||||
stream: {
|
stream: {
|
||||||
streamUrl: "hello-world",
|
streamUrl: "hello-world",
|
||||||
type: MWStreamType.HLS,
|
type: MWStreamType.HLS,
|
||||||
|
quality: MWStreamQuality.Q1080P,
|
||||||
},
|
},
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user