#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
import shared
from htmlparser import between
def resolver():
shared.r.GET(shared.URL)
if shared.r.Page.find("File Not Found") > -1:
print "Hoster says: File not found"
return
shared.filename = between(shared.r.Page, '<h2>Download File ', '</h2>')
f = shared.r.Page.findForm(action='')
f.input['method_premium'].value = ''
shared.r.submit(f)
packed = shared.r.Page.findEval(2).deobfuscate()
# shared.URL = between(packed, "addVariable(\\'file\\',\\'", "\\'").replace("files//","files/6/")
shared.URL = between(packed, '"src="', '"').replace("//","/d/").replace(":/d/","://")
if __name__ == "__main__":
from retrieve import main
main()