summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/FlyFilesNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/FlyFilesNet.py')
-rw-r--r--pyload/plugins/hoster/FlyFilesNet.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyload/plugins/hoster/FlyFilesNet.py b/pyload/plugins/hoster/FlyFilesNet.py
index b8b392e8b..05e37e95a 100644
--- a/pyload/plugins/hoster/FlyFilesNet.py
+++ b/pyload/plugins/hoster/FlyFilesNet.py
@@ -9,21 +9,22 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster
class FlyFilesNet(SimpleHoster):
- __name__ = "FlyFilesNet"
- __type__ = "hoster"
+ __name__ = "FlyFilesNet"
+ __type__ = "hoster"
__version__ = "0.1"
__pattern__ = r'http://(?:www\.)?flyfiles\.net/.*'
__description__ = """FlyFiles.net hoster plugin"""
- __authors__ = []
+ __license__ = "GPLv3"
+ __authors__ = []
SESSION_PATTERN = r'flyfiles\.net/(.*)/.*'
- FILE_NAME_PATTERN = r'flyfiles\.net/.*/(.*)'
+ NAME_PATTERN = r'flyfiles\.net/.*/(.*)'
def process(self, pyfile):
- name = re.search(self.FILE_NAME_PATTERN, pyfile.url).group(1)
+ name = re.search(self.NAME_PATTERN, pyfile.url).group(1)
pyfile.name = unquote_plus(name)
session = re.search(self.SESSION_PATTERN, pyfile.url).group(1)
@@ -35,11 +36,10 @@ class FlyFilesNet(SimpleHoster):
self.logDebug("Parsed URL: %s" % parsed_url)
if parsed_url == '#downlink|' or parsed_url == "#downlink|#":
- self.logWarning("Could not get the download URL. Please wait 10 minutes.")
+ self.logWarning(_("Could not get the download URL. Please wait 10 minutes"))
self.wait(10 * 60, True)
self.retry()
download_url = parsed_url.replace('#downlink|', '')
- self.logDebug("Download URL: %s" % download_url)
self.download(download_url)