From 1eaa8afc5f2226981908f57bc19333fe288e2c08 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 15 Oct 2018 13:02:13 +0200 Subject: [PATCH] Only display the filename on sidebar download queue --- plugins/Sidebar/SidebarPlugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index cc179fbb..6780b527 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -340,8 +340,10 @@ class UiWebsocketPlugin(object): i = 0 for bad_file, tries in site.bad_files.iteritems(): i += 1 - body.append(_(u"""
  • {bad_file}
  • """, { - "bad_file": cgi.escape(bad_file, True), "tries": _.pluralize(tries, "{} try", "{} tries") + body.append(_(u"""
  • {bad_filename}
  • """, { + "bad_file_path": cgi.escape(bad_file, True), + "bad_filename": cgi.escape(helper.getFilename(bad_file), True), + "tries": _.pluralize(tries, "{} try", "{} tries") })) if i > 30: break