Skip to content

Commit

Permalink
Don't break if the search query is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Porter committed Nov 28, 2014
1 parent c82f4b6 commit 9ba6971
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin.video.giantbomb/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,14 @@ def search(query=None, page='0'):

page = int(page)

if query is None:
if not query:
keyboard = xbmc.Keyboard('', 'Search', False)
keyboard.doModal()
if keyboard.isConfirmed():
query = keyboard.getText()
else:
xbmc.executebuiltin('Action(ParentDir)')
return
if not query:
xbmc.executebuiltin('Action(ParentDir)')
return

data = gb.query('search', { 'resources': 'video', 'query': query,
'offset': page*100 })
Expand Down

0 comments on commit 9ba6971

Please sign in to comment.