fix atmos-max
This commit is contained in:
parent
f8a79ed17c
commit
dccaca5376
8
main.go
8
main.go
@ -1560,7 +1560,13 @@ func extractMedia(b string) (string, error) {
|
||||
fmt.Printf("Debug: Found Dolby Atmos variant - %s (Bitrate: %d kbps)\n",
|
||||
variant.Audio, variant.Bandwidth/1000)
|
||||
}
|
||||
if int(variant.Bandwidth)/1000 <= Config.AtmosMax {
|
||||
split := strings.Split(variant.Audio, "-")
|
||||
length := len(split)
|
||||
length_int, err := strconv.Atoi(split[length-1])
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if length_int <= Config.AtmosMax {
|
||||
if !debug_mode {
|
||||
fmt.Printf("%s\n", variant.Audio)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user