From 2bf2206a1ea050a67881c37886b90ee64d79f682 Mon Sep 17 00:00:00 2001 From: Chuddah Date: Mon, 17 Feb 2020 11:59:48 +0000 Subject: [PATCH] Move the responsibility of the maximum number of threads to the UI. Previously the user was able to set any number to limitThreads UI component but internally that was reduced to be a maximum of 50 which is deceiving to the user. Set this is set as a boundary in the UI. This also fixes a bug that the user could set the number of threads to zero which follows from GIGO; but let the UI assist by placing a min number of threads to 1. --- jellyfin_kodi/library.py | 2 +- resources/settings.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jellyfin_kodi/library.py b/jellyfin_kodi/library.py index 4d341979..8ff6b24a 100644 --- a/jellyfin_kodi/library.py +++ b/jellyfin_kodi/library.py @@ -23,7 +23,7 @@ from jellyfin import Jellyfin ################################################################################################## LOG = logging.getLogger("JELLYFIN." + __name__) -LIMIT = min(int(settings('limitIndex') or 50), 50) +LIMIT = int(settings('limitIndex') or 15) DTHREADS = int(settings('limitThreads') or 3) MEDIA = { 'Movie': Movies, diff --git a/resources/settings.xml b/resources/settings.xml index ae1ad0d1..661da59b 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -25,8 +25,8 @@ - - + +