diff options
author | 2013-07-22 20:50:34 +0200 | |
---|---|---|
committer | 2013-07-22 20:50:34 +0200 | |
commit | 2edeee0532ec6d6b4b26fd045a5971f67ca455da (patch) | |
tree | 8d656afc9c18f7dba7c05d6635f898fdf58d66d6 /module/plugins/hoster/FlyFilesNet.py | |
parent | Fixed PEP 8 violations in Crypters (diff) | |
download | pyload-2edeee0532ec6d6b4b26fd045a5971f67ca455da.tar.xz |
Fixed PEP 8 violations in Hosters
Diffstat (limited to 'module/plugins/hoster/FlyFilesNet.py')
-rw-r--r-- | module/plugins/hoster/FlyFilesNet.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/FlyFilesNet.py b/module/plugins/hoster/FlyFilesNet.py index 0ffb76191..8d0ff0a08 100644 --- a/module/plugins/hoster/FlyFilesNet.py +++ b/module/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) |