Ejemplo n.º 1
0
 def search_edit(self, what):
     try:
         replacement = client.getTextInput(self.session, xbmcutil.__lang__(30003), what)
     except ValueError:
         client.showInfo("Please install new version of archivCZSK")
     if replacement != '':
         xbmcutil.edit_search(self.addon, self.provider.name, what, replacement)
         client.refresh_screen()
Ejemplo n.º 2
0
 def search_edit(self, what):
     try:
         replacement = client.getTextInput(self.session,
                                           xbmcutil.__lang__(30003), what)
     except ValueError:
         client.showInfo("Please install new version of archivCZSK")
     if replacement != '':
         xbmcutil.edit_search(self.addon, self.provider.name, what,
                              replacement)
         client.refresh_screen()
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
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)
Ejemplo n.º 6
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)
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
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)