From 5a1e85a0e783de13283a7a93b51779bb5aa01902 Mon Sep 17 00:00:00 2001 From: Stefano Date: Wed, 4 Sep 2013 14:46:25 +0200 Subject: Uploadhero: changed domain from COM to CO See #125 (cherry picked from commit e310f47061fe6344dc929318975cd915f8ff6ac1) --- pyload/plugins/accounts/UploadheroCom.py | 8 ++++---- pyload/plugins/hoster/UploadheroCom.py | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'pyload/plugins') diff --git a/pyload/plugins/accounts/UploadheroCom.py b/pyload/plugins/accounts/UploadheroCom.py index 0e64a3ff5..12463f285 100644 --- a/pyload/plugins/accounts/UploadheroCom.py +++ b/pyload/plugins/accounts/UploadheroCom.py @@ -10,9 +10,9 @@ from module.plugins.Account import Account class UploadheroCom(Account): __name__ = "UploadheroCom" - __version__ = "0.1" + __version__ = "0.2" __type__ = "account" - __description__ = """Uploadhero.com account plugin""" + __description__ = """Uploadhero.co account plugin""" __author_name__ = ("mcmyst") __author_mail__ = ("mcmyst@hotmail.fr") @@ -20,7 +20,7 @@ class UploadheroCom(Account): premium_pattern = re.compile('Il vous reste ([0-9]+) jours premium.') data = self.getAccountData(user) - page = req.load("http://uploadhero.com/my-account") + page = req.load("http://uploadhero.co/my-account") if premium_pattern.search(page): end_date = datetime.date.today() + datetime.timedelta(days=int(premium_pattern.search(page).group(1))) @@ -32,7 +32,7 @@ class UploadheroCom(Account): return account_info def login(self, user, data, req): - page = req.load("http://uploadhero.com/lib/connexion.php", + page = req.load("http://uploadhero.co/lib/connexion.php", post={"pseudo_login": user, "password_login": data["password"]}) if "mot de passe invalide" in page: diff --git a/pyload/plugins/hoster/UploadheroCom.py b/pyload/plugins/hoster/UploadheroCom.py index 79bca748e..7b047e028 100644 --- a/pyload/plugins/hoster/UploadheroCom.py +++ b/pyload/plugins/hoster/UploadheroCom.py @@ -27,12 +27,12 @@ class UploadheroCom(SimpleHoster): __name__ = "UploadheroCom" __type__ = "hoster" __pattern__ = r"http://(?:www\.)?uploadhero\.com?/dl/\w+" - __version__ = "0.14" - __description__ = """UploadHero.com plugin""" + __version__ = "0.15" + __description__ = """UploadHero.co plugin""" __author_name__ = ("mcmyst", "zoidberg") __author_mail__ = ("mcmyst@hotmail.fr", "zoidberg@mujmail.cz") - SH_COOKIES = [("http://uploadhero.com", "lang", "en")] + SH_COOKIES = [("http://uploadhero.co", "lang", "en")] FILE_NAME_PATTERN = r'
(?P.*?)
' FILE_SIZE_PATTERN = r'Taille du fichier : (?P.*?)' FILE_OFFLINE_PATTERN = r'

|