a4k-openproject / script.extendedinfo

GNU General Public License v3.0
6 stars 2 forks source link

[Feature Request] #21

Open diabl0w opened 4 years ago

diabl0w commented 4 years ago

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 https://github.com/OmerTu/GoogleHomeKodi/issues/263#issuecomment-566369505