Check video types
This commit is contained in:
parent
dd2b7d6cd2
commit
56ee5cf478
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user