question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Lists] Max. 26 entries per list are present

See original GitHub issue

I´ve restricted the number of fetched entries to be 21 see: https://github.com/asciidisco/plugin.video.netflix/blob/master/resources/lib/NetflixSession.py#L1363

Of course that number isn’t well thought through, I´ll bump it to 70 and see how much of an impact that has on response times. Maybe a pagination is needed, which in the end would brake some of Kodis functionality in sorting items. But first, lets give the bumped number of entries a try.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
asciidiscocommented, Aug 22, 2017

Actually I don’t like the idea of paginating (as long as Kodi doesn’t come with a proper API/View for that, as I don’t like the idea of hacking around it using folder items) components.

The idea I´ve sketched to solve this problem is the following: When the main menu (after the profiles) gets fetched, you get the size of the sublists, using that size (and the knowledge that we can grep max. 26 entries per list) we can determine how many requests we need to do (with which ranges) to determine the exact requests to be made upfront. I´d like to also do those requests in separate thread, e.g. in parallel, so that we have everything in one list (without pagination) & only have a few hundred milliseconds on top.

Why isn’t that implemented yet? Because I don’t have time to do so, if anyone wants to give it a spin, I´m happy to take the contribution.

1reaction
bhaal2commented, Aug 21, 2017

I think the old flix2kodi or the older netflix plugin which used Chrome to play the videos had a way of paginating the output of lists. I think it worked by presenting it to Kodi as sub directories etc…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get max value from a list with lists? - python - Stack Overflow
This approach assumes that there is exactly one numeric value per list! One more example using a list where the numeric value is...
Read more >
Lists and Tuples in Python - Real Python
Lists Are Ordered; Lists Can Contain Arbitrary Objects; List Elements Can Be Accessed by Index ... Each of these features is examined in...
Read more >
The number of items in this list exceeds the list view threshold
This article describes The number of items in this list exceeds the list view threshold error, and provides a solution.
Read more >
Python Data Type: List - Exercises, Practice, Solution
Practice with solution of exercises on Python Data Types: examples on List, variables, date, operator, simple html form and more from ...
Read more >
8. List Comprehension | Advanced - Python Courses eu
List comprehension is an elegant way to define and create lists in Python. ... There are lots of double entries contained in this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found