HenrikDK/youtube-xbmc-plugin — pull request #18 by jmbreuer (2013-08-24 08:37:17+00:00)
Title: Allow >50 results per (channel) video list page, by fetching multiple chunks per page

YouTube limits the number of videos per channel list result page to 50.

This is cumbersome for channels with a large number of videos, i.e. the 'TEDtalksDirector' "uploaded videos" list of almost 1500 videos - they're broken down into 30 pages [which due to the way XBMC works all have to be individually set to the preferred style and sorted by date].

Since I wanted a "couch-compatible" solution to watching the TED talks in chronological order, I took a look at this and implemented a patch that aggregates up to 500 videos into a single video list page, by concatenating the data from multiple YouTube result pages.

This code has been in "production use" here for about 4 months already, I only just found the "new" plugin source repo to submit the patch to.

Again, sorry for "code quality"; just tell me what/how should be cleaned up.