diff options
author | Jeix <devnull@localhost> | 2010-12-18 12:05:29 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-12-18 12:05:29 +0100 |
commit | 84174e2ce29422b44b8b134bf2813445891bc61c (patch) | |
tree | e08a3904de276c30c5f94c26275092505fec2eb7 /module | |
parent | Fixes some rapidshare URL matches (diff) | |
download | pyload-84174e2ce29422b44b8b134bf2813445891bc61c.tar.xz |
closed #160
fixed Megaupload, Uploading
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/crypter/SerienjunkiesOrg.py | 8 | ||||
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 10 | ||||
-rw-r--r-- | module/plugins/hoster/UploadingCom.py | 17 |
3 files changed, 32 insertions, 3 deletions
diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py index 07a73d0b0..5956ee30d 100644 --- a/module/plugins/crypter/SerienjunkiesOrg.py +++ b/module/plugins/crypter/SerienjunkiesOrg.py @@ -12,7 +12,8 @@ class SerienjunkiesOrg(Crypter): __type__ = "container" __pattern__ = r"http://.*?serienjunkies.org/.*?" __version__ = "0.3" - __config__ = [ ("preferredHoster", "str", "preferred hoster" , "RapidshareCom,UploadedTo,NetloadIn,FilefactoryCom,FreakshareNet,FilebaseTo,MegauploadCom,HotfileCom,DepositfilesCom,EasyshareCom,KickloadCom") ] + __config__ = [ ("preferredHoster", "str", "preferred hoster" , "RapidshareCom,UploadedTo,NetloadIn,FilefactoryCom,FreakshareNet,FilebaseTo,MegauploadCom,HotfileCom,DepositfilesCom,EasyshareCom,KickloadCom"), + ("changeName", "bool", "Take SJ.org episode name", "True") ] __description__ = """serienjunkies.org Container Plugin""" __author_name__ = ("mkaay") __author_mail__ = ("mkaay@mkaay.de") @@ -140,6 +141,11 @@ class SerienjunkiesOrg(Crypter): for link in rawLinks: frameUrl = link["action"].replace("/go-", "/frame/go-") links.append(self.handleFrame(frameUrl)) + + # thx gartd6oDLobo + if not self.getConfig("changeName"): + packageName = self.pyfile.package().name + self.packages.append((packageName, links, packageName)) def handleOldStyleLink(self, url): diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index 92daedec2..d176e996a 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -108,8 +108,11 @@ class MegauploadCom(Hoster): if "The file that you're trying to download is larger than 1 GB" in self.html[0]: self.fail(_("You need premium to download files larger than 1 GB")) - if r'Please enter the password below to proceed' in self.html[0]: + if r'Please enter the password below' in self.html[0]: pw = self.pyfile.package().password + if not pw: + self.fail(_("The file is password protected, enter a password and restart.")) + self.html[1] = self.load(self.pyfile.url, post={"filepassword":pw}) break # looks like there is no captcha for pw protected files @@ -125,7 +128,7 @@ class MegauploadCom(Hoster): self.html[0] = self.load(self.pyfile.url) count += 1 if count > 5: - self.fail(_("%s: Megaupload is currently blocking your IP. Try again later, manually."% self.__name__)) + self.fail(_("Megaupload is currently blocking your IP. Try again later, manually.")) try: url_captcha_html = re.search('(http://[\w\.]*?megaupload\.com/gencap.php\?.*\.gif)', self.html[0]).group(1) @@ -199,4 +202,7 @@ class MegauploadCom(Hoster): if re.search("The file you are trying to access is temporarily unavailable", self.html[0]) is not None: self.fail(_("Looks like the file is still not available. Retry downloading later, manually.")) + if re.search("The password you have entered is not correct", self.html[1]): + self.fail(_("Wrong password for download link.")) + return True diff --git a/module/plugins/hoster/UploadingCom.py b/module/plugins/hoster/UploadingCom.py index 70c54e7ce..dec184abf 100644 --- a/module/plugins/hoster/UploadingCom.py +++ b/module/plugins/hoster/UploadingCom.py @@ -1,4 +1,21 @@ +#!/usr/bin/env python
# -*- coding: utf-8 -*-
+"""
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License,
+ or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+ @author: jeix
+"""
import re
|