Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main Menu from add-ons like Netflix/Amazon Videos is stuck on screen #47

Closed
ahpatel opened this issue Jan 30, 2019 · 10 comments
Closed

Comments

@ahpatel
Copy link

ahpatel commented Jan 30, 2019

Running into a bug on v18 where the menu from Netflix/Amazon type plugins is overlaid on top of the show selection screen. (screenshots from Netflix provided for clarity).

Once I click into something from the menu on the main level (i.e., New Releases), the shows pop up and can be selected (notice the selection is highlighting the "Great News" show in screenshot 2), but the main Netflix menu stays visible on top.

https://imgur.com/wGyXipO
https://imgur.com/fx76lBE

@loggio
Copy link

loggio commented Jan 31, 2019

You can reproduce this if you open up your tv shows local library, select a show, go into season view, then into episode view.
Then press backspace until you're back in the main menu...

Then launch an addon like YouTube or netflix and the views are overlapped. The only way to fix this is to reload the skin.

It's almost like a caching issue, or that kodi is rendering the view before the addon can tell kodi what the content type is...

I've tried fixing this changing the different variables in the includes.xml
But couldn't figure out what was causing this.

This only happens when transitioning from a local library list to an addons list.

@loggio
Copy link

loggio commented Feb 1, 2019

Interesting as I couldn't reproduce this on android... But my linux/raspberry pi setups do it without fail every time.

I'll try windows and report back.

@ahpatel
Copy link
Author

ahpatel commented Feb 1, 2019 via email

@ahpatel
Copy link
Author

ahpatel commented Feb 1, 2019

@loggio - I also found that the overlay which gets stuck is from the first video addon you open on a Kodi 'first load'. I used Netflix in the first post, but here's a flow that may help narrow down the area of code...

  1. Restart Kodi or reload the skin to start fresh.
  2. Open ESPN3 (or Amazon or some other Video addon) and click into the menu one level deep. (should work as expected without the overlay issue)
  3. Exit out and go into your local library. Click into a show.
  4. Exit out and open up Netflix. Notice that the ESPN3 menu is still the one that's overlaid on top of Netflix.

@loggio
Copy link

loggio commented Feb 1, 2019

Ok...I think i've found the fix.

It's realy quite simple, you just have to tell kodi to reset the path history when exiting MyVideoNav windows using a kodi built in function.

Add this line to MyVideoNav.xml direclty under the < onload > commands at the top.

< onunload >Container.Update(path,replace)</ onunload >

github is being silly and wont copy the code properly, so make sure you remove the spaces inside the < > commands

@ahpatel l, if you get a chance can you please test this fix on your end and report back. I gave it a quick test on my linux machine and it worked fine. Don't have the time to test any further today though.

@ahpatel
Copy link
Author

ahpatel commented Feb 2, 2019

@loggio confirmed working on Windows 10. Thanks for the effort.

@loggio
Copy link

loggio commented Feb 2, 2019

Great, thanks.

@ahpatel
Copy link
Author

ahpatel commented Feb 2, 2019

@loggio the fix has a small side effect...
So, if I'm in TV Shows -> Series -> Episode and watch an episode to completion, it used to take me back to the Episode screen after the episode ended. Now it does this...
https://imgur.com/6EPmXe3
That is, it exits out onto a blank screen with the video section menu (slideout menu from the left side) focused. Hitting back or exit takes me back to the home screen. Removing the container.update code resolves it.

Have you encountered the same thing?

@loggio
Copy link

loggio commented Feb 3, 2019

Ah ok ... Didn't think of that..
remove that line of code... It won't work.

try this instead... and dont forget to remove the spaces between < >
< onload condition="String.Contains(container.folderpath,plugin://)" >Container.SetViewMode(54)< /onload >

Mind you this is a hacky solution.... The real issue i'm guessing is with View type visibility conditions... But there are quite a lot of expressions being used in Pellucid to determin the visibility of certain view types and it's a bit of a nightmare trying to locate the cause of this issue.

I'll have to leave this one with @chrisbevan to fix...

@ahpatel
Copy link
Author

ahpatel commented Feb 3, 2019

That works. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants