summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BasePlugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-30 22:04:29 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-30 22:04:29 +0200
commit416acbd2adb459a04a52c3270ea0a31bfa40fd84 (patch)
tree4e200e51d395cf0f040201a08ce88633e2fe41c3 /module/plugins/hoster/BasePlugin.py
parentSpare code cosmetics (diff)
downloadpyload-416acbd2adb459a04a52c3270ea0a31bfa40fd84.tar.xz
Fix https://github.com/pyload/pyload/issues/1374
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
-rw-r--r--module/plugins/hoster/BasePlugin.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py
index 28a916fe8..962c8887b 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.42"
+ __version__ = "0.43"
__pattern__ = r'^unmatchable$'
@@ -41,16 +41,6 @@ class BasePlugin(Hoster):
self.resumeDownload = True
- #: Work-around to `filename*=UTF-8` bug; remove in 0.4.10
- def download(self, url, get={}, post={}, ref=True, cookies=True, disposition=False):
- try:
- if disposition:
- content = urllib2.urlopen(url).info()['Content-Disposition'].split(';')
- 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)
-
-
def process(self, pyfile):
"""main function"""