Share Pastebin
Guest
Public paste!

tnt

By: a guest | Jul 3rd, 2009 | Syntax: None | Size: 1.33 KB | Hits: 17 | Expires: Never
Copy text to clipboard
  1. Index: b/default_plugins/zshare/parsers.py
  2. ===================================================================
  3. --- b/default_plugins/zshare/parsers.py (revisión: 935)
  4. +++ b/default_plugins/zshare/parsers.py (copia de trabajo)
  5.  -39,10 +39,10 @@
  6.                         elif "/image/" in url:
  7.                                 url = url.replace("/image/", "/download/")
  8.                         opener = URLOpen()
  9. -                       form = urllib.urlencode([("referer2", ""), ("download", 1), ("imageField.x", 81), ("imageField.y", 28)])
  10. +                       form = urllib.urlencode([("referer2", ""), ("download", 1), ("imageField.x", 81), ("imageField.y", 29)])
  11.                         for line in opener.open(url, form).readlines():
  12.                                 if "var link_enc=new Array(" in line:
  13. -                                       tmp = line.strip().split("var link_enc=new Array(")[1].split(");link = '';for(i=0;i<link_enc.length;i++){link+=link_enc[i];}")[0]
  14. +                                       tmp = line.strip().split("var link_enc=new Array(")[1].split(");")[0]
  15.                                         tmp = eval("[%s]" % tmp)
  16.                                         self.link = "".join(tmp)
  17.                 except Exception, e:
  18.  -62,7 +62,7 @@
  19.                                         name_found = True
  20.                                 elif name_found:
  21.                                         name_found = False
  22. -                                       name = line.strip().split('<font color="#666666">')[1].split('</font></td>')[0]
  23. +                                       name = line.strip().split('<font color="#666666"  align="left">')[1].split('</font></td>')[0]
  24.                                 elif "Size:" in line:
  25.                                         tmp = line.strip().split('<font color="#666666">')[1].split('</font></td>')[0]
  26.                                         if "KB" in tmp: