From 5c6be5d6d0856ea33cbd72451e552d12d3f14304 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 21 Jul 2019 12:58:48 +0200 Subject: [PATCH] Fix for python 3 and existing unrar entry in db deleted unnecessary lines in config html template --- cps/helper.py | 1 + cps/templates/config_edit.html | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index 9d3b3290..f2fe7572 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -555,6 +555,7 @@ def check_unrar(unrarLocation): try: if sys.version_info < (3, 0): unrarLocation = unrarLocation.encode(sys.getfilesystemencoding()) + unrarLocation = [unrarLocation] for lines in process_wait(unrarLocation): value = re.search('UNRAR (.*) freeware', lines) if value: diff --git a/cps/templates/config_edit.html b/cps/templates/config_edit.html index 90edbb5a..4a5b154d 100644 --- a/cps/templates/config_edit.html +++ b/cps/templates/config_edit.html @@ -269,20 +269,6 @@ {% endfor %} - - {% endif %} {% endif %}