From 71bfd227e304c63513c94b9b0240f051a14483b5 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Sun, 19 Jul 2015 03:24:35 +0300 Subject: [PATCH] trans fix --- changelog.txt | 3 + functions.py | 2 +- resources/language/English/strings.xml | 1 + resources/language/Russian/strings.xml | 1 + resources/settings.xml | 205 ++++++------------------- 5 files changed, 50 insertions(+), 162 deletions(-) diff --git a/changelog.txt b/changelog.txt index 28aa077..0b2466e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,7 @@ [B]Version 2.3.2[/B] +[+] Поиск: Настройка количества потоков при поиске + +[B]Version 2.3.2[/B] [+] Control Center: Исправлена работа без серчеров [+] Списки Медиа: Проверка отсутствия серчера [+] Списки Медиа: Исправлен ThePirateBay diff --git a/functions.py b/functions.py index 9c997c8..b3589cd 100644 --- a/functions.py +++ b/functions.py @@ -1179,7 +1179,7 @@ def search(url, searchersList, isApi=None): from queue import Queue num_threads=__settings__.getSetting('num_threads') - if num_threads not in ['',None] and int(num_threads)>0: + if num_threads and int(num_threads)>0: num_threads = int(num_threads) else: num_threads = 3 diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 7e3dacc..8de4d1a 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -39,6 +39,7 @@ Sort search results by seeds Custom search option phrase Encryption + Search Thread Number Interface P2P Network Advanced diff --git a/resources/language/Russian/strings.xml b/resources/language/Russian/strings.xml index e26fe41..142e780 100644 --- a/resources/language/Russian/strings.xml +++ b/resources/language/Russian/strings.xml @@ -39,6 +39,7 @@ Сортировать поиск по количеству раздающих Дополнительная фраза в вариантах поиска Шифрование + Количество параллельных потоков поиска Интерфейс P2P Сеть Дополнительные diff --git a/resources/settings.xml b/resources/settings.xml index 3f5bc0d..5cb8a7d 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -1,175 +1,58 @@  - - - - - - + + + + + + - - - - - + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - + + + - - - - - + + + - - - - - + + + + - - - - - - - - + + + + + + + +