diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-30 19:20:11 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-30 19:20:11 +0200 |
commit | cc5accb444abc29bd0e23e6a0f78cf5f5a993640 (patch) | |
tree | 597ca180a2ea31c351cedb52d661a19373930f24 /module/plugins/hoster/BasePlugin.py | |
parent | Merge pull request #1381 from GammaC0de/GammaC0de-UpleaCom-size (diff) | |
download | pyload-cc5accb444abc29bd0e23e6a0f78cf5f5a993640.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
-rw-r--r-- | module/plugins/hoster/BasePlugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py index 418f446eb..28a916fe8 100644 --- a/module/plugins/hoster/BasePlugin.py +++ b/module/plugins/hoster/BasePlugin.py @@ -13,7 +13,7 @@ from module.plugins.Hoster import Hoster class BasePlugin(Hoster): __name__ = "BasePlugin" __type__ = "hoster" - __version__ = "0.41" + __version__ = "0.42" __pattern__ = r'^unmatchable$' @@ -46,7 +46,7 @@ class BasePlugin(Hoster): try: if disposition: content = urllib2.urlopen(url).info()['Content-Disposition'].split(';') - self.pyfile.name = content[1].split('filename=')[1][1:-1] or self.pyfile.name + self.pyfile.name = content[1].split('filename=')[1].strip('"\'') or self.pyfile.name finally: return super(BasePlugin, self).download(url, get, post, ref, cookies, False) |