diff options
Diffstat (limited to 'pyload/plugins/hoster/FlyFilesNet.py')
-rw-r--r-- | pyload/plugins/hoster/FlyFilesNet.py | 8 |
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) |