chrisbevan / skin.pellucid

A skin for Kodi by theDeadMan
Other
47 stars 44 forks source link

Does not display menus for Netflix add-on #61

Open mooninite opened 3 years ago

mooninite commented 3 years ago

Netflix Add-on: https://github.com/CastagnaIT/plugin.video.netflix Skin version: git master Kodi: 19 RC1

Once logged in no menu is displayed. The "loading" animation is displayed forever. If the "back" button is pressed the Netflix menu is seen for a brief millisecond.

No issues with the stock Kodi skin. The menus load and I can play videos.

The add-on first loads a "profile" list as large icon directories. I tried hard setting a profile to skip this menu, but it didn't help.

This issue has existed for quite a while, but I am reporting it now.

Edit: I found a workaround. My "normal" way of running the add-on is navigating to the Video Add-on menu, which displays all of my video add-ons, and selecting the Netflix add-on. Selecting it is what is going into an infinite loading screen. Instead of selecting the add-on, I can open a context menu, select "Information", and then select "Launch Add-on" and the correct Netflix menu appears. I can select other Netflix menu options and play videos at this point.

mooninite commented 3 years ago

The workaround no longer works with Kodi 19.1. The "Launch Add-on" menu option can no longer be selected. Pressing Enter/Spacebar or any key does not execute the button.

I now have to switch skins to use add-ons that Pellucid does not run.

mooninite commented 3 years ago

I fixed the Add-on Information dialog so the workaround works again. I'm not sure why, but you have two "Launch addon" controls in 1080i/DialogAddonInfo.xml. The current code calls SendClick(146,13) that tries to send a control to a radiobutton ("13"). The fix is to call SendClick(146.12) instead, which calls the button ("12").

mooninite commented 2 years ago

I've narrowed this problem down to a bad dialog in this skin. There are two ways of starting this add-on and the behavior is different and I wish I knew why.

  1. Starting the addon via the Video Add-ons list tries to display the "Profiles" list inside the Netflix addon. The content type is "images" and the Pellucid theme can no longer display this type. The dialog never displays anything and you're stuck at a loading animation forever. That's why this start-up method does not work.
  2. Starting the addon via the Addon Info dialog jumps into the "Main Menu" list. The content type is "files" so the Pellucid theme knows how to display it.

Workaround: Modify Includes.xml to comment out the "isPhotoAlbum" expression and place container.content(images) into the list of "isVideoList" expression.

The workaround makes starting the add-on from the Video Addons work. However, the profiles list should actually be bypassed. The Netflix addon supports setting an "automatic profile" so you do not have to select it each time you start the addon. This behavior works through the Addon Info dialogue but not from the MyVideoNav dialog. I'm not sure how the add-on is called differently between the two dialogues.