Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add more audio options #22

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions schema/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const (
AudioPortuguese = "Português"
AudioPortuguese2 = "Portugues"
AudioPortuguese3 = "PT-BR"
AudioPortuguese4 = "Dublado"
AudioEnglish = "Inglês"
AudioEnglish2 = "Ingles"
AudioSpanish = "Espanhol"
Expand All @@ -31,12 +32,14 @@ const (
AudioThai = "Tailandês"
AudioThai2 = "Tailandes"
AudioTurkish = "Turco"
AudioHindi = "Hindi"
)

var AudioList = []Audio{
AudioPortuguese,
AudioPortuguese2,
AudioPortuguese3,
AudioPortuguese4,
AudioEnglish,
AudioEnglish2,
AudioSpanish,
Expand All @@ -60,6 +63,7 @@ var AudioList = []Audio{
AudioThai,
AudioThai2,
AudioTurkish,
AudioHindi,
}

func (a Audio) String() string {
Expand All @@ -83,6 +87,8 @@ func (a Audio) toTag() string {
return "brazilian"
case AudioPortuguese3:
return "brazilian"
case AudioPortuguese4:
return "brazilian"
case AudioEnglish:
return "eng"
case AudioEnglish2:
Expand Down Expand Up @@ -129,6 +135,8 @@ func (a Audio) toTag() string {
return "tha"
case AudioTurkish:
return "tur"
case AudioHindi:
return "hin"
default:
return ""
}
Expand Down
Loading