diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-09 17:42:31 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-09 17:42:31 +0100 |
commit | 6616c00ba1c40f5d56959bd0e4725f26250e1292 (patch) | |
tree | 17ca0a420cf6c104c9a78a0d31d7a81fc7270f5c /module/plugins/hoster/GoogledriveCom.py | |
parent | [CaptchaService] Cleanup (diff) | |
download | pyload-6616c00ba1c40f5d56959bd0e4725f26250e1292.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r-- | module/plugins/hoster/GoogledriveCom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/GoogledriveCom.py b/module/plugins/hoster/GoogledriveCom.py index 1fcdf8ff0..0c8ca9c52 100644 --- a/module/plugins/hoster/GoogledriveCom.py +++ b/module/plugins/hoster/GoogledriveCom.py @@ -12,7 +12,7 @@ from module.utils import html_unescape class GoogledriveCom(SimpleHoster): __name__ = "GoogledriveCom" __type__ = "hoster" - __version__ = "0.02" + __version__ = "0.03" __pattern__ = r'https?://(?:www\.)?drive\.google\.com/file/.+' @@ -21,6 +21,8 @@ class GoogledriveCom(SimpleHoster): __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] + DISPOSITION = False + NAME_PATTERN = r'"og:title" content="(?P<N>.*?)">' OFFLINE_PATTERN = r'align="center"><p class="errorMessage"' @@ -57,7 +59,7 @@ class GoogledriveCom(SimpleHoster): link3 = self.load("https://docs.google.com" + link2, just_header=True) self.logDebug("DL-Link: %s" % link3['location']) - self.link = link3['location'] #@NOTE: I don't use disposition=True because it breaks the filename. + self.link = link3['location'] getInfo = create_getInfo(GoogledriveCom) |