From e994ee109d127a455165d54673724691fe16765c Mon Sep 17 00:00:00 2001 From: Felipe Marinho Date: Mon, 18 Nov 2024 18:56:39 -0300 Subject: [PATCH] Fix: Use "brazilian" as language tag (#17) --- schema/audio.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schema/audio.go b/schema/audio.go index b1fa270..6f7d8b7 100644 --- a/schema/audio.go +++ b/schema/audio.go @@ -59,7 +59,7 @@ var AudioList = []Audio{ } func (a Audio) String() string { - return a.toISO639_2() + return a.toTag() } func GetAudioFromString(s string) *Audio { @@ -71,12 +71,12 @@ func GetAudioFromString(s string) *Audio { return nil } -func (a Audio) toISO639_2() string { +func (a Audio) toTag() string { switch a { case AudioPortuguese: - return "por" + return "brazilian" case AudioPortuguese2: - return "por" + return "brazilian" case AudioEnglish: return "eng" case AudioEnglish2: