summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/GoogledriveCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-09 17:42:31 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-09 17:42:31 +0100
commit6616c00ba1c40f5d56959bd0e4725f26250e1292 (patch)
tree17ca0a420cf6c104c9a78a0d31d7a81fc7270f5c /module/plugins/hoster/GoogledriveCom.py
parent[CaptchaService] Cleanup (diff)
downloadpyload-6616c00ba1c40f5d56959bd0e4725f26250e1292.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r--module/plugins/hoster/GoogledriveCom.py6
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)