ó
Ö°æWc @ s¡ d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m
Z
e
ƒ Z d Z d Z d
d „ Z
d „ Z d
„ Z d S( sŸ
openload.io urlresolver plugin
Copyright (C) 2015 tknorris
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 .
iÿÿÿÿN( t AADecoder( t JJDecoder( t
HTMLParser( t Neti! i i i
c C s… d } xx | D]p } | j ƒ rs | d k r1 d n d } t | ƒ | } | | k r` | d 8} n | t | ƒ 7} q
| | 7} q
W| S( Nt t ZiZ iz i ( t isalphat ordt chr( t st shiftt s2t ct limitt new_code( ( s /tmp/localhoster/lib/ol_gmu.pyt caesar_shift s
c C s» t j d | ƒ } t j d | ƒ } x t | | ƒ D] \ } } t | t | ƒ ƒ } t j | ƒ } x> t d d d d g ƒ D]$ \ } } | j t | ƒ | ƒ } q} W| d | 7} q4 W| S( Ns {\s*var\s+a\s*=\s*"([^"]+)s \)\);}\((\d+)\)t jt _t __t ___s (
t ret findallt zipR t intt urllibt unquotet enumeratet replacet str( t htmlt stringst shiftsR R
t iR ( ( s /tmp/localhoster/lib/ol_gmu.pyt unpack, s %c C s y i d d 6d d 6d d 6d d 6d d
6| d 6} t j | d | ƒj } y | j d
ƒ } Wn n Xt | ƒ } g } d } xþ t j d | t j ƒ D]ä } d } | j d ƒ } t j d | t j ƒ } | rý t
| j d ƒ ƒ j ƒ } | j | ƒ n t j d | t j ƒ } | rFt
| j d ƒ ƒ j ƒ } | j | ƒ n t j d | t j t j Bƒ } | r™ | j d ƒ } q™ q™ W| sd GHn d } t j d | | t j t j Bƒ } | rÐ| j d ƒ } n d GH| sãd GHn t ƒ j | ƒ } d }
xF | D]> } t j d | t j t j Bƒ } | r| j d ƒ }
PqqWg } x— t | ƒ D]‰ \ } }
t |
ƒ } | d | @k oŠd k n r¤d | d d } n | t | ƒ d k rÍ| t |
ƒ 7} n | j t | ƒ ƒ qWWd j | ƒ } d j | ƒ } | j d d ƒ } i | d d 6} t j | d | ƒ } t j | ƒ } | j ƒ } t t | j d! ƒ k oyt! k n r‘d" | j d! GHn | j" ƒ | SWn t# k
r¸} ‚ n Xd# GHd S($ NsH Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0s
User-Agents? text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8t Accepts ISO-8859-1,utf-8;q=0.7,*;q=0.3s Accept-Charsett nones Accept-Encodings en-US,en;q=0.8s Accept-Languaget Referert headerss utf-8R s i s (゚ω゚ノ.*?\('_'\);)s (.=~\[\].*\(\);)s =\s*\$\("#([^"]+)"s Hidden ID Not Found. Deleted?s! ]+id\s*="%s"[^>]*>([^<]+)s Stream Url Not Found. Deleted?s" No Encoded Section Found. Deleted?i s charCodeAt\(\d+\)\s*\+\s*(\d+)\)i! i~ i i^ s( https://openload.co/stream/{0}?mime=truet httpst https Content-Lengths) Openload.co resolve failed. Pigeons? (%s)s7 Unable to resolve openload.io link. Filelink not found.($ t nett http_GETt contentt encodeR! R t finditert DOTALLt groupt searchR t decodet appendR t
IGNORECASER t unescapet IR R t lenR R t joint formatR t urllib2t Requestt Nonet urlopent geturlt MIN_SIZER% t MAX_SIZEt closet Exception( t urlt HTTP_HEADERR t decodest hidden_idt matchR0 t encodedt
hidden_urlt hiddenurlt magic_numberR t idxR R t rest videoUrlt dtextR% t reqt videourlt e( ( s /tmp/localhoster/lib/ol_gmu.pyt
get_media_url7 sˆ
#
)
i „ i i x i à( t __doc__R R R8 t
aa_decoderR t jjdecodeR R R( R R> R= R R! RQ ( ( ( s /tmp/localhoster/lib/ol_gmu.pyt s