fix: unable to collect information about albums with more than 300 tracks

This commit is contained in:
世界观察日志
2025-06-24 18:43:41 +08:00
parent 81b023e85c
commit 5d25210432

View File

@@ -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
} }