summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-02-21 22:15:44 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-02-21 22:15:44 +0100
commit3cbbb91b400cf6388523fbec945a6e97a6ae24e1 (patch)
treec287ede95d05bb601a63768fb1948159e4606099 /module/plugins
parentMerge pull request #8 from stickell/patch-1 (diff)
downloadpyload-3cbbb91b400cf6388523fbec945a6e97a6ae24e1.tar.xz
SpeedLoadOrg: Detect offline files
Added the FILE_OFFLINE_PATTERN to detect offline files
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/SpeedLoadOrg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/hoster/SpeedLoadOrg.py b/module/plugins/hoster/SpeedLoadOrg.py
index e74114742..7035812eb 100644
--- a/module/plugins/hoster/SpeedLoadOrg.py
+++ b/module/plugins/hoster/SpeedLoadOrg.py
@@ -20,13 +20,14 @@ class SpeedLoadOrg(SimpleHoster):
__name__ = "SpeedLoadOrg"
__type__ = "hoster"
__pattern__ = r"http://(www\.)?speedload\.org/(?P<ID>\w+).*"
- __version__ = "0.04"
+ __version__ = "0.05"
__description__ = """Speedload.org hoster plugin"""
__author_name__ = ("z00nx", "stickell")
__author_mail__ = ("z00nx0@gmail.com", "l.stickell@yahoo.it")
FILE_NAME_PATTERN = '<div class="d_file[^>]+>\s+<div>\s+<div[^>]+>(?P<N>[^<]+)</div>'
FILE_SIZE_PATTERN = 'File Size:&nbsp;</span>(?P<S>[^<]+)</span>'
+ FILE_OFFLINE_PATTERN = '<div class="promo" style="[^"]+">'
RECAPTCHA_KEY = '6LenSdkSAAAAAJyoP5jFZl4NNell2r4rzfXRZXGW'
API_URL = 'http://speedload.org/api/single_link.php?shortUrl='