Ignore "Cover (front)" tag when using ffmpeg extractor

This commit is contained in:
Deluan
2020-11-12 23:17:06 -05:00
parent 153cf8f5af
commit 7efc32d136
2 changed files with 22 additions and 0 deletions
+7
View File
@@ -22,6 +22,13 @@ func (m *ffmpegMetadata) HasPicture() bool {
return m.getTag("has_picture", "metadata_block_picture") != ""
}
func (m *ffmpegMetadata) DiscNumber() (int, int) { return m.parseTuple("tpa", "disc", "discnumber") }
func (m *ffmpegMetadata) Comment() string {
comment := m.baseMetadata.Comment()
if comment == "Cover (front)" {
return ""
}
return comment
}
type ffmpegExtractor struct{}