Exclude a few more tags
This commit is contained in:
parent
dc1fdd5dcd
commit
774bbbd97a
|
@ -388,31 +388,45 @@ func (t Tags) getFloat(tagNames ...string) float64 {
|
|||
|
||||
// We exclude all tags that are already first-class citizens in the model
|
||||
var excludedTags = map[string]struct{}{
|
||||
"duration": {},
|
||||
"bitrate": {},
|
||||
"channels": {},
|
||||
"bpm": {},
|
||||
"has_picture": {},
|
||||
"title": {},
|
||||
"album": {},
|
||||
"artist": {},
|
||||
"artists": {},
|
||||
"albumartist": {},
|
||||
"albumartists": {},
|
||||
"track": {},
|
||||
"tracknumber": {},
|
||||
"tracktotal": {},
|
||||
"totaltracks": {},
|
||||
"disc": {},
|
||||
"discnumber": {},
|
||||
"disctotal": {},
|
||||
"totaldiscs": {},
|
||||
"lyrics": {},
|
||||
"year": {},
|
||||
"date": {},
|
||||
"originaldate": {},
|
||||
"releasedate": {},
|
||||
"comment": {},
|
||||
"duration": {},
|
||||
"length": {},
|
||||
"tlen": {},
|
||||
"bitrate": {},
|
||||
"channels": {},
|
||||
"has_picture": {},
|
||||
"apic": {},
|
||||
"bpm": {},
|
||||
"tbpm": {},
|
||||
"tipl": {},
|
||||
"tcom": {},
|
||||
"tit2": {},
|
||||
"talb": {},
|
||||
"tcon": {},
|
||||
"tpe1": {},
|
||||
"tpe2": {},
|
||||
"title": {},
|
||||
"album": {},
|
||||
"artist": {},
|
||||
"artists": {},
|
||||
"albumartist": {},
|
||||
"albumartists": {},
|
||||
"composer": {},
|
||||
"track": {},
|
||||
"tracknumber": {},
|
||||
"tracktotal": {},
|
||||
"totaltracks": {},
|
||||
"disc": {},
|
||||
"discnumber": {},
|
||||
"disctotal": {},
|
||||
"totaldiscs": {},
|
||||
"year": {},
|
||||
"date": {},
|
||||
"originaldate": {},
|
||||
"releasedate": {},
|
||||
"comm": {},
|
||||
"comment": {},
|
||||
"comment:itunnorm": {},
|
||||
"uslt": {},
|
||||
}
|
||||
|
||||
// Also exclude any tag that starts with one of these prefixes
|
||||
|
@ -420,6 +434,7 @@ var excludedPrefixes = []string{
|
|||
"musicbrainz",
|
||||
"replaygain",
|
||||
"sort",
|
||||
"lyrics",
|
||||
}
|
||||
|
||||
func isExcludedTag(tagName string) bool {
|
||||
|
|
Loading…
Reference in New Issue