Merge pull request #69 from WorldObservationLog/main

fix: unable to collect information about albums with more than 300 tracks
This commit is contained in:
ZHAAREY
2025-06-24 19:15:56 +08:00
committed by GitHub

View File

@@ -356,6 +356,7 @@ func getMeta(albumId string, token string, storefront string) (*structs.AutoGene
}
if strings.Contains(albumId, "pl.") {
obj.Data[0].Attributes.ArtistName = "Apple Music"
}
if len(obj.Data[0].Relationships.Tracks.Next) > 0 {
next = obj.Data[0].Relationships.Tracks.Next
for {
@@ -388,7 +389,6 @@ func getMeta(albumId string, token string, storefront string) (*structs.AutoGene
}
}
}
}
return obj, nil
}