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