diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 19:15:28 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 19:15:28 +0200 |
commit | 9e44724d6dda3e1f47cf4d6de4b3e521a244ba4b (patch) | |
tree | 258736a130c3b227ff2c2d6c0ef95a87e6ce8c44 /module/plugins/hooks/UpdateManager.py | |
parent | Fix http://forum.pyload.org/viewtopic.php?f=12&t=4410 (diff) | |
download | pyload-9e44724d6dda3e1f47cf4d6de4b3e521a244ba4b.tar.xz |
Fix content-disposition
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 0de3d05dc..2f82bc498 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -2,14 +2,13 @@ from __future__ import with_statement +import operator import os import re import sys import time import traceback -from operator import itemgetter - from module.plugins.internal.Addon import Expose, Addon, threaded from module.plugins.internal.Plugin import exists from module.utils import fs_encode, save_join as fs_join @@ -224,7 +223,7 @@ class UpdateManager(Addon): 'name': n, }) - for plugin in sorted(updatelist, key=itemgetter("type", "name")): + for plugin in sorted(updatelist, key=operator.itemgetter("type", "name")): filename = plugin['name'] prefix = plugin['type'] version = plugin['version'] |