diff options
author | 2014-04-11 12:26:05 +0200 | |
---|---|---|
committer | 2014-04-21 17:22:19 +0200 | |
commit | 41559c6d7c17862cc5640631e8a1bb7a00f923da (patch) | |
tree | d268d8d659b3099f561f03a18e5efe4fbf29ef8a /pyload/plugins/hoster/PremiumizeMe.py | |
parent | Fix __pattern__ www (diff) | |
download | pyload-41559c6d7c17862cc5640631e8a1bb7a00f923da.tar.xz |
Use pyfile instead self.pyfile
Merges vuolter/pyload@b7f6e2e
(cherry picked from commit 4d978dedd16418a4e7d8c81bd819a6a5fa432057)
Diffstat (limited to 'pyload/plugins/hoster/PremiumizeMe.py')
-rw-r--r-- | pyload/plugins/hoster/PremiumizeMe.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugins/hoster/PremiumizeMe.py b/pyload/plugins/hoster/PremiumizeMe.py index 79b6e3fad..7e646fdf9 100644 --- a/pyload/plugins/hoster/PremiumizeMe.py +++ b/pyload/plugins/hoster/PremiumizeMe.py @@ -26,13 +26,13 @@ class PremiumizeMe(Hoster): # In some cases hostsers do not supply us with a filename at download, so we # are going to set a fall back filename (e.g. for freakshare or xfileshare) - self.pyfile.name = self.pyfile.name.split('/').pop() # Remove everthing before last slash + pyfile.name = pyfile.name.split('/').pop() # Remove everthing before last slash # Correction for automatic assigned filename: Removing html at end if needed suffix_to_remove = ["html", "htm", "php", "php3", "asp", "shtm", "shtml", "cfml", "cfm"] - temp = self.pyfile.name.split('.') + temp = pyfile.name.split('.') if temp.pop() in suffix_to_remove: - self.pyfile.name = ".".join(temp) + pyfile.name = ".".join(temp) # Get account data (user, data) = self.account.selectAccount() @@ -40,7 +40,7 @@ class PremiumizeMe(Hoster): # Get rewritten link using the premiumize.me api v1 (see https://secure.premiumize.me/?show=api) answer = self.load( "https://api.premiumize.me/pm-api/v1.php?method=directdownloadlink¶ms[login]=%s¶ms[pass]=%s¶ms[link]=%s" % ( - user, data['password'], self.pyfile.url)) + user, data['password'], pyfile.url)) data = json_loads(answer) # Check status and decide what to do |