Esempio n. 1
0
	def doBrowserAuth(self,url):
		from webviewer import webviewer #@UnresolvedImport
		#login = {'action':'login.php'}
		#if email and password:
		#	login['autofill'] = 'email=%s,pass=%s' % (email,password)
		#	login['autosubmit'] = 'true'
		autoForms = [{'name':'oauth_form'}]
		#autoClose = {'url':'.*access_token=.*','heading':'','message':''}
		print url
		return webviewer.getWebResult(url,autoForms=autoForms) #,autoClose=autoClose) #@UnusedVariable
Esempio n. 2
0
	def doNormalTokenDialog(self,frob,perms):
		url = self.flickr.auth_url('read',frob)
		if PLUGIN: xbmcplugin.endOfDirectory(int(sys.argv[1]),succeeded=False)
		self.justAuthorized = True
		xbmcgui.Dialog().ok(__language__(30507),__language__(30508),__language__(30509))
		from webviewer import webviewer #@UnresolvedImport
		autoforms = [	{'action':'login.yahoo.com/config/login'},
						{'url':'.+perms=.+','action':'services/auth','index':2},
						{'url':'.+services/auth/$','action':'services/auth'}]
		autoClose = {	'url':'.+services/auth/$',
						'html':'(?s).+successfully authorized.+',
						'heading':__language__(30505),
						'message':__language__(30506)}
		url,html = webviewer.getWebResult(url,autoForms=autoforms,autoClose=autoClose) #@UnusedVariable
		LOG('AUTH RESPONSE URL: ' + url)
Esempio n. 3
0
    print "URL: "+str(url)
    print "Name: "+str(name)

    if mode==None:
        print ""
        Categories()

    elif mode==1:
        print""
        getTorrents(url, page)

    elif mode==2:
        print""

    elif mode==3:
        print""
        Download(url)

    elif mode==4:
        print""
        Search()

    xbmcplugin.endOfDirectory(int(sys.argv[1]))


if sys.argv[1] == 'info':
    webviewer.getWebResult(sys.argv[2])
    
else:
    run_plugin()