moreginger / xbmc-plugin.video.ted.talks

GNU General Public License v2.0
18 stars 20 forks source link

New scraper for speakers #46

Closed moreginger closed 10 years ago

moreginger commented 10 years ago

Speakers used to be presented by first letter of surname, but TED site refresh of 201403 has made speakers non-filterable in this manner (AFAICT) - though they are sortable by surname. To restore this functionality in an efficient way (i.e. without fetching up to 49+ pages from TED) would require a moderately non-trivial paging algorithm.

Before fixing this I need to consider the best way to present the speaker data. If you need to find a particular speaker there is search now, otherwise there seems little value to browsing speakers by letter except insofar as it breaks the list into manageable chunks. Perhaps it is better to mirror the speaker filters that TED makes available (Topic/Event)? Or maybe just a single flat list with multiple paging options? Perhaps there is little need for this feature now that there is search. At the end of the day, I'd rather people browsed on the TED site - this plugin is primarily a means to get a talk showing on your media centre.

moreginger commented 10 years ago

Settled on generating a series of brackets for the number of pages, each bracket is 4 pages long. This lets the user enter into the list at a point of their choosing.

After that, the user can page through at the end of each page (perhaps page up would be useful too, but that's what it is for now :)).