summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-22 01:34:52 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-22 01:34:52 +0100
commit770464d0ab27ef948c1b4d97025bc07a4676ab46 (patch)
tree8d964cfc21c3a3b65f5f1ac5b2815a13d863b4de /module/plugins
parent[XFSHoster] Fix getPostParameters (diff)
downloadpyload-770464d0ab27ef948c1b4d97025bc07a4676ab46.tar.xz
[RarefileNet] Remove old handleCaptcha
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/RarefileNet.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/module/plugins/hoster/RarefileNet.py b/module/plugins/hoster/RarefileNet.py
index f6f9143c5..8c6ec43a2 100644
--- a/module/plugins/hoster/RarefileNet.py
+++ b/module/plugins/hoster/RarefileNet.py
@@ -3,13 +3,12 @@
import re
from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
-from module.utils import html_unescape
class RarefileNet(XFSHoster):
__name__ = "RarefileNet"
__type__ = "hoster"
- __version__ = "0.06"
+ __version__ = "0.07"
__pattern__ = r'http://(?:www\.)?rarefile\.net/\w{12}'
@@ -20,19 +19,7 @@ class RarefileNet(XFSHoster):
HOSTER_DOMAIN = "rarefile.net"
- NAME_PATTERN = r'<td><font color="red">(?P<N>.*?)</font></td>'
- SIZE_PATTERN = r'<td>Size : (?P<S>.+?)&nbsp;'
-
LINK_PATTERN = r'<a href="(?P<link>[^"]+)">(?P=link)</a>'
- def handleCaptcha(self, inputs):
- captcha_div = re.search(r'<b>Enter code.*?<div.*?>(.*?)</div>', self.html, re.S).group(1)
- self.logDebug(captcha_div)
- numerals = re.findall('<span.*?padding-left\s*:\s*(\d+).*?>(\d)</span>', html_unescape(captcha_div))
- inputs['code'] = "".join([a[1] for a in sorted(numerals, key=lambda num: int(num[0]))])
- self.logDebug("CAPTCHA", inputs['code'], numerals)
- return 3
-
-
getInfo = create_getInfo(RarefileNet)