# -*- coding: utf-8 -* # # Test links: # https://drive.google.com/file/d/0B6RNTe4ygItBQm15RnJiTmMyckU/view?pli=1 import re from pyload.plugin.internal.SimpleHoster import SimpleHoster from pyload.utils import html_unescape class GoogledriveCom(SimpleHoster): __name = "GoogledriveCom" __type = "hoster" __version = "0.03" __pattern = r'https?://(?:www\.)?drive\.google\.com/file/.+' __description = """Drive.google.com hoster plugin""" __license = "GPLv3" __authors = [("zapp-brannigan", "fuerst.reinje@web.de")] DISPOSITION = False NAME_PATTERN = r'"og:title" content="(?P.*?)">' OFFLINE_PATTERN = r'align="center">

', self.html).group(1)) except AttributeError: self.error(_("Hop #2 not found")) else: self.logDebug("Next hop: %s" % link2) link3 = self.load("https://docs.google.com" + link2, just_header=True) self.logDebug("DL-Link: %s" % link3['location']) self.link = link3['location']