Fix pls ignoring
This commit is contained in:
@@ -19,6 +19,8 @@ func init() {
|
|||||||
".shn": "audio/x-shn",
|
".shn": "audio/x-shn",
|
||||||
".aif": "audio/x-aiff",
|
".aif": "audio/x-aiff",
|
||||||
".aiff": "audio/x-aiff",
|
".aiff": "audio/x-aiff",
|
||||||
|
".m3u": "audio/x-mpegurl",
|
||||||
|
".pls": "audio/x-scpls",
|
||||||
".gif": "image/gif",
|
".gif": "image/gif",
|
||||||
".jpg": "image/jpeg",
|
".jpg": "image/jpeg",
|
||||||
".jpeg": "image/jpeg",
|
".jpeg": "image/jpeg",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import (
|
|||||||
|
|
||||||
var excludeAudioType = []string{
|
var excludeAudioType = []string{
|
||||||
"audio/x-mpegurl",
|
"audio/x-mpegurl",
|
||||||
|
"audio/x-scpls",
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsAudioFile(filePath string) bool {
|
func IsAudioFile(filePath string) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user