Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 27th, 2018 370 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. def search_new(self):
  2.             control.idle()
  3.  
  4.             t = control.lang(32010).encode('utf-8')
  5.             k = control.keyboard('', t) ; k.doModal()
  6.             q = k.getText() if k.isConfirmed() else None
  7.  
  8.             if (q == None or q == ''): return
  9.  
  10.             kodiversion = xbmc.getInfoLabel('System.BuildVersion').split()[0]
  11.             kodiversion = kodiversion.split('.')[0]
  12.  
  13.             if kodiversion == "18":
  14.                 url = self.search_link + urllib.quote_plus(q)
  15.                 movies().get(url)
  16.             else:
  17.                 try: from sqlite3 import dbapi2 as database
  18.                 except: from pysqlite2 import dbapi2 as database
  19.  
  20.                 dbcon = database.connect(control.searchFile)
  21.                 dbcur = dbcon.cursor()
  22.                 dbcur.execute("INSERT INTO movies VALUES (?,?)", (None,q))
  23.                 dbcon.commit()
  24.                 dbcur.close()
  25.                 url = self.search_link + urllib.quote_plus(q)
  26.                 url = '%s?action=moviePage&url=%s' % (sys.argv[0], urllib.quote_plus(url))
  27.                 control.execute('Container.Update(%s)' % url)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top