From 486adc1874e463b1563ad2394b216faff388b10d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 13 Apr 2015 08:21:50 +0200 Subject: Prepare plugins to merging from stable --- pyload/plugin/hoster/NetloadIn.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'pyload/plugin/hoster/NetloadIn.py') diff --git a/pyload/plugin/hoster/NetloadIn.py b/pyload/plugin/hoster/NetloadIn.py index dcfb9dcb6..2055da5e4 100644 --- a/pyload/plugin/hoster/NetloadIn.py +++ b/pyload/plugin/hoster/NetloadIn.py @@ -15,7 +15,7 @@ def getInfo(urls): ## returns list of tupels (name, size (in bytes), status (see database.File), url) apiurl = "http://api.netload.in/info.php" - id_regex = re.compile(NetloadIn.__pattern) + id_regex = re.compile(NetloadIn.__pattern__) urls_per_query = 80 for chunk in chunks(urls, urls_per_query): @@ -60,15 +60,15 @@ def getInfo(urls): class NetloadIn(Hoster): - __name = "NetloadIn" - __type = "hoster" - __version = "0.49" + __name__ = "NetloadIn" + __type__ = "hoster" + __version__ = "0.49" - __pattern = r'https?://(?:www\.)?netload\.in/(?Pdatei|index\.php\?id=10&file_id=)(?P\w+)' + __pattern__ = r'https?://(?:www\.)?netload\.in/(?Pdatei|index\.php\?id=10&file_id=)(?P\w+)' - __description = """Netload.in hoster plugin""" - __license = "GPLv3" - __authors = [("spoob", "spoob@pyload.org"), + __description__ = """Netload.in hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("spoob", "spoob@pyload.org"), ("RaNaN", "ranan@pyload.org"), ("Gregy", "gregy@gregy.cz")] @@ -116,7 +116,7 @@ class NetloadIn(Hoster): def api_load(self, n=0): url = self.url - id_regex = re.compile(self.__pattern) + id_regex = re.compile(self.__pattern__) match = id_regex.search(url) if match: -- cgit v1.2.3