Changeset 44500 for titan/mediathek


Ignore:
Timestamp:
01/06/20 18:20:57 (4 years ago)
Author:
obi
Message:

fix mixdrop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/mixdrop.py

    r44485 r44500  
    77from lib import helpers
    88import lib.common as common
     9from lib import jsunpack
    910
    1011class MixdropResolver(object):
     
    3435
    3536        html = self.net.http_GET(web_url, headers=headers).content
     37#        print "html", html
     38        js_data = re.findall('(eval\(function.*?)</script>', html.replace('\n', ''))
     39#        print "js_data1", js_data
     40        for i in js_data:
     41            html += jsunpack.unpack(i)
     42#        print "html", html
     43
     44        #MDCore.poster="//s-delivery10.mxdcontent.net/thumbs/18a6675ac1932f50e07887c3daf25a8b.jpg";MDCore.furl="//s-delivery10.mxdcontent.net/v/18a6675ac1932f50e07887c3daf25a8b.mp4?s=1W53dLLMYoBJ_x-Nv73_FA&e=1578351242";MDCore.vfile="18a6675ac1932f50e07887c3daf25a8b.mp4";MDCore.vserver="s-delivery10";MDCore.remotesub="";MDCore.chromeInject="0";MDCore.referrer="";$(document).ready(function(){setTimeout(function(){$("body").append("<iframe width=\\"1366\\" height=\\"768\\" src=\\"https://www.gearbest.com/smart-watch-phone/pp_009309925869.html?lkid=74203065\\" style=\\"display:none\\" sandbox=\\"allow-same-origin allow-scripts allow-popups allow-forms\\"></iframe>")},120000);setTimeout(function(){$("body").append("<iframe width=\\"1366\\" height=\\"768\\" src=\\"https://zap.buzz/6kr3yJp\\" style=\\"display:none\\" sandbox=\\"allow-same-origin allow-scripts allow-popups allow-forms\\"></iframe>")},120000);setTimeout(function(){$("body").append("<iframe width=\\"1366\\" height=\\"768\\" src=\\"https://uthorner.info/redirect?tid=814005&ref=mixdrop.co\\" style=\\"display:none\\" sandbox=\\"allow-same-origin allow-scripts allow-popups allow-forms\\"></iframe>")},120000);setTimeout(function(){$("body").append("<iframe width=\\"1366\\" height=\\"768\\" src=\\"https://pmzer.com/213479/9189\\" style=\\"display:none\\" sandbox=\\"allow-same-origin allow-scripts allow-popups allow-forms\\"></iframe>")},120000);setTimeout(function(){$("body").append("<iframe width=\\"1366\\" height=\\"768\\" src=\\"https://dynamicadx.com/213480/9190\\" style=\\"display:none\\" sandbox=\\"allow-same-origin allow-scripts allow-popups allow-forms\\"></iframe>")},120000);setTimeout(function(){$("body").append("<iframe width=\\"1366\\" height=\\"768\\" src=\\"https://zap.buzz/Y79rkqR\\" style=\\"display:none\\" sandbox=\\"allow-same-origin allow-scripts allow-popups allow-forms\\"></iframe>")},120000)});
     45        match = re.search('MDCore.furl="([^"].*)";MDCore.vfile=', html)
     46        if match:
     47             match = re.search('MDCore.furl="([^"].*)";MDCore.vfile=', html).group(1)
     48             headers = {'User-Agent': common.RAND_UA}
     49             if 'http:' not in match:
     50                  print "https:%s" % (match) + helpers.append_headers(headers)
     51             else:
     52                  print "%s" % (match) + helpers.append_headers(headers)
     53             return
    3654
    3755        if '(p,a,c,k,e,d)' in html:
Note: See TracChangeset for help on using the changeset viewer.