summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/IfolderRu.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/IfolderRu.py
parentInit cosmetics (diff)
downloadpyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz
Diffstat (limited to 'pyload/plugin/hoster/IfolderRu.py')
-rw-r--r--pyload/plugin/hoster/IfolderRu.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pyload/plugin/hoster/IfolderRu.py b/pyload/plugin/hoster/IfolderRu.py
index 984d2f3ad..f31096a1c 100644
--- a/pyload/plugin/hoster/IfolderRu.py
+++ b/pyload/plugin/hoster/IfolderRu.py
@@ -6,15 +6,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo
class IfolderRu(SimpleHoster):
- __name = "IfolderRu"
- __type = "hoster"
- __version = "0.38"
+ __name__ = "IfolderRu"
+ __type__ = "hoster"
+ __version__ = "0.38"
- __pattern = r'http://(?:www\.)?(?:ifolder\.ru|rusfolder\.(?:com|net|ru))/(?:files/)?(?P<ID>\d+).*'
+ __pattern__ = r'http://(?:www\.)?(?:ifolder\.ru|rusfolder\.(?:com|net|ru))/(?:files/)?(?P<ID>\d+).*'
- __description = """Ifolder.ru hoster plugin"""
- __license = "GPLv3"
- __authors = [("zoidberg", "zoidberg@mujmail.cz")]
+ __description__ = """Ifolder.ru hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
SIZE_REPLACEMENTS = [(u'Кб', 'KB'), (u'Мб', 'MB'), (u'Гб', 'GB')]
@@ -35,7 +35,7 @@ class IfolderRu(SimpleHoster):
def process(self, pyfile):
- file_id = re.match(self.__pattern, pyfile.url).group('ID')
+ file_id = re.match(self.__pattern__, pyfile.url).group('ID')
self.html = self.load("http://rusfolder.com/%s" % file_id, cookies=True, decode=True)
self.getFileInfo()