SHARE
TWEET

Pass Batman

Hectobo May 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <item>
  2.  
  3. <parentalblock>true</parentalblock>
  4.  
  5. <title>[COLOR gold]***********************************************************[/COLOR]</title>
  6.  
  7. <link>NA</link>
  8.  
  9. <externallink>$doregex[getinput]</externallink>
  10.  
  11. <regex>
  12.  
  13. <name>getinput</name>
  14.  
  15. <expres><![CDATA[#$pyFunction
  16.  
  17. import xbmcgui,xbmc, xbmcaddon, time, base64
  18.  
  19. def GetLSProData(page_data,Cookie_Jar,m,txt='clave de acceso:'):
  20.  
  21.     addon = xbmcaddon.Addon('plugin.video.bataddon')
  22.  
  23.     addon_version = addon.getAddonInfo('version')
  24.  
  25.     profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))
  26.  
  27.     solver = InputWindow( txt=txt)
  28.  
  29.     solution = solver.get()
  30.  
  31.     if solution =='QmF0QWRkb24='.decode('base64'):
  32.  
  33.         return play()
  34.  
  35.     else:
  36.  
  37.         return ''
  38.  
  39. class InputWindow(xbmcgui.WindowDialog):
  40.  
  41.     def __init__(self, *args, **kwargs):
  42.  
  43.         self.txt = kwargs.get('txt','')
  44.  
  45.         xbmcgui.WindowXMLDialog.__init__(self)
  46.  
  47.         #self.addControl(self.txt)
  48.  
  49.         path = xbmcaddon.Addon().getAddonInfo('path')
  50.  
  51.         self.kbd = xbmc.Keyboard()
  52.  
  53.         self.kbd.setHeading( self.txt)
  54.  
  55.     def get(self):
  56.  
  57.         self.show()
  58.  
  59.         time.sleep(2)
  60.  
  61.         self.kbd.doModal()
  62.  
  63.         if (self.kbd.isConfirmed()):
  64.  
  65.             text = self.kbd.getText()
  66.  
  67.             self.close()
  68.  
  69.             return text
  70.  
  71.         self.close()
  72.  
  73.         return False
  74.  
  75. def play():
  76.  
  77.     return 'http://bit.ly/2WTM8cS'
  78.  
  79. ]]></expres>
  80.  
  81. <page></page>
  82.  
  83. </regex>
  84.  
  85. </item>
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