Skip to content

Commit

Permalink
DownloadLanguages
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Nov 4, 2024
1 parent b8cdbb6 commit 5b45b03
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tgzebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ var (
TgUpdateLog []int64
TgZeChatId int64

TgMaxFileSizeBytes int64 = 48 << 20
TgAudioBitrateKbps int64 = 50
DownloadLanguages []string = []string{"english", "german", "russian", "ukrainian"}
TgMaxFileSizeBytes int64 = 47 << 20
TgAudioBitrateKbps int64 = 60

FfmpegPath string = "./ffmpeg"
FfmpegGlobalOptions = []string{"-v", "error"}
DownloadLanguages []string

FfmpegPath string
FfmpegGlobalOptions []string

TgCommandChannels string
TgCommandChannelsPromoteAdmin string
Expand Down Expand Up @@ -271,6 +272,10 @@ func init() {
FfmpegGlobalOptions = strings.Split(v, " ")
}

if v := GetVar("DownloadLanguages"); v != "" {
DownloadLanguages = strings.Split(v, " ")
}

for _, s := range strings.Split(GetVar("TgAllChannelsChatIds"), " ") {
if i, err := strconv.ParseInt(s, 10, 0); err != nil {
log("WARNING invalid TgAllChannelsChatIds: %v", err)
Expand Down

0 comments on commit 5b45b03

Please sign in to comment.