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

Getting Focus Back from ExtendedInfo #58

Open
Hiltronix opened this issue Feb 19, 2017 · 4 comments
Open

Getting Focus Back from ExtendedInfo #58

Hiltronix opened this issue Feb 19, 2017 · 4 comments

Comments

@Hiltronix
Copy link
Contributor

Hi Phil,

I'm hoping you can suggest the best way to get focus back from extendedinfo, once extendedinfo runs another script.

In "DialogTVShowInfo.py" line 135, the "Manage" button opens a dialog.select menu to do a RunPlugin of my addon named "plugin.video.sickrage", when "Add to Sickbeard" is selected. After my addon has focus, only menu and input dialogs can be visible. If I open a DialogVideoInfo of my own using the new API call "xbmcgui.Dialog.info()", it doesn't get focus cause extendedinfo retains focus at this level.

Can you suggest how best to handle this? Is there some way I can force extendinfo to exit, or force my DialogVideoInfo window (created from "xbmcgui.Dialog.info()") to the top?

Thank you for any advice you can offer on this subject.

@phil65
Copy link
Owner

phil65 commented Feb 20, 2017

Why would you want to show DialogVideoInfo on top of the script windows?

@Hiltronix
Copy link
Contributor Author

Extendedinfo passes back the title. The title alone doesn't guarantee the exact show. Sometimes there are more than one show with the same title. Sickrage displays a list of possible shows based on the title. I added a feature to show the DialogVideoInfo of each of the possible shows so the user can preview to make sure they are selecting the show name they intend.

Since you are asking why I want to, does that mean what I'm asking isn't possible?

The other option is to be passed the TVdb ID number, so I know for certain it is the exact show, then no user confirmation would be required. But it looks like extendedinfo uses TMdb, which I'm currently not.

@phil65
Copy link
Owner

phil65 commented Feb 20, 2017

Could you give this here a try?
a878e96

@Hiltronix
Copy link
Contributor Author

Hiltronix commented Feb 20, 2017

That solves the problem. Thank you.

Can you tell me why it's conditional based on dbid not having a value? As it stands it only appears as an option in the menu list on some TV shows, not for all TV shows. It would make more sense to me to be conditional on tvdb_id having a value.

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