summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UploadStationCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-23 20:18:29 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-23 20:18:29 +0100
commitb38de5f214e3c9bce9967922f49da9aba0e00641 (patch)
treefe234ba20480712cb306ef9fa986fcc190cbe64e /module/plugins/hoster/UploadStationCom.py
parentdisabled some hoster (diff)
downloadpyload-b38de5f214e3c9bce9967922f49da9aba0e00641.tar.xz
more hoster disabled
Diffstat (limited to 'module/plugins/hoster/UploadStationCom.py')
-rw-r--r--module/plugins/hoster/UploadStationCom.py32
1 files changed, 5 insertions, 27 deletions
diff --git a/module/plugins/hoster/UploadStationCom.py b/module/plugins/hoster/UploadStationCom.py
index f89ef3ad1..fea5f4245 100644
--- a/module/plugins/hoster/UploadStationCom.py
+++ b/module/plugins/hoster/UploadStationCom.py
@@ -8,37 +8,13 @@ from module.plugins.ReCaptcha import ReCaptcha
import re
def getInfo(urls):
- result = []
-
- for url in urls:
-
- # Get file info html
- html = getURL(url)
- if re.search(UploadStationCom.FILE_OFFLINE_PATTERN, html):
- result.append((url, 0, 1, url))
- continue
-
- # Name
- name = re.search(UploadStationCom.FILE_TITLE_PATTERN, html).group(1)
-
- # Size
- m = re.search(UploadStationCom.FILE_SIZE_PATTERN, html)
- value = float(m.group(1))
- units = m.group(2)
- pow = {'KB' : 1, 'MB' : 2, 'GB' : 3}[units]
- size = int(value*1024**pow)
-
- # Return info
- result.append((name, size, 2, url))
-
- yield result
-
+ yield [(url, 0, 1, url) for url in urls]
class UploadStationCom(Hoster):
__name__ = "UploadStationCom"
__type__ = "hoster"
__pattern__ = r"http://(www\.)?uploadstation\.com/file/(?P<id>[A-Za-z0-9]+)"
- __version__ = "0.31"
+ __version__ = "0.33"
__description__ = """UploadStation.Com File Download Hoster"""
__author_name__ = ("fragonib")
__author_mail__ = ("fragonib[AT]yahoo[DOT]es")
@@ -61,6 +37,8 @@ class UploadStationCom(Hoster):
def process(self, pyfile):
+ self.fail("Hoster not longer available")
+
# Get URL
self.html = self.load(self.pyfile.url, ref=False, decode=True)
@@ -160,4 +138,4 @@ class UploadStationCom(Hoster):
self.logDebug("Failed, you need to wait %d seconds for another download." % wait)
self.setWait(wait + 3, True)
self.wait()
- self.retry() \ No newline at end of file
+ self.retry()