2

How do I get a link to a specific episode of a TV show in the iTunes store? I have the name of the show*, the season, and episode number. From the documentation, I've found that I can get a list of episodes, and then parse the JSON to find the episode and its iTunes links.

However, the documentation also says that one should avoid making too many or too big requests (e.g. by using the limit parameter), so I'm wondering if there is a better way to directly get the desired episode link, without fetching and parsing a potentially huge list of episodes.


*) In case the season name is ambiguous, I have the TVDB data, and can also specify a 'canonical' name if neccessary.

4

1 に答える 1

1

Search API には、返されるコンテンツを限定するのに役立ついくつかのパラメーターがあります。

ショーのタイトルを「用語」として使用する必要があるようです。

https://itunes.apple.com/search?term=Jersey+Shore&attribute=tvSeasonTerm&entity=tvEpisode

「attribute=tvSeason」を追加すると、用語が TV 番組のタイトルのみに一致し、iTunes ストア内の他のメタデータ (音楽、映画、アプリなどを含む) に一致しないことが保証されます。

また、「entity=tvEpisode」を追加すると、(デフォルトで) シーズン情報だけでなく、エピソードのみを返したいことを API に示します。

于 2013-01-30T05:06:30.803 に答える