fixed title lang
This commit is contained in:
parent
caabe20b31
commit
2504dcc85f
@ -18,7 +18,7 @@ const (
|
|||||||
|
|
||||||
func ParseAnimeTitleLang(str string) (AnimeTitleLang, error) {
|
func ParseAnimeTitleLang(str string) (AnimeTitleLang, error) {
|
||||||
lang := AnimeTitleLang(strings.TrimSpace(str))
|
lang := AnimeTitleLang(strings.TrimSpace(str))
|
||||||
switch AnimeTitleLangEnglish {
|
switch lang {
|
||||||
case AnimeTitleLangEnglish:
|
case AnimeTitleLangEnglish:
|
||||||
return lang, nil
|
return lang, nil
|
||||||
case AnimeTitleUserPreferred:
|
case AnimeTitleUserPreferred:
|
||||||
@ -33,7 +33,7 @@ func ParseAnimeTitleLang(str string) (AnimeTitleLang, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (atl AnimeTitleLang) GetTitle(anime *anilist.Media) string {
|
func (atl AnimeTitleLang) GetTitle(anime *anilist.Media) string {
|
||||||
switch AnimeTitleLangEnglish {
|
switch atl {
|
||||||
case AnimeTitleLangEnglish:
|
case AnimeTitleLangEnglish:
|
||||||
return anime.Title.English
|
return anime.Title.English
|
||||||
case AnimeTitleUserPreferred:
|
case AnimeTitleUserPreferred:
|
||||||
|
Loading…
Reference in New Issue
Block a user