有没有办法获取车站的所有轨道?
Is there a way to fetch all the tracks of a station?
现在我正在使用 Playback.current
查询来获取 TrackItem 中的曲目。每次我点击查询时,我都会得到下一个索引的不同轨迹。而不是每次 运行 查询,是否有某种方法可以获取所有车站的轨道?谢谢
Pandora stations are dynamic in nature. There is no fixed set of tracks for a station. The API allows you to see the current track and the next track (via calls to peek),但即使在您偷看之后下一首曲目也可能会发生变化。例如,如果有人对当前曲目提供反馈(喜欢或不喜欢),则可能会更改下一首曲目。
您可能正在考虑确实是一组固定曲目的播放列表。所有 Pandora 听众都可以欣赏电台,但播放列表通常限制为 Pandora Premium subscribers (though listeners who don't have Premium can still access playlist through Premium Sessions)。
如果您知道播放列表的 ID 并且想要获取该播放列表的所有曲目,您可以使用“entity”查询来查找曲目列表:
query {
entity(id: "PL:88551012:1742630896") {
... on Playlist {
name
items {
playlistItems {
entity {
... on Track {
name
artist {
name
}
}
}
}
}
}
}
}
我在上面的示例中使用了 Highway Finds,但显然您可以插入其他播放列表 ID(即以“PL:”开头的 ID)。
这是否回答了您的问题?
现在我正在使用 Playback.current
查询来获取 TrackItem 中的曲目。每次我点击查询时,我都会得到下一个索引的不同轨迹。而不是每次 运行 查询,是否有某种方法可以获取所有车站的轨道?谢谢
Pandora stations are dynamic in nature. There is no fixed set of tracks for a station. The API allows you to see the current track and the next track (via calls to peek),但即使在您偷看之后下一首曲目也可能会发生变化。例如,如果有人对当前曲目提供反馈(喜欢或不喜欢),则可能会更改下一首曲目。
您可能正在考虑确实是一组固定曲目的播放列表。所有 Pandora 听众都可以欣赏电台,但播放列表通常限制为 Pandora Premium subscribers (though listeners who don't have Premium can still access playlist through Premium Sessions)。
如果您知道播放列表的 ID 并且想要获取该播放列表的所有曲目,您可以使用“entity”查询来查找曲目列表:
query {
entity(id: "PL:88551012:1742630896") {
... on Playlist {
name
items {
playlistItems {
entity {
... on Track {
name
artist {
name
}
}
}
}
}
}
}
}
我在上面的示例中使用了 Highway Finds,但显然您可以插入其他播放列表 ID(即以“PL:”开头的 ID)。
这是否回答了您的问题?