summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/Account.py2
-rw-r--r--module/plugins/internal/Hoster.py6
-rw-r--r--module/plugins/internal/MultiHoster.py4
3 files changed, 5 insertions, 7 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index b8230a09d..788b62e7e 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -5,8 +5,6 @@ import time
import threading
import traceback
-from operator import itemgetter
-
from module.plugins.internal.Plugin import Plugin
from module.utils import compare_time, lock, parseFileSize as parse_size
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index 15344b86b..fdfe92593 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -47,7 +47,7 @@ def create_getInfo(klass):
class Hoster(Plugin):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.08"
+ __version__ = "0.09"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -355,7 +355,7 @@ class Hoster(Plugin):
return url
- def download(self, url, get={}, post={}, ref=True, cookies=True, disposition=False):
+ def download(self, url, get={}, post={}, ref=True, cookies=True, disposition=True):
"""
Downloads the content at url to download folder
@@ -420,7 +420,7 @@ class Hoster(Plugin):
self.pyfile.size = self.req.size
if newname:
- newname = urlparse.urlparse(newname).path.split('/')[-1]
+ newname = urlparse.urlparse(newname).path.split('/')[-1].split('*=')[-1] #@TODO: Remove in 0.4.10
if disposition and newname is not name:
self.log_info(_("%(name)s saved as %(newname)s") % {'name': name, 'newname': newname})
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py
index aec83e246..8e336fbc6 100644
--- a/module/plugins/internal/MultiHoster.py
+++ b/module/plugins/internal/MultiHoster.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, r
class MultiHoster(SimpleHoster):
__name__ = "MultiHoster"
__type__ = "hoster"
- __version__ = "0.45"
+ __version__ = "0.46"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -80,7 +80,7 @@ class MultiHoster(SimpleHoster):
if not self.last_download:
self.log_info(_("Downloading file..."))
- self.download(self.link, disposition=True)
+ self.download(self.link, disposition=self.DISPOSITION)
self.check_file()