diff options
author | 2015-03-31 23:58:33 +0200 | |
---|---|---|
committer | 2015-03-31 23:58:33 +0200 | |
commit | fcaf6c9e4c5c618b8c2741ca7ee5676787b4c3f0 (patch) | |
tree | 4f325a9b18d2a5a7d8670c068c7bae1977be6d5d /module/plugins/hoster/GoogledriveCom.py | |
parent | [TusfilesNet] Fix downloadLink (diff) | |
download | pyload-fcaf6c9e4c5c618b8c2741ca7ee5676787b4c3f0.tar.xz |
Temp fixup to `filename*=UTF-8` bug
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r-- | module/plugins/hoster/GoogledriveCom.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/module/plugins/hoster/GoogledriveCom.py b/module/plugins/hoster/GoogledriveCom.py index bb4a5d1d4..66f36e6c0 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.06" + __version__ = "0.07" __pattern__ = r'https?://(?:www\.)?drive\.google\.com/file/.+' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -22,8 +22,6 @@ class GoogledriveCom(SimpleHoster): __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] - DISPOSITION = False #: Remove in 0.4.10 - NAME_PATTERN = r'"og:title" content="(?P<N>.*?)">' OFFLINE_PATTERN = r'align="center"><p class="errorMessage"' @@ -34,16 +32,6 @@ class GoogledriveCom(SimpleHoster): self.chunkLimit = 1 - #@NOTE: Temp work-around to `Content-Disposition=filename*=UTF-8` bug! - def handleDirect(self, pyfile): - self.link = self.directLink(pyfile.url, self.resumeDownload) - - if self.link: - remote = urllib2.urlopen(self.link) - name = remote.info()['Content-Disposition'].split(';') - pyfile.name = name[1].split('filename=')[1][1:-1] - - def handleFree(self, pyfile): try: link1 = re.search(r'"(https://docs.google.com/uc\?id.*?export=download)",', |