summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-30 19:06:35 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-30 19:06:35 +0200
commit8a100ee47aed13d251c895288a3a3a73586b1a0d (patch)
treec05da5095bb57c5f3aa1b3acfd8d057ebbcfd8af
parentMerge pull request #1375 from GammaC0de/GammaC0de-patch-1 (diff)
parentUpdate UploadedTo.py (diff)
downloadpyload-8a100ee47aed13d251c895288a3a3a73586b1a0d.tar.xz
Merge pull request #1385 from GammaC0de/GammaC0de-UploadedTo-Detect-Maintenance
[UploadedTo] detect maintenance
-rw-r--r--module/plugins/hoster/UploadedTo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py
index 67f82d1f7..8a426d28d 100644
--- a/module/plugins/hoster/UploadedTo.py
+++ b/module/plugins/hoster/UploadedTo.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class UploadedTo(SimpleHoster):
__name__ = "UploadedTo"
__type__ = "hoster"
- __version__ = "0.86"
+ __version__ = "0.87"
__pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)'
__config__ = [("use_premium", "bool", "Use premium account if available", True)]
@@ -27,6 +27,8 @@ class UploadedTo(SimpleHoster):
URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://uploaded.net/file/\g<ID>')]
+ TEMP_OFFLINE_PATTERN = r'<title>uploaded\.net - Maintenance - Wartungsarbeiten</title>'
+
LINK_PREMIUM_PATTERN = r'<div class="tfree".*\s*<form method="post" action="(.+?)"'
WAIT_PATTERN = r'Current waiting period: <span>(\d+)'