From 33718115e188f0af87c603549d17abfd013122cb Mon Sep 17 00:00:00 2001 From: Priveetee Date: Thu, 9 Apr 2026 11:27:48 +0200 Subject: [PATCH] fix: avoid reporting exact height when fallback is enabled --- .../kotlin/dev/typetype/downloader/services/JobViewBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/typetype/downloader/services/JobViewBuilder.kt b/src/main/kotlin/dev/typetype/downloader/services/JobViewBuilder.kt index a59fa78..35228ce 100644 --- a/src/main/kotlin/dev/typetype/downloader/services/JobViewBuilder.kt +++ b/src/main/kotlin/dev/typetype/downloader/services/JobViewBuilder.kt @@ -44,7 +44,7 @@ object JobViewBuilder { private fun resolved(row: JobRow, options: JobOptions, fileName: String?): ResolvedOutput = ResolvedOutput( videoItag = options.videoItag.ifBlank { null }, audioItag = options.audioItag.ifBlank { null }, - height = options.height ?: qualityHeight(options.quality), + height = options.height ?: if (options.allowQualityFallback) null else qualityHeight(options.quality), fps = options.fps, videoCodec = options.videoCodec.ifBlank { null }, audioCodec = options.audioCodec.ifBlank { null },