File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2- <addon id =" plugin.program.bscfusion" name =" Fusion TV" version =" 0.0.2v " provider-name =" kodi1" >
2+ <addon id =" plugin.program.bscfusion" name =" Fusion TV" version =" 0.0.2w " provider-name =" kodi1" >
33 <requires >
44 <import addon =" xbmc.python" version =" 2.19.0" />
55 <import addon =" script.module.requests" version =" 1.1.0" />
Original file line number Diff line number Diff line change @@ -111,6 +111,17 @@ def __log_out(self):
111111 def __goforit (self ):
112112 if self .__cb :
113113 self .__cb ({'pr' : 10 , 'str' : 'Session' })
114+
115+ #_head={}
116+ #_head.update(self.__UA)
117+ #_head.update(
118+ #{
119+ #'Access-Control-Request-Method': 'POST',
120+ #'Access-Control-Request-Headers': 'ssbulsatapi',
121+ #}
122+ #)
123+ ##r = self.__s.options(self.__URL_LOGIN, timeout=self.__t,
124+ ##headers=_head)
114125 r = self .__s .post (self .__URL_LOGIN , timeout = self .__t ,
115126 headers = self .__UA )
116127
@@ -207,10 +218,10 @@ def __goforit(self):
207218 from HTMLParser import HTMLParser as h
208219 self .__js = json .loads (h ().unescape (json .dumps (self .__js ).decode (self .__char_set )))
209220
210- self .__log_out ()
211- if r .status_code != requests .codes .ok :
212- self .__log_dat ('Error status code: %d' % (r .status_code , ))
213- raise Exception ("FetchFail" )
221+ # self.__log_out()
222+ # if r.status_code != requests.codes.ok:
223+ # self.__log_dat('Error status code: %d' % (r.status_code, ))
224+ # raise Exception("FetchFail")
214225
215226 else :
216227 raise Exception ("LoginFail" )
You can’t perform that action at this time.
0 commit comments