def do_search(self, what):
     if what == '':
         what = client.getTextInput(self.session, xbmcutil.__lang__(30003))
     if not what == '':
         maximum = 20
         try:
             maximum = int(self.settings['keep-searches'])
         except:
             util.error('Unable to parse convert addon setting to number')
             pass
         xbmcutil.add_search(self.addon, self.provider.name, what, maximum)
         self.search(what)
Exemple #2
0
 def do_search(self, what):
     if what == '':
         what = client.getTextInput(self.session, xbmcutil.__lang__(30003))
     if not what == '':
         maximum = 20
         try:
             maximum = int(self.settings['keep-searches'])
         except:
             util.error('Unable to parse convert addon setting to number')
             pass
         xbmcutil.add_search(self.addon, self.provider.name, what, maximum)
         self.search(what)
Exemple #3
0
def _search(session,addon,history,what,update_history,callback):
	if what == '':
		what = client.getTextInput(session,xbmcutil.__lang__(30003))
	if not what == '':
		maximum = 20
		try:
			maximum = int(addon.get_setting('keep-searches'))
		except:
			util.error('Unable to parse convert addon setting to number')
			pass
		if update_history:
			xbmcutil.add_search(addon,history,what,maximum)
		callback(what)
Exemple #4
0
def _search(session, addon, history, what, update_history, callback):
    if what == '':
        what = client.getTextInput(session, xbmcutil.__lang__(30003))
    if not what == '':
        maximum = 20
        try:
            maximum = int(addon.get_setting('keep-searches'))
        except:
            util.error('Unable to parse convert addon setting to number')
            pass
        if update_history:
            xbmcutil.add_search(addon, history, what, maximum)
        callback(what)
Exemple #5
0
 def do_search(self,what):
     if what == '' or what == '#':
         kb = xbmc.Keyboard('',xbmcutil.__lang__(30003),False)
         kb.doModal()
         if kb.isConfirmed():
             what = kb.getText()
     if not what == '':
         maximum = 20
         try:
             maximum = int(self.settings['keep-searches'])
         except:
             util.error('Unable to parse convert addon setting to number')
             pass
         xbmcutil.add_search(self.addon,self.provider.name,what,maximum)
         self.search(what)
def _search(addon, history, what, update_history, callback):
    if what == '' or what == '#':
        kb = xbmc.Keyboard('', xbmcutil.__lang__(30003), False)
        kb.doModal()
        if kb.isConfirmed():
            what = kb.getText()
    if not what == '':
        maximum = 20
        try:
            maximum = int(addon.getSetting('keep-searches'))
        except:
            util.error('Unable to parse convert addon setting to number')
            pass
        if update_history:
            xbmcutil.add_search(addon, history, what, maximum)
        callback(what)
 def do_search2(self, what, params):
     if what == '':
         what = client.getTextInput(self.session, xbmcutil.__lang__(30003))
     if not what == '':
         maximum = 10
         try:
             maximum = int(self.settings['keep-searches'])
         except:
             util.error('Unable to parse convert addon setting to number')
             pass
         if 'search-no-history' in params and params['search-no-history']:
             # do nothing dont save history
             a = 'nothing'
         else:
             xbmcutil.add_search(self.addon, self.provider.name, what, maximum)
         self.search(what)
def _search(addon,history,what,update_history,callback):
	if what == '' or what == '#':
		kb = xbmc.Keyboard('',xbmcutil.__lang__(30003),False)
		kb.doModal()
		if kb.isConfirmed():
			what = kb.getText()
	if not what == '':
		maximum = 20
		try:
			maximum = int(addon.getSetting('keep-searches'))
		except:
			util.error('Unable to parse convert addon setting to number')
			pass
		if update_history:
			xbmcutil.add_search(addon,history,what,maximum)
		callback(what)
Exemple #9
0
 def do_search2(self, what, params):
     if what == '':
         what = client.getTextInput(self.session, xbmcutil.__lang__(30003))
     if not what == '':
         maximum = 20
         try:
             maximum = int(self.settings['keep-searches'])
         except:
             util.error('Unable to parse convert addon setting to number')
             pass
         if 'search-no-history' in params and params['search-no-history']:
             # do nothing dont save history
             a = 'nothing'
         else:
             xbmcutil.add_search(self.addon, self.provider.name, what,
                                 maximum)
         self.search(what)