mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
fix atmos-max
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user