summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-30 01:08:22 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-30 01:08:22 +0200
commitd15eb15645a91185a0eef553653df19e1e3858ff (patch)
tree63f93fd5b64e1ef51f923a98b1c36489ad607b1a /module/plugins/hoster
parent[UlozTo] Fix https://github.com/pyload/pyload/issues/1300 (diff)
downloadpyload-d15eb15645a91185a0eef553653df19e1e3858ff.tar.xz
[GoogledriveCom] Fix handleDirect
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/GoogledriveCom.py6
-rw-r--r--module/plugins/hoster/OneFichierCom.py2
2 files changed, 4 insertions, 4 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:]
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py
index e585b2d59..0c26d4277 100644
--- a/module/plugins/hoster/OneFichierCom.py
+++ b/module/plugins/hoster/OneFichierCom.py
@@ -48,7 +48,7 @@ class OneFichierCom(SimpleHoster):
if self.link:
remote = urllib2.urlopen(self.link)
- name = remote.info()['Content-Disposition'].split(';')
+ name = remote.info()['Content-Disposition'].split(';')
pyfile.name = name[1].split('filename=')[1][1:]