summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-08-29 22:02:36 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-08-29 22:02:36 +0200
commit2a3405db57862c5644643fd9b8bad0a74b0c1cbe (patch)
tree15006348cc4e57e31083b2693e5d20a824fb7887
parent[Hoster] fix pyfile.name not updated if disposition (diff)
downloadpyload-2a3405db57862c5644643fd9b8bad0a74b0c1cbe.tar.xz
Update Hoster.py
-rw-r--r--module/plugins/internal/Hoster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index a8b8922bb..924672acf 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -412,7 +412,7 @@ class Hoster(Plugin):
if disposition and newname:
finalname = urlparse.urlparse(newname).path.split('/')[-1].split(' filename*=')[0]
- if finalname != newname
+ if finalname != newname:
try:
os.rename(fs_join(location, newname), fs_join(location, finalname))