summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/WebshareCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-10 19:07:53 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-10 19:07:53 +0100
commit2439bc22671dde697817291b721bfddb792a93b4 (patch)
treedad4615b7f1d664263af6a85392282329aa0b8e0 /pyload/plugins/hoster/WebshareCz.py
parentRevert plugin directory structure (diff)
downloadpyload-2439bc22671dde697817291b721bfddb792a93b4.tar.xz
Fix plugins key attributes
Diffstat (limited to 'pyload/plugins/hoster/WebshareCz.py')
-rw-r--r--pyload/plugins/hoster/WebshareCz.py18
1 files changed, 9 insertions, 9 deletions
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})