summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
commitfcead1870013b6a970eca7878a66dbe783c80ea3 (patch)
tree9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/hoster/UploadedTo.py
parentInit cosmetics (diff)
downloadpyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz
Diffstat (limited to 'pyload/plugin/hoster/UploadedTo.py')
-rw-r--r--pyload/plugin/hoster/UploadedTo.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hoster/UploadedTo.py b/pyload/plugin/hoster/UploadedTo.py
index 16420d361..eb52f9721 100644
--- a/pyload/plugin/hoster/UploadedTo.py
+++ b/pyload/plugin/hoster/UploadedTo.py
@@ -20,7 +20,7 @@ key = "bGhGMkllZXByd2VEZnU5Y2NXbHhYVlZ5cEE1bkEzRUw=".decode('base64')
def getID(url):
""" returns id from file url"""
- m = re.match(UploadedTo.__pattern, url)
+ m = re.match(UploadedTo.__pattern__, url)
return m.group('ID')
@@ -92,15 +92,15 @@ def getInfo(urls):
class UploadedTo(Hoster):
- __name = "UploadedTo"
- __type = "hoster"
- __version = "0.75"
+ __name__ = "UploadedTo"
+ __type__ = "hoster"
+ __version__ = "0.75"
- __pattern = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)'
+ __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)'
- __description = """Uploaded.net hoster plugin"""
- __license = "GPLv3"
- __authors = [("spoob", "spoob@pyload.org"),
+ __description__ = """Uploaded.net hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("spoob", "spoob@pyload.org"),
("mkaay", "mkaay@mkaay.de"),
("zoidberg", "zoidberg@mujmail.cz"),
("netpok", "netpok@gmail.com"),
@@ -163,7 +163,7 @@ class UploadedTo(Hoster):
def handlePremium(self):
info = self.account.getAccountInfo(self.user, True)
- self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name,
+ self.logDebug("%(name)s: Use Premium Account (%(left)sGB left)" % {"name": self.__name__,
"left": info['trafficleft'] / 1024 / 1024})
if int(self.data[1]) / 1024 > info['trafficleft']:
self.logInfo(_("Not enough traffic left"))