summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/account/DropboxCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/account/DropboxCom.py')
-rw-r--r--pyload/plugins/account/DropboxCom.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/pyload/plugins/account/DropboxCom.py b/pyload/plugins/account/DropboxCom.py
index 639e2be9c..03e654e89 100644
--- a/pyload/plugins/account/DropboxCom.py
+++ b/pyload/plugins/account/DropboxCom.py
@@ -6,18 +6,19 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class DropboxCom(SimpleHoster):
- __name__ = "DropboxCom"
- __type__ = "hoster"
- __version__ = "0.02"
+ __name__ = "DropboxCom"
+ __type__ = "hoster"
+ __version__ = "0.03"
__pattern__ = r'https?://(?:www\.)?dropbox\.com/.+'
__description__ = """Dropbox.com hoster plugin"""
- __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
- FILE_NAME_PATTERN = r'<title>Dropbox - (?P<N>.+?)<'
- FILE_SIZE_PATTERN = r'&nbsp;&middot;&nbsp; (?P<S>[\d,]+) (?P<U>\w+)'
+ NAME_PATTERN = r'<title>Dropbox - (?P<N>.+?)<'
+ SIZE_PATTERN = r'&nbsp;&middot;&nbsp; (?P<S>[\d.,]+) (?P<U>[\w^_]+)'
OFFLINE_PATTERN = r'<title>Dropbox - (404|Shared link error)<'
@@ -35,7 +36,7 @@ class DropboxCom(SimpleHoster):
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error(_("Downloaded file is an html page"))
getInfo = create_getInfo(DropboxCom)