Update Vidoza.ts

Remove double height.
This commit is contained in:
GSTAR 2025-11-30 23:16:26 +01:00 committed by GitHub
parent 31b8501b60
commit 40b54a62f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ export class Vidoza extends Extractor {
}
}
const extractedLabel = this.extractLabelFromHtml(html); // returns "720" etc.
const extractedLabel = this.extractLabelFromHtml(html);
const height = extractedLabel ? parseInt(extractedLabel, 10) : null;
const proxiedUrl = await buildMediaFlowProxyExtractorStreamUrl(
@ -77,14 +77,14 @@ export class Vidoza extends Extractor {
{
url: proxiedUrl,
format: Format.mp4,
label: extractedLabel ? `${extractedLabel}p` : this.label,
label: this.label,
ttl: this.ttl,
requestHeaders: headers,
sourceId: `${this.id}_${meta.countryCodes?.join('_') ?? 'all'}`,
meta: {
...meta,
title,
...(height ? { height } : {}),
...(height !== null ? { height } : {}),
...(bytesSize && bytesSize > 16777216 ? { bytes: bytesSize } : {}),
},
},