diff options
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r-- | module/plugins/hoster/GoogledriveCom.py | 17 |
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 |