mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
fix: unable to collect information about albums with more than 300 tracks
This commit is contained in:
2
main.go
2
main.go
@@ -356,6 +356,7 @@ func getMeta(albumId string, token string, storefront string) (*structs.AutoGene
|
|||||||
}
|
}
|
||||||
if strings.Contains(albumId, "pl.") {
|
if strings.Contains(albumId, "pl.") {
|
||||||
obj.Data[0].Attributes.ArtistName = "Apple Music"
|
obj.Data[0].Attributes.ArtistName = "Apple Music"
|
||||||
|
}
|
||||||
if len(obj.Data[0].Relationships.Tracks.Next) > 0 {
|
if len(obj.Data[0].Relationships.Tracks.Next) > 0 {
|
||||||
next = obj.Data[0].Relationships.Tracks.Next
|
next = obj.Data[0].Relationships.Tracks.Next
|
||||||
for {
|
for {
|
||||||
@@ -388,7 +389,6 @@ func getMeta(albumId string, token string, storefront string) (*structs.AutoGene
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return obj, nil
|
return obj, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user