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

[Feature Request] #21

Open
diabl0w opened this issue Jan 5, 2020 · 0 comments
Open

[Feature Request] #21

diabl0w opened this issue Jan 5, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@diabl0w
Copy link

diabl0w commented Jan 5, 2020

Is your feature request related to a problem? Please describe.
It would be great to be able to pass a search string directly as a parameter when using OpenInfos search feature. By default OpenInfo just opens a virtual keyboard to query a search string.

Describe the solution you'd like
Current code has:

elif info == 'search_menu':
			search_str = xbmcgui.Dialog().input(heading='Enter search string', type=xbmcgui.INPUT_ALPHANUM)
			return wm.open_video_list(search_str=search_str, mode='search')

it would be nice if we can do something like

elif info == 'search_menu':
    if params.get('string'):
	search_str = params['string']
    else:
        search_str = xbmcgui.Dialog().input(heading='Enter search string', type=xbmcgui.INPUT_ALPHANUM)
    return wm.open_video_list(search_str=search_str, mode='search')

Additional context
OmerTu/GoogleHomeKodi#263 (comment)

@diabl0w diabl0w added the enhancement New feature or request label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant