summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/GoogledriveCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-28 23:46:24 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-28 23:46:24 +0100
commit58878a455067837dbe72c690606157831d3afae1 (patch)
treeac59fe8fa23a2531f7fdf03341ed1eff0326f67f /module/plugins/hoster/GoogledriveCom.py
parentSpare code fixes (2) (diff)
downloadpyload-58878a455067837dbe72c690606157831d3afae1.tar.xz
Spare code fixes (3)
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r--module/plugins/hoster/GoogledriveCom.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/module/plugins/hoster/GoogledriveCom.py b/module/plugins/hoster/GoogledriveCom.py
index ad41ef040..3090d5f85 100644
--- a/module/plugins/hoster/GoogledriveCom.py
+++ b/module/plugins/hoster/GoogledriveCom.py
@@ -13,7 +13,7 @@ from module.plugins.internal.misc import html_unescape
class GoogledriveCom(SimpleHoster):
__name__ = "GoogledriveCom"
__type__ = "hoster"
- __version__ = "0.18"
+ __version__ = "0.20"
__status__ = "testing"
__pattern__ = r'https?://(?:www\.)?(drive|docs)\.google\.com/(file/d/\w+|uc\?.*id=)'
@@ -35,7 +35,7 @@ class GoogledriveCom(SimpleHoster):
def setup(self):
- self.multiDL = True
+ self.multiDL = True
self.resume_download = True
self.chunk_limit = 1
@@ -47,11 +47,12 @@ class GoogledriveCom(SimpleHoster):
if m is None:
return
- link = self.fixurl(link, "https://docs.google.com/")
- dl = self.isdownload(link, redirect=False)
+ link = self.fixurl(m.group(1), "https://docs.google.com/")
+ dl = self.isdownload(link)
- if not dl:
- self.data = self.load(link)
- else:
+ if dl:
self.link = dl
- break
+ return
+ else:
+ self.data = self.load(link)
+ \ No newline at end of file