asciidisco / plugin.video.netflix

Inputstream based Netflix plugin for Kodi
MIT License
1.23k stars 225 forks source link

Show only 40 films max in anything categories #609

Open wallon-ines opened 5 years ago

wallon-ines commented 5 years ago

I'm submitting a ...

General infomration

Prerequisites

Description

This plugin show only 40 films max in anything categories

Steps to Reproduce

Go to the Comedy or Action category for example

Context (Environment)

Installation

Operating System

Additional informatin on the environment

I'm using Fedora 29 with official kodi for Fedora (rpmfusion repo) I tried latest too kodi from xbmc repo from master branch

Debug log

08:37:48.766 T:140048867514112   DEBUG: StartScript - calling plugin Netflix('plugin://plugin.video.netflix/','1','?action=video_list&video_list_id=e0e7358a-80c4-4646-858e-c078570413fb_31894637X28X6548X1547972462091','resume:false')
08:37:48.769 T:140047340795648   DEBUG: [Netflix] Started (Version 0.13.21)
08:37:48.769 T:140047340795648   DEBUG: [Netflix] "Navigation::router" called with arguments :paramstring = action=video_list&video_list_id=e0e7358a-80c4-4646-858e-c078570413fb_31894637X28X6548X1547972462091:
08:37:48.769 T:140047340795648   DEBUG: [Netflix] "Navigation::before_routing_action" called with arguments :params = {'action': 'video_list', 'video_list_id': 'e0e7358a-80c4-4646-858e-c078570413fb_31894637X28X6548X1547972462091'}:
08:37:48.770 T:140046829557504   DEBUG: [Netflix] Loading cookies from memory
08:37:49.203 T:140046829557504   DEBUG: [Netflix] [GET] Req. for "https://www.netflix.com/profiles/manage" took 0.432865858078 sec
08:37:49.203 T:140046829557504   DEBUG: [Netflix] Parsing inline data...
08:37:49.215 T:140046829557504   DEBUG: [Netflix] Parsing inline data parsing successfull
08:37:49.220 T:140047340795648   DEBUG: [Netflix] "Navigation::before_routing_action" returned: {}
08:37:49.263 T:140047340795648   DEBUG: [Netflix] Fetched item from cache: (cache_id=list_to=26&list_from=0&list_id=e0e7358a-80c4-4646-858e-c078570413fb_31894637X28X6548X1547972462091&guid=ER5RMRDXOVCAJNPYL2G45TGIKI&method=fetch_video_list)
08:37:49.304 T:140047340795648   DEBUG: [Netflix] Fetched item from cache: (cache_id=list_to=53&list_from=27&list_id=e0e7358a-80c4-4646-858e-c078570413fb_31894637X28X6548X1547972462091&guid=ER5RMRDXOVCAJNPYL2G45TGIKI&method=fetch_video_list)
08:37:49.464 T:140046829557504   DEBUG: [Netflix] [POST] Req. for "https://www.netflix.com/api/shakti/ve24f6569/pathEvaluator" took 0.0779500007629 sec
08:37:49.551 T:140047340795648   DEBUG: [Netflix] "Navigation::router" returned: True
08:37:52.658 T:140048540362496   DEBUG: StartScript - calling plugin Netflix('plugin://plugin.video.netflix/','1','?action=user-items&type=genres','resume:false')
08:37:52.661 T:140047340795648   DEBUG: [Netflix] Started (Version 0.13.21)
08:37:52.661 T:140047340795648   DEBUG: [Netflix] "Navigation::router" called with arguments :paramstring = action=user-items&type=genres:
08:37:52.661 T:140047340795648   DEBUG: [Netflix] "Navigation::before_routing_action" called with arguments :params = {'action': 'user-items', 'type': 'genres'}:
08:37:52.662 T:140046829557504   DEBUG: [Netflix] Loading cookies from memory
08:37:52.935 T:140046829557504   DEBUG: [Netflix] [GET] Req. for "https://www.netflix.com/profiles/manage" took 0.273143053055 sec
08:37:52.935 T:140046829557504   DEBUG: [Netflix] Parsing inline data...
08:37:52.943 T:140046829557504   DEBUG: [Netflix] Parsing inline data parsing successfull
08:37:52.946 T:140047340795648   DEBUG: [Netflix] "Navigation::before_routing_action" returned: {'main_menu_selection': 'genres'}
08:37:52.990 T:140047340795648   DEBUG: [Netflix] Fetched item from cache: (cache_id=guid=ER5RMRDXOVCAJNPYL2G45TGIKI&method=fetch_video_list_ids)
08:37:53.302 T:140047340795648   DEBUG: [Netflix] "Navigation::router" returned: True

Screenshots

capture d ecran_2019-01-20_09-29-06

capture d ecran_2019-01-20_09-22-31

CastagnaIT commented 5 years ago

in 13.21, from how I seem to have seen in the code, has not been implemented support to get more than 40/50 results per menu.

in 14.0, there is a mistake in perpetual_path_request(), nfsession.py the lenght readed (in path_response) is wrong takes the value of lenght of "My List" (at least in the case of originalNetflix list) so instead of making other requests to get the full list, it stops at 40. I'm not currently an expert, i have not yet been able to find where to get the value of the requested list length