From acc46fc3497a66a427b795b4a22c6e71d69185a1 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 13 Dec 2014 15:56:57 +0100 Subject: Update --- pyload/plugins/hoster/FlyFilesNet.py | 45 ------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 pyload/plugins/hoster/FlyFilesNet.py (limited to 'pyload/plugins/hoster/FlyFilesNet.py') diff --git a/pyload/plugins/hoster/FlyFilesNet.py b/pyload/plugins/hoster/FlyFilesNet.py deleted file mode 100644 index 3853cc309..000000000 --- a/pyload/plugins/hoster/FlyFilesNet.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from urllib import unquote - -from pyload.network.RequestFactory import getURL -from pyload.plugins.internal.SimpleHoster import SimpleHoster - - -class FlyFilesNet(SimpleHoster): - __name = "FlyFilesNet" - __type = "hoster" - __version = "0.10" - - __pattern = r'http://(?:www\.)?flyfiles\.net/.*' - - __description = """FlyFiles.net hoster plugin""" - __license = "GPLv3" - __authors = [] - - SESSION_PATTERN = r'flyfiles\.net/(.*)/.*' - NAME_PATTERN = r'flyfiles\.net/.*/(.*)' - - - def process(self, pyfile): - 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) - - url = "http://flyfiles.net" - - # get download URL - parsed_url = getURL(url, post={"getDownLink": session}, cookies=True) - 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.wait(10 * 60, True) - self.retry() - - download_url = parsed_url.replace('#downlink|', '') - - self.download(download_url) -- cgit v1.2.3