diff options
author | Stefano <l.stickell@yahoo.it> | 2013-09-04 20:58:27 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-09-07 20:32:35 +0200 |
commit | 65004e366d4cba99a506c5bea1157caceb3705a8 (patch) | |
tree | ed3ba38beb67b7686316f6dcce0fbffc7393b9d5 | |
parent | Uploadhero: changed domain from COM to CO (diff) | |
download | pyload-65004e366d4cba99a506c5bea1157caceb3705a8.tar.xz |
XFileSharingPro: fixed filename override on premium direct links after
cbb3d4c6a590f848f94b34faf19bef849e39e13a
See also #248
(cherry picked from commit 07ebba11f1dedfa2b00ed80bb3263b0f70588be2)
-rw-r--r-- | pyload/plugins/hoster/XFileSharingPro.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pyload/plugins/hoster/XFileSharingPro.py b/pyload/plugins/hoster/XFileSharingPro.py index ec093d28d..1ea4ce669 100644 --- a/pyload/plugins/hoster/XFileSharingPro.py +++ b/pyload/plugins/hoster/XFileSharingPro.py @@ -35,7 +35,7 @@ class XFileSharingPro(SimpleHoster): __name__ = "XFileSharingPro" __type__ = "hoster" __pattern__ = r"^unmatchable$" - __version__ = "0.19" + __version__ = "0.20" __description__ = """XFileSharingPro common hoster base""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") @@ -75,10 +75,6 @@ class XFileSharingPro(SimpleHoster): else: self.location = self.getDirectDownloadLink() - if not self.file_info: - pyfile.name = html_unescape(unquote(urlparse( - self.location if self.location else pyfile.url).path.split("/")[-1])) - # self.load will fail because pyfile.url is a direct link to the download if self.location # is set so it will be executed only if pyfile.url is not a direct link (location not set). if not self.location: @@ -87,6 +83,8 @@ class XFileSharingPro(SimpleHoster): self.file_info = self.getFileInfo() except PluginParseError: self.file_info = None + pyfile.name = html_unescape(unquote(urlparse( + self.location if self.location else pyfile.url).path.split("/")[-1])) if self.location: self.startDownload(self.location) |