From 56ee5cf478a8ac0d2d3f521b334444406c318dea Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 7 Jan 2025 10:32:05 +0100 Subject: [PATCH] Check video types --- CHDataManagement/Generator/Blocks/VideoBlock.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHDataManagement/Generator/Blocks/VideoBlock.swift b/CHDataManagement/Generator/Blocks/VideoBlock.swift index 12a806d..4f7301b 100644 --- a/CHDataManagement/Generator/Blocks/VideoBlock.swift +++ b/CHDataManagement/Generator/Blocks/VideoBlock.swift @@ -33,6 +33,10 @@ struct VideoBlock: OrderedKeyBlockProcessor { results.missing(file: fileId, source: "Video Block: \(key)") continue } + guard file.type.isVideo else { + invalid(markdown) + continue + } results.require(file: file) let source = Source(file: file, type: sourceType) sources.append(source)