2010-09-17 26 views
12

我想从Youtube API获取正式电影预告片,但很难获得一致的结果。如何使用Youtube API指定电影预告片

我似乎是使用以下网址获得最接近:

 
http://gdata.youtube.com/feeds/api/videos/-/MOVIE-TITLE?max-results=1 

有时候效果很好:

http://gdata.youtube.com/feeds/api/videos/-/The-A-Team?max-results=1

其他时候,没有得到很好的,例如:

gdata.youtube.com/feeds/api/videos/-/The-Twilight-Saga:-Eclipse-[DVD]-The-Twilight-Saga:-Eclipse?max-results=1

我想知道是否有人知道指定官方电影预告片的好方法?我宁愿没有匹配比不相关的;)

回答

8

如果你添加“-trailer”到MOVIE-TITLE你应该得到更好的结果。

+0

看起来像它的弃用。其他解决方案? – 2016-06-17 13:17:38

相关问题