From acc46fc3497a66a427b795b4a22c6e71d69185a1 Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@gmail.com>
Date: Sat, 13 Dec 2014 15:56:57 +0100
Subject: Update

---
 pyload/plugins/hoster/FourSharedCom.py | 61 ----------------------------------
 1 file changed, 61 deletions(-)
 delete mode 100644 pyload/plugins/hoster/FourSharedCom.py

(limited to 'pyload/plugins/hoster/FourSharedCom.py')

diff --git a/pyload/plugins/hoster/FourSharedCom.py b/pyload/plugins/hoster/FourSharedCom.py
deleted file mode 100644
index c1066454a..000000000
--- a/pyload/plugins/hoster/FourSharedCom.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-
-
-class FourSharedCom(SimpleHoster):
-    __name    = "FourSharedCom"
-    __type    = "hoster"
-    __version = "0.30"
-
-    __pattern = r'https?://(?:www\.)?4shared(\-china)?\.com/(account/)?(download|get|file|document|photo|video|audio|mp3|office|rar|zip|archive|music)/.+?/.*'
-
-    __description = """4Shared.com hoster plugin"""
-    __license     = "GPLv3"
-    __authors     = [("jeix", "jeix@hasnomail.de"),
-                       ("zoidberg", "zoidberg@mujmail.cz")]
-
-
-    NAME_PATTERN = r'<meta name="title" content="(?P<N>.+?)"'
-    SIZE_PATTERN = r'<span title="Size: (?P<S>[\d.,]+) (?P<U>[\w^_]+)">'
-    OFFLINE_PATTERN = r'The file link that you requested is not valid\.|This file was deleted.'
-
-    NAME_REPLACEMENTS = [(r"&#(\d+).", lambda m: unichr(int(m.group(1))))]
-    SIZE_REPLACEMENTS = [(",", "")]
-
-    DOWNLOAD_URL_PATTERN = r'name="d3link" value="(.*?)"'
-    DOWNLOAD_BUTTON_PATTERN = r'id="btnLink" href="(.*?)"'
-    FID_PATTERN = r'name="d3fid" value="(.*?)"'
-
-
-    def handleFree(self):
-        if not self.account:
-            self.fail(_("User not logged in"))
-
-        m = re.search(self.DOWNLOAD_BUTTON_PATTERN, self.html)
-        if m:
-            link = m.group(1)
-        else:
-            link = re.sub(r'/(download|get|file|document|photo|video|audio)/', r'/get/', self.pyfile.url)
-
-        self.html = self.load(link)
-
-        m = re.search(self.DOWNLOAD_URL_PATTERN, self.html)
-        if m is None:
-            self.error(_("Download link"))
-        link = m.group(1)
-
-        try:
-            m = re.search(self.FID_PATTERN, self.html)
-            res = self.load('http://www.4shared.com/web/d2/getFreeDownloadLimitInfo?fileId=%s' % m.group(1))
-            self.logDebug(res)
-        except Exception:
-            pass
-
-        self.wait(20)
-        self.download(link)
-
-
-getInfo = create_getInfo(FourSharedCom)
-- 
cgit v1.2.3