summaryrefslogtreecommitdiffstats
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
parent[UlozTo] Fix https://github.com/pyload/pyload/issues/1300 (diff)
downloadpyload-d15eb15645a91185a0eef553653df19e1e3858ff.tar.xz
[GoogledriveCom] Fix handleDirect
-rw-r--r--module/plugins/hoster/GoogledriveCom.py6
-rw-r--r--module/plugins/hoster/OneFichierCom.py2
-rw-r--r--module/plugins/internal/SimpleCrypter.py2
-rw-r--r--module/plugins/internal/SimpleHoster.py2
4 files changed, 6 insertions, 6 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:]
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 9946bb115..892144ef4 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -20,7 +20,7 @@ class SimpleCrypter(Crypter, SimpleHoster):
__description__ = """Simple decrypter plugin"""
__license__ = "GPLv3"
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com" )]
+ __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
"""
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index bcdd1cbef..f9a273d5e 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -253,7 +253,7 @@ class SimpleHoster(Hoster):
__description__ = """Simple hoster plugin"""
__license__ = "GPLv3"
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com" )]
+ __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
"""