From bab0da2a8f141c530fdfe24f5ef872660cbe032c Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:12:01 +0000 Subject: [PATCH] chore(extractor): use MEDIAFLOW_DEFAULT_INIT where it was forgotten --- src/extractor/FileMoon.ts | 9 +++++++-- src/extractor/LuluStream.ts | 9 +++++++-- src/extractor/Voe.ts | 9 +++++++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/extractor/FileMoon.ts b/src/extractor/FileMoon.ts index e72bce1..81b3ae7 100644 --- a/src/extractor/FileMoon.ts +++ b/src/extractor/FileMoon.ts @@ -1,7 +1,12 @@ import * as cheerio from 'cheerio'; import { NotFoundError } from '../error'; import { Context, Format, Meta, UrlResult } from '../types'; -import { buildMediaFlowProxyExtractorStreamUrl, guessHeightFromPlaylist, supportsMediaFlowProxy } from '../utils'; +import { + buildMediaFlowProxyExtractorStreamUrl, + guessHeightFromPlaylist, + MEDIAFLOW_DEFAULT_INIT, + supportsMediaFlowProxy, +} from '../utils'; import { Extractor } from './Extractor'; /** @see https://github.com/Gujal00/ResolveURL/blob/master/script.module.resolveurl/lib/resolveurl/plugins/filemoon.py */ @@ -64,7 +69,7 @@ export class FileMoon extends Extractor { ttl: this.ttl, meta: { ...meta, - height: await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, { queueLimit: 4 }), + height: await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, MEDIAFLOW_DEFAULT_INIT), title, }, }, diff --git a/src/extractor/LuluStream.ts b/src/extractor/LuluStream.ts index c768e3b..5bc9bcf 100644 --- a/src/extractor/LuluStream.ts +++ b/src/extractor/LuluStream.ts @@ -2,7 +2,12 @@ import bytes from 'bytes'; import * as cheerio from 'cheerio'; import { NotFoundError } from '../error'; import { Context, Format, Meta, UrlResult } from '../types'; -import { buildMediaFlowProxyExtractorStreamUrl, guessHeightFromPlaylist, supportsMediaFlowProxy } from '../utils'; +import { + buildMediaFlowProxyExtractorStreamUrl, + guessHeightFromPlaylist, + MEDIAFLOW_DEFAULT_INIT, + supportsMediaFlowProxy, +} from '../utils'; import { Extractor } from './Extractor'; /** @see https://github.com/Gujal00/ResolveURL/blob/master/script.module.resolveurl/lib/resolveurl/plugins/lulustream.py */ @@ -56,7 +61,7 @@ export class LuluStream extends Extractor { meta: { ...meta, bytes: bytes.parse(sizeMatch[1] as string) as number, - height: await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, { queueLimit: 4 }), + height: await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, MEDIAFLOW_DEFAULT_INIT), title, }, }, diff --git a/src/extractor/Voe.ts b/src/extractor/Voe.ts index 012cd6b..12e779b 100644 --- a/src/extractor/Voe.ts +++ b/src/extractor/Voe.ts @@ -1,7 +1,12 @@ import * as cheerio from 'cheerio'; import { NotFoundError } from '../error'; import { Context, Format, Meta, UrlResult } from '../types'; -import { buildMediaFlowProxyExtractorStreamUrl, guessHeightFromPlaylist, supportsMediaFlowProxy } from '../utils'; +import { + buildMediaFlowProxyExtractorStreamUrl, + guessHeightFromPlaylist, + MEDIAFLOW_DEFAULT_INIT, + supportsMediaFlowProxy, +} from '../utils'; import { Extractor } from './Extractor'; /** @see https://github.com/Gujal00/ResolveURL/blob/master/script.module.resolveurl/lib/resolveurl/plugins/voesx.py */ @@ -142,7 +147,7 @@ export class Voe extends Extractor { ttl: this.ttl, meta: { ...meta, - height: await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, { queueLimit: 4 }), + height: await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, MEDIAFLOW_DEFAULT_INIT), title, }, },