diff options
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r-- | module/plugins/hoster/GoogledriveCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/GoogledriveCom.py b/module/plugins/hoster/GoogledriveCom.py index 81926080a..57a5ab7fb 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.04" + __version__ = "0.05" __pattern__ = r'https?://(?:www\.)?drive\.google\.com/file/.+' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -39,8 +39,8 @@ class GoogledriveCom(SimpleHoster): self.link = self.directLink(pyfile.url, self.resumeDownload) if self.link: - remote = urllib2.urlopen(link) - name = remote.info()['Content-Disposition'].split(';') + remote = urllib2.urlopen(self.link) + name = remote.info()['Content-Disposition'].split(';') pyfile.name = name[1].split('filename=')[1][1:] |