mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
17 lines
298 B
Go
17 lines
298 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"strings"
|
|
)
|
|
|
|
func NoArticle(name string) string {
|
|
articles := strings.Split(beego.AppConfig.String("ignoredArticles"), " ")
|
|
for _, a := range articles {
|
|
n := strings.TrimPrefix(name, a+" ")
|
|
if n != name {
|
|
return n
|
|
}
|
|
}
|
|
return name
|
|
}
|