JQuery: Merge multiple JSON results

后端 未结 3 464
离开以前
离开以前 2021-01-13 19:30

Situation: User want to import Youtube playlist in a JQuery site using Youtube\'s JSON API.

Problem: Youtube only gives back first

3条回答
  •  星月不相逢
    2021-01-13 19:54

    I cannot post any comments yet because of my reputation. But shouldn't you make the increment of + 50 variable, using count(responseData.data.items), to cover for changes in the YouTube API?

    I know the JSON request is called with max-results=50, but they could start limiting this to a lower number of items.

提交回复
热议问题