ó
^»âWc @ sO d Z d d l Z d „ Z d „ Z d „ Z d „ Z e d k rK d Z n d S( s
urlresolver XBMC Addon
Copyright (C) 2013 Bstrdsmkr
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Adapted for use in xbmc from:
http://playonscripts.com/?w=files&id=34
usage:
html_with_unpacked_js = unwise_process(html_with_packed_js)
Unpacker for w.i.s.e
iÿÿÿÿNc C sW d } d } xD | t | ƒ k rR | t t | | | d !d ƒ ƒ } | d 7} q W| S( Ni t i i$ ( t lent chrt int( t wt int1t result( ( sh C:\Users\obi\AppData\Roaming\Kodi\addons\script.module.urlresolver\lib\urlresolver\plugins\lib\unwise.pyt unwise1 s $c C sÁ d } d } d }
d } d } d }
xêt r| d k r” | | k r] |
| | | d !}
n* | t | ƒ k r‡ | | | | d !} n | d 7} n | d k rû | | k rÄ |
| | | d !}
n* | t | ƒ k rî | | | | d !} n | d 7} n | d k rb|
| k r+|
| |
|
d !}
n* |
t | ƒ k rU| | |
|
d !} n |
d }
n | d k rÉ| | k r’|
| | | d !}
n* | t | ƒ k r¼| | | | d !} n | d } n t | ƒ t | ƒ t | ƒ t | ƒ t | ƒ t |
ƒ k r' Pq' q' Wd } d } d } x— | t | ƒ k r¼d } t |
| | d !ƒ d rbd } n | t t | | | d !d ƒ | ƒ } | d 7} | t |
ƒ k r¯d } n | d 7} q&W| S( Ni R i iÿÿÿÿi i$ ( t TrueR t ordR R ( R t it st et wit iit sit eiR t int2t int3t int4t string1t string2R t flag( ( sh C:\Users\obi\AppData\Roaming\Kodi\addons\script.module.urlresolver\lib\urlresolver\plugins\lib\unwise.pyt unwise' s\
@ (
c C s§ x t r¢t j d ƒ j | ƒ } | s+ Pn | j ƒ } t j d ƒ j | ƒ } | sj | j | d ƒ } q d d d d g } | j ƒ } | j d ƒ d k r¼ | j | t | d ƒ ƒ } q d } d d d d g } d d d d g } t j d ƒ j | ƒ j d ƒ } xH t j d ƒ j | ƒ D]. } | | | |