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/YibaishiwuCom.py | 55 ---------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 pyload/plugins/hoster/YibaishiwuCom.py (limited to 'pyload/plugins/hoster/YibaishiwuCom.py') diff --git a/pyload/plugins/hoster/YibaishiwuCom.py b/pyload/plugins/hoster/YibaishiwuCom.py deleted file mode 100644 index d1b6bf793..000000000 --- a/pyload/plugins/hoster/YibaishiwuCom.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- - -import re - -from pyload.utils import json_loads -from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo - - -class YibaishiwuCom(SimpleHoster): - __name = "YibaishiwuCom" - __type = "hoster" - __version = "0.13" - - __pattern = r'http://(?:www\.)?(?:u\.)?115\.com/file/(?P\w+)' - - __description = """115.com hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz")] - - - NAME_PATTERN = r'file_name: \'(?P.+?)\'' - SIZE_PATTERN = r'file_size: \'(?P.+?)\'' - OFFLINE_PATTERN = ur'

哎呀!提取码不存在!不妨搜搜看吧!

' - - LINK_PATTERN = r'(/\?ct=(pickcode|download)[^"\']+)' - - - def handleFree(self): - m = re.search(self.LINK_PATTERN, self.html) - if m is None: - self.error(_("LINK_PATTERN not found")) - url = m.group(1) - self.logDebug(('FREEUSER' if m.group(2) == 'download' else 'GUEST') + ' URL', url) - - res = json_loads(self.load("http://115.com" + url, decode=False)) - if "urls" in res: - mirrors = res['urls'] - elif "data" in res: - mirrors = res['data'] - else: - mirrors = None - - for mr in mirrors: - try: - url = mr['url'].replace("\\", "") - self.logDebug("Trying URL: " + url) - self.download(url) - break - except Exception: - continue - else: - self.fail(_("No working link found")) - - -getInfo = create_getInfo(YibaishiwuCom) -- cgit v1.2.3