summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 12:02:59 +0200
committerGravatar synweap15 <shamdog+github@gmail.com> 2014-07-09 12:02:59 +0200
commit352301e4892d311d1a4cf6127f6bc70bc23eede3 (patch)
tree2e0b62b1d5377b257461f829ee072d9b29c5c5e9 /module/plugins/hoster
parentremove enviroment line (diff)
downloadpyload-352301e4892d311d1a4cf6127f6bc70bc23eede3.tar.xz
remove blank lines and unused imports
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/NoPremiumPl.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/module/plugins/hoster/NoPremiumPl.py b/module/plugins/hoster/NoPremiumPl.py
index 7665e589f..bd5260a55 100644
--- a/module/plugins/hoster/NoPremiumPl.py
+++ b/module/plugins/hoster/NoPremiumPl.py
@@ -9,7 +9,6 @@ from module.plugins.internal.SimpleHoster import SimpleHoster
class NoPremiumPl(SimpleHoster):
-
__name__ = "NoPremiumPl"
__version__ = "0.01"
__type__ = "hoster"
@@ -30,42 +29,31 @@ class NoPremiumPl(SimpleHoster):
_pwd = False
def setup(self):
-
self.resumeDownload = True
self.multiDL = True
def get_username_password(self):
-
if not self.account:
-
self.fail("[NoPremium.pl] Zaloguj się we wtyczce NoPremium.pl lub ją wyłącz")
-
else:
-
self._usr = self.account.getAccountData(self.user).get('usr')
self._pwd = self.account.getAccountData(self.user).get('pwd')
def runFileQuery(self, url, mode=None):
-
query = self._api_query.copy()
-
query["username"] = self._usr
query["password"] = self._pwd
-
query["url"] = url
if mode == "fileinfo":
query['check'] = 2
query['loc'] = 1
-
self.logDebug(query)
return self.load(self._api_url, post=query)
def process(self, pyfile):
-
self.get_username_password()
-
try:
data = self.runFileQuery(pyfile.url, 'fileinfo')
except Exception as e: