kudos/combine.fm

Sometimes `type` is not returned

Opened this issue · 0 comments

For example, submitting https://play.google.com/music/m/Bjvfq7gmxrxra6rmwkvqwqjbm3i?t=Nighttime_Stories_-_Pelican returns the following payload with no top-level type property (in this case it should be "album"):

artist: {id: 5055, name: "Pelican", streamUrl: null, purchaseUrl: null, artworkSmall: null, artworkLarge: null,…}
artistId: 5055
createdAt: "2019-06-14T15:32:26.596Z"
deletedAt: null
externalId: "Bjvfq7gmxrxra6rmwkvqwqjbm3i"
id: "Bjvfq7gmxrxra6rmwkvqwqjbm3i"
matches: [,…]
name: "Nighttime Stories"
service: "google"
updatedAt: "2019-06-14T15:32:26.596Z"

The URL is then changed to https://combine.fm/google/undefined/Bjvfq7gmxrxra6rmwkvqwqjbm3i which returns Invalid type.

This appears to be the case more frequently when sharing an album for not the first time.