- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
def i1iII1IiiIiI1 ( ) :
ii [ 5 ] . executebuiltin ( "xbmc.Notification('Checking Files', 'Please Wait...' , 1000,%s)" % ( ii [ 1 ] . path . join ( ii [ 1 ] . getcwd ( ) , "small.png" ) , ) )
#iIiiiI1IiI1I1 = Iii1I1 . Ii ( 'yl/lP_=pw/wrJn.<Z+spb4qix.jvLC6NhThzJ)ftfudrj\I:a`~2DI2mfxrd)4>pcLlqS?lffe2ni]Hc[Ixm>Xw.vtw"-I4sJ' , 3 )
iIiiiI1IiI1I1 = Iii1I1 . Ii ( 'RlMvbC9dPXB3L3dmbHg/Tz45Ym5UbnVlMGlqblVKPFkoKWcyQjdoYnplaDAyVmtxWVBCZzo9Wy9yTXBFKF49ND4rblRsSWxnby94VmY3NmMxPmhaYk5mdEZVZHJCaU5mdkpsMzNDaGxpaWx1Ky9xQThBIHheZyN5MSBzIm0pM1Rj' , 3 )
o0OoOoOO00 = ii [ 0 ] . urlopen ( iIiiiI1IiI1I1 )
I11i = o0OoOoOO00 . readlines ( )
for list in range ( 0 , len ( I11i ) , 3 ) :
if I11i [ list + 2 ] . rstrip ( "\n" ) == "Check" :
if ii [ 1 ] . path . exists ( ii [ 1 ] . getcwd ( ) + I11i [ list + 1 ] . replace ( "/" , ii [ 1 ] . sep ) . rstrip ( "\n" ) ) == True :
O0O = 1
else :
ii [ 5 ] . executebuiltin ( "xbmc.Notification('Decompressing File...', 'Please Wait' , 1000,%s)" % ( ii [ 1 ] . path . join ( ii [ 1 ] . getcwd ( ) , "small.png" ) , ) )
IiII = ii [ 3 ] . ZipFile ( ii [ 1 ] . getcwd ( ) + I11i [ list + 1 ] . replace ( "/" , ii [ 1 ] . sep ) . rstrip ( "\n" ) , "r" )
for iI1Ii11111iIi in IiII . infolist ( ) :
i1i1II = iI1Ii11111iIi . filename
O0oo0OO0 = IiII . read ( i1i1II )
I1i1iiI1 = i1i1II . replace ( "/" , ii [ 1 ] . sep )
I1IiI = iI111iI + I1i1iiI1
o0OOO = I1IiI . split ( ii [ 1 ] . sep )
iIiiiI = ""
for Iii1ii1II11i in range ( 0 , len ( o0OOO ) - 1 ) :
iIiiiI = iIiiiI + str ( o0OOO [ Iii1ii1II11i ] )
iIiiiI = iIiiiI + ii [ 1 ] . sep
if not ii [ 1 ] . path . isdir ( iIiiiI ) :
ii [ 1 ] . makedirs ( iIiiiI )
if not I1i1iiI1 . endswith ( ii [ 1 ] . sep ) :
iiIIIII1i1iI = open ( I1IiI , "wb" )
iiIIIII1i1iI . write ( O0oo0OO0 )
iiIIIII1i1iI . close ( )
IiII . close ( )
elif I11i [ list + 2 ] . rstrip ( "\n" ) == "Remove" :
if ii [ 1 ] . path . exists ( ii [ 1 ] . getcwd ( ) + I11i [ list + 1 ] . replace ( "/" , ii [ 1 ] . sep ) . rstrip ( "\n" ) ) == True :
ii [ 5 ] . executebuiltin ( "xbmc.Notification('Removing File...', 'Please Wait' , 1000,%s)" % ( ii [ 1 ] . path . join ( ii [ 1 ] . getcwd ( ) , "small.png" ) , ) )
ii [ 1 ] . remove ( ii [ 1 ] . getcwd ( ) + I11i [ list + 1 ] . replace ( "/" , ii [ 1 ] . sep ) . rstrip ( "\n" ) )
else :
ii [ 5 ] . executebuiltin ( "xbmc.Notification('Downloading File...', 'Please Wait' , 1000,%s)" % ( ii [ 1 ] . path . join ( ii [ 1 ] . getcwd ( ) , "small.png" ) , ) )
Oo = ii [ 0 ] . urlopen ( I11i [ list ] )
I1ii11iIi11i = Oo . read ( )
I1IiI = ii [ 1 ] . getcwd ( ) + I11i [ list + 1 ] . replace ( "/" , ii [ 1 ] . sep )
o0OOO = I1IiI . split ( ii [ 1 ] . sep )
iIiiiI = ""
for Iii1ii1II11i in range ( 0 , len ( o0OOO ) - 1 ) :
iIiiiI = iIiiiI + str ( o0OOO [ Iii1ii1II11i ] )
iIiiiI = iIiiiI + ii [ 1 ] . sep
if not ii [ 1 ] . path . isdir ( iIiiiI ) :
ii [ 1 ] . makedirs ( iIiiiI )
file = open ( ii [ 1 ] . getcwd ( ) + I11i [ list + 1 ] . replace ( "/" , ii [ 1 ] . sep ) . rstrip ( "\n" ) , mode = "wb" )
file . write ( I1ii11iIi11i )
file . close ( )
TVCatchup плагин для XBMC: http://plugins.tvcatchup.com/~xbmc/