From 2439bc22671dde697817291b721bfddb792a93b4 Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@gmail.com>
Date: Wed, 10 Dec 2014 19:07:53 +0100
Subject: Fix plugins key attributes

---
 pyload/plugins/hoster/WebshareCz.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'pyload/plugins/hoster/WebshareCz.py')

diff --git a/pyload/plugins/hoster/WebshareCz.py b/pyload/plugins/hoster/WebshareCz.py
index 0a6063062..4b26de627 100644
--- a/pyload/plugins/hoster/WebshareCz.py
+++ b/pyload/plugins/hoster/WebshareCz.py
@@ -8,7 +8,7 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster
 
 def getInfo(urls):
     for url in urls:
-        fid = re.search(WebshareCz.__pattern__, url).group('ID')
+        fid = re.search(WebshareCz.__pattern, url).group('ID')
         api_data = getURL("https://webshare.cz/api/file_info/", post={'ident': fid})
 
         if 'File not found' in api_data:
@@ -22,15 +22,15 @@ def getInfo(urls):
 
 
 class WebshareCz(SimpleHoster):
-    __name__    = "WebshareCz"
-    __type__    = "hoster"
-    __version__ = "0.14"
+    __name    = "WebshareCz"
+    __type    = "hoster"
+    __version = "0.14"
 
-    __pattern__ = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)'
+    __pattern = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)'
 
-    __description__ = """WebShare.cz hoster plugin"""
-    __license__     = "GPLv3"
-    __authors__     = [("stickell", "l.stickell@yahoo.it")]
+    __description = """WebShare.cz hoster plugin"""
+    __license     = "GPLv3"
+    __authors     = [("stickell", "l.stickell@yahoo.it")]
 
 
     def handleFree(self):
@@ -48,7 +48,7 @@ class WebshareCz(SimpleHoster):
     def getFileInfo(self):
         self.logDebug("URL: %s" % self.pyfile.url)
 
-        self.fid = re.match(self.__pattern__, self.pyfile.url).group('ID')
+        self.fid = re.match(self.__pattern, self.pyfile.url).group('ID')
 
         self.load(self.pyfile.url)
         api_data = self.load('https://webshare.cz/api/file_info/', post={'ident': self.fid})
-- 
cgit v1.2.3