2020-05-03, 20:57
(2020-05-03, 00:34)teriyaki Wrote:Just had a crack at it, and cant really make much sense of it all. Changing the '50's to '500' did nothing, it'd still tell me there were 51 videos.(2020-05-02, 23:08)PaulC2K Wrote: Does anyone know if (& how) its possible to increase the number of items per page, beyond the default 50 limit.It looks like there are a couple places where 50 is hardcoded in addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py. I know little python but it looks pretty simple to work around.
I've modified the settings.xml file to add |100|200 options, which then shows up as options within Kodi, but it still only shows 50 per page, so its purely a cosmetic change, it isnt being used as a value.
The weird thing is that ive found a solution, and i think i understand why its happening this way.
\Roaming\Kodi\addons\plugin.video.youtube\resources\settings.xml
<setting id="kodion.content.max_per_page" type="enum" label="30022" values="5|10|15|20|25|30|35|40|45|50 default="9" />
Simply adding "|100" onto the list didnt make it 100 items per page. However what i never noticed last night because it so clearly wasnt double what i was used to, was that Kodi was telling me it was showing 56 items, where normally it'd say 51. That line in settings.xml is apparently doing nothing more than telling Kodi what to show as values, but Kodi isnt actually reading that value and using it. The add-on appears to be hard-coded to the point that each value increases by 5. So entry 0 = 5, entry 9=50, and if i add 100 entries, it'll give me 500 videos per page.
So while the actual value used isnt important, every value increases the limit by 5.
Loading 250 ipp is definitely slower than 50, maybe 3 times slower. I'd hoped it might be marginally slower, as typical day-to-day use i dont really want it to take 10sec to load 250 results if i only care about the last handful added. At least i know i can put it back to 50 or move it to 250, depending on what i want at the time, so its certainly better having that option available now.
Thanks for your help.
edit: turns out the above isnt possible. When trying to view subbed channels it errors saying 50 is the limit, so its back to 50