summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/FlyFilesNet.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 20:50:34 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 21:20:06 +0200
commitaaaf5a4cddec894aacd7400c59a9f2f5e710362f (patch)
tree9d9e89aff86598b3ffcc86117abd554b193e28b5 /pyload/plugins/hoster/FlyFilesNet.py
parentimplemented media type filter (diff)
downloadpyload-aaaf5a4cddec894aacd7400c59a9f2f5e710362f.tar.xz
Fixed PEP 8 violations in Hosters
(cherry picked from commit 2edeee0532ec6d6b4b26fd045a5971f67ca455da) Conflicts: pyload/plugins/hoster/BasePlugin.py pyload/plugins/hoster/MultishareCz.py pyload/plugins/hoster/NetloadIn.py pyload/plugins/hoster/PremiumizeMe.py pyload/plugins/hoster/RapidshareCom.py
Diffstat (limited to 'pyload/plugins/hoster/FlyFilesNet.py')
-rw-r--r--pyload/plugins/hoster/FlyFilesNet.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugins/hoster/FlyFilesNet.py b/pyload/plugins/hoster/FlyFilesNet.py
index 0ffb76191..8d0ff0a08 100644
--- a/pyload/plugins/hoster/FlyFilesNet.py
+++ b/pyload/plugins/hoster/FlyFilesNet.py
@@ -4,9 +4,10 @@
import re
import urllib
-from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
+from module.plugins.internal.SimpleHoster import SimpleHoster
from module.network.RequestFactory import getURL
+
class FlyFilesNet(SimpleHoster):
__name__ = "FlyFilesNet"
__version__ = "0.1"
@@ -17,7 +18,6 @@ class FlyFilesNet(SimpleHoster):
FILE_NAME_PATTERN = r'flyfiles\.net/.*/(.*)'
def process(self, pyfile):
-
pyfile.name = re.search(self.FILE_NAME_PATTERN, pyfile.url).group(1)
pyfile.name = urllib.unquote_plus(pyfile.name)
@@ -31,11 +31,11 @@ class FlyFilesNet(SimpleHoster):
if parsed_url == '#downlink|' or parsed_url == "#downlink|#":
self.logWarning("Could not get the download URL. Please wait 10 minutes.")
- self.setWait(600, True) # wait 10 minutes
+ self.setWait(600, True) # wait 10 minutes
self.wait()
self.retry()
- download_url = parsed_url.replace('#downlink|','')
+ download_url = parsed_url.replace('#downlink|', '')
self.logDebug("Download URL: %s" % download_url)
self.download(download_url)