The issue is now that we have here nested entries with the property reference which contains then the type. But the count logic checks if the type is a direct child of the entry.
That causes that nested entries without reference are counted too.
Solution: remove the nesting and then check if a reference is existing
Check if this PR fulfills these requirements:
Types of changes
Description
Fixes: #1659
"Lists of all kinds" / "TV show genres" have the "Next page" folder but there are no entries anymore.
This is caused because the
response_count
is higher then therequested size
. https://github.com/CastagnaIT/plugin.video.netflix/blob/1b7dc6fe5166a0ddc5d86f835d33fa4d44d35b7c/resources/lib/services/nfsession/session/path_requests.py#L75-L77After parsing in
VideoListSorted
only two entries are existing, soresponse_count
is counted wrong.The counting happens here: https://github.com/CastagnaIT/plugin.video.netflix/blob/1b7dc6fe5166a0ddc5d86f835d33fa4d44d35b7c/resources/lib/utils/api_paths.py#L319-L330
The response from the api looks like this:![grafik](https://github.com/CastagnaIT/plugin.video.netflix/assets/19800037/068cad35-5f97-4351-a0bd-bd008de8e028)
The issue is now that we have here nested entries with the property
reference
which contains then thetype
. But the count logic checks if thetype
is a direct child of the entry. That causes that nested entries without reference are counted too.Solution: remove the nesting and then check if a reference is existing
Screenshots (if appropriate):
Before:![grafik](https://github.com/CastagnaIT/plugin.video.netflix/assets/19800037/d0ebb6a9-7749-4f45-bcae-b92c5991eee1)
After:![grafik](https://github.com/CastagnaIT/plugin.video.netflix/assets/19800037/6e5a575c-1038-43fc-9027-b677ef74c702)