summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 15:46:46 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-02 15:46:46 +0100
commit8d1231901b3ccccdc2d3d2593c0baf4ff7be4220 (patch)
treeddb5c484c01d4fa890c7aa678280502d7f48da00 /module/plugins/hoster
parent[SimpleHoster] Fix _isDirectLink (diff)
downloadpyload-8d1231901b3ccccdc2d3d2593c0baf4ff7be4220.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/RealdebridCom.py2
-rw-r--r--module/plugins/hoster/RehostTo.py7
2 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index 49cfc01f7..5a31cc388 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -3,7 +3,7 @@
import re
from random import randrange
-from urllib import quote, unquote
+from urllib import unquote
from time import time
from module.common.json_layer import json_loads
diff --git a/module/plugins/hoster/RehostTo.py b/module/plugins/hoster/RehostTo.py
index 8cfe833fd..5dd17e374 100644
--- a/module/plugins/hoster/RehostTo.py
+++ b/module/plugins/hoster/RehostTo.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from urllib import quote, unquote
+from urllib import unquote
from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
@@ -22,12 +22,11 @@ class RehostTo(MultiHoster):
def handlePremium(self):
- data = self.account.getAccountInfo(self.user)
- long_ses = data['long_ses']
+ data = self.account.getAccountInfo(self.user)
self.download("http://rehost.to/process_download.php",
get={'user': "cookie",
- 'pass': long_ses,
+ 'pass': data['long_ses'],
'dl' : self.pyfile.url},
disposition=True)