summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FlyFilesNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/FlyFilesNet.py')
-rw-r--r--module/plugins/hoster/FlyFilesNet.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/module/plugins/hoster/FlyFilesNet.py b/module/plugins/hoster/FlyFilesNet.py
index 361537927..689eb3c66 100644
--- a/module/plugins/hoster/FlyFilesNet.py
+++ b/module/plugins/hoster/FlyFilesNet.py
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
import re
-
-from urllib import unquote
+import urllib
from module.network.RequestFactory import getURL
from module.plugins.internal.SimpleHoster import SimpleHoster
@@ -13,7 +12,8 @@ class FlyFilesNet(SimpleHoster):
__type__ = "hoster"
__version__ = "0.10"
- __pattern__ = r'http://(?:www\.)?flyfiles\.net/.*'
+ __pattern__ = r'http://(?:www\.)?flyfiles\.net/.+'
+ __config__ = [("use_premium", "bool", "Use premium account if available", True)]
__description__ = """FlyFiles.net hoster plugin"""
__license__ = "GPLv3"
@@ -25,14 +25,14 @@ class FlyFilesNet(SimpleHoster):
def process(self, pyfile):
name = re.search(self.NAME_PATTERN, pyfile.url).group(1)
- pyfile.name = unquote_plus(name)
+ pyfile.name = urllib.unquote_plus(name)
session = re.search(self.SESSION_PATTERN, pyfile.url).group(1)
url = "http://flyfiles.net"
# get download URL
- parsed_url = getURL(url, post={"getDownLink": session}, cookies=True)
+ parsed_url = getURL(url, post={"getDownLink": session})
self.logDebug("Parsed URL: %s" % parsed_url)
if parsed_url == '#downlink|' or parsed_url == "#downlink|#":
@@ -40,6 +40,4 @@ class FlyFilesNet(SimpleHoster):
self.wait(10 * 60, True)
self.retry()
- download_url = parsed_url.replace('#downlink|', '')
-
- self.download(download_url)
+ self.link = parsed_url.replace('#downlink|', '')