From de034056468bb5cea26351be1d76f01fd2826395 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Fri, 12 Oct 2012 23:53:45 +0200 Subject: Cleanup. --- module/plugins/hoster/ZShareNet.py | 70 -------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 module/plugins/hoster/ZShareNet.py (limited to 'module/plugins/hoster/ZShareNet.py') diff --git a/module/plugins/hoster/ZShareNet.py b/module/plugins/hoster/ZShareNet.py deleted file mode 100644 index 6ef456d97..000000000 --- a/module/plugins/hoster/ZShareNet.py +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import re -import random - -from module.utils import parseFileSize -from module.plugins.Hoster import Hoster - -class ZShareNet(Hoster): - __name__ = "ZShareNet" - __type__ = "hoster" - __pattern__ = r"http://[\w\.]*?zshare\.net/(download|video|image|audio|flash)/.*" - __version__ = "0.2" - __description__ = """ZShareNet Download Hoster""" - __author_name__ = ("espes","Cptn Sandwich") - - def setup(self): - self.multiDL = False - self.html = None - - def process(self, pyfile): - self.pyfile = pyfile - - self.pyfile.url = re.sub("(video|image|audio|flash)","download",self.pyfile.url) - - self.html = self.load(pyfile.url) - if "File Not Found" in self.html: - self.offline() - - filenameMatch = re.search("File Name:.*?(.*?)", self.html, re.DOTALL) - filesizeMatch = re.search("File Size:.*?([^<]+)", self.html, re.DOTALL) - if not filenameMatch or not filesizeMatch: - self.offline() - filename = filenameMatch.group(1) - filesize = filesizeMatch.group(1) - if filename.strip() == "": - self.offline() - - pyfile.name = filename - - pyfile.size = parseFileSize(filesize) - - if '