From 3b7fcc7d34389b2a9b7f5ffc7411a7ae5411d28a Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Wed, 15 Aug 2012 21:37:20 +0200 Subject: 2shared - closed #656, 4shared - closed #651 (dl with free account only) --- module/plugins/hoster/TwoSharedCom.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/TwoSharedCom.py') diff --git a/module/plugins/hoster/TwoSharedCom.py b/module/plugins/hoster/TwoSharedCom.py index 89c4b7781..8401e0cb0 100644 --- a/module/plugins/hoster/TwoSharedCom.py +++ b/module/plugins/hoster/TwoSharedCom.py @@ -8,15 +8,18 @@ class TwoSharedCom(SimpleHoster): __name__ = "TwoSharedCom" __type__ = "hoster" __pattern__ = r"http://[\w\.]*?2shared.com/(account/)?(download|get|file|document|photo|video|audio)/.*" - __version__ = "0.10" + __version__ = "0.11" __description__ = """2Shared Download Hoster""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") - FILE_NAME_PATTERN = r'File size:\s*(?P[0-9,.]+) (?P[kKMG])i?B' FILE_OFFLINE_PATTERN = r'The file link that you requested is not valid\.|This file was deleted\.' DOWNLOAD_URL_PATTERN = r"window.location ='([^']+)';" + + def setup(self): + self.resumeDownload = self.multiDL = True def handleFree(self): found = re.search(self.DOWNLOAD_URL_PATTERN, self.html) -- cgit v1.2.3