summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UploadboxCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-12-05 16:50:50 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2011-12-05 16:50:50 +0100
commit81b2595cdbbca825f0ce553395acb88deffd4e99 (patch)
tree7d80d443244609ed80cf83a5426498747d5e735e /module/plugins/hoster/UploadboxCom.py
parentfix filesystem encoding issues on windows and synology nas (diff)
downloadpyload-81b2595cdbbca825f0ce553395acb88deffd4e99.tar.xz
simplehoster - use parseFileSize
Diffstat (limited to 'module/plugins/hoster/UploadboxCom.py')
-rw-r--r--module/plugins/hoster/UploadboxCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/UploadboxCom.py b/module/plugins/hoster/UploadboxCom.py
index 584c64e77..0eb023cb2 100644
--- a/module/plugins/hoster/UploadboxCom.py
+++ b/module/plugins/hoster/UploadboxCom.py
@@ -31,7 +31,7 @@ class UploadboxCom(SimpleHoster):
__name__ = "Uploadbox"
__type__ = "hoster"
__pattern__ = r"http://(?:www\.)?uploadbox\.com/files/([^/]+).*"
- __version__ = "0.03"
+ __version__ = "0.04"
__description__ = """UploadBox.com plugin - free only"""
__author_name__ = ("zoidberg")
__author_mail__ = ("zoidberg@mujmail.cz")
@@ -39,7 +39,7 @@ class UploadboxCom(SimpleHoster):
FILE_NAME_PATTERN = r'<p><span>File name:</span>\s*(?P<N>[^<]+)</p>'
FILE_SIZE_PATTERN = r'<span>Size:</span>\s*(?P<S>[0-9.]+) (?P<U>[kKMG])i?B <span>'
FILE_OFFLINE_PATTERN = r'<strong>File deleted from service</strong>'
- NAME_REPLACEMENTS = [(r"(.*)", lambda m: unicode(m.group(1), 'koi8_r'))]
+ FILE_NAME_REPLACEMENTS = [(r"(.*)", lambda m: unicode(m.group(1), 'koi8_r'))]
FREE_FORM_PATTERN = r'<form action="([^"]+)" method="post" id="free" name="free">(.*?)</form>'
FORM_INPUT_PATTERN = r'<input[^>]* name="([^"]+)" value="([^"]+)" />'