Simplify images, tag overview
This commit is contained in:
@ -50,12 +50,19 @@ struct AudioPlayerCommandProcessor: CommandProcessor {
|
||||
results.missing(file: song.cover, containedIn: file)
|
||||
continue
|
||||
}
|
||||
guard image.type.isImage else {
|
||||
results.warning("Cover '\(song.cover)' in file \(fileId) is not an image file")
|
||||
continue
|
||||
}
|
||||
|
||||
guard let audioFile = content.file(song.file) else {
|
||||
results.missing(file: song.cover, containedIn: file)
|
||||
continue
|
||||
}
|
||||
#warning("Check if file is audio")
|
||||
guard audioFile.type.isAudio else {
|
||||
results.warning("Song '\(song.file)' in file \(fileId) is not an audio file")
|
||||
continue
|
||||
}
|
||||
let coverUrl = image.absoluteUrl
|
||||
|
||||
let playlistItem = AudioPlayer.PlaylistItem(
|
||||
|
@ -106,7 +106,8 @@ struct PageHtmlProcessor: CommandProcessor {
|
||||
results.warning("Failed to find <source> elements in inline HTML: \(error)")
|
||||
return
|
||||
}
|
||||
|
||||
checkSourceSetAttributes(sources: sources)
|
||||
checkSourceAttributes(sources: sources)
|
||||
}
|
||||
|
||||
private func checkSourceSetAttributes(sources: [Element]) {
|
||||
|
Reference in New Issue
Block a user