diff options
author | 2015-02-16 03:40:45 +0100 | |
---|---|---|
committer | 2015-02-16 03:40:45 +0100 | |
commit | fcead1870013b6a970eca7878a66dbe783c80ea3 (patch) | |
tree | 9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/hoster/WebshareCz.py | |
parent | Init cosmetics (diff) | |
download | pyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz |
Partially revert acc46fc3497a66a427b795b4a22c6e71d69185a1
Diffstat (limited to 'pyload/plugin/hoster/WebshareCz.py')
-rw-r--r-- | pyload/plugin/hoster/WebshareCz.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hoster/WebshareCz.py b/pyload/plugin/hoster/WebshareCz.py index 4f5b78d68..946200b58 100644 --- a/pyload/plugin/hoster/WebshareCz.py +++ b/pyload/plugin/hoster/WebshareCz.py @@ -8,7 +8,7 @@ from pyload.plugin.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}) |