trans fix

pull/1/head
DiMartinoXBMC 2015-07-19 03:24:35 +03:00
parent 344030d01f
commit 71bfd227e3
5 changed files with 50 additions and 162 deletions

View File

@ -1,4 +1,7 @@
[B]Version 2.3.2[/B] [B]Version 2.3.2[/B]
[+] Поиск: Настройка количества потоков при поиске
[B]Version 2.3.2[/B]
[+] Control Center: Исправлена работа без серчеров [+] Control Center: Исправлена работа без серчеров
[+] Списки Медиа: Проверка отсутствия серчера [+] Списки Медиа: Проверка отсутствия серчера
[+] Списки Медиа: Исправлен ThePirateBay [+] Списки Медиа: Исправлен ThePirateBay

View File

@ -1179,7 +1179,7 @@ def search(url, searchersList, isApi=None):
from queue import Queue from queue import Queue
num_threads=__settings__.getSetting('num_threads') 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) num_threads = int(num_threads)
else: else:
num_threads = 3 num_threads = 3

View File

@ -39,6 +39,7 @@
<string id="30039">Sort search results by seeds</string> <string id="30039">Sort search results by seeds</string>
<string id="30040">Custom search option phrase</string> <string id="30040">Custom search option phrase</string>
<string id="30041">Encryption</string> <string id="30041">Encryption</string>
<string id="30042">Search Thread Number</string>
<string id="30101">Interface</string> <string id="30101">Interface</string>
<string id="30102">P2P Network</string> <string id="30102">P2P Network</string>
<string id="30103">Advanced</string> <string id="30103">Advanced</string>

View File

@ -39,6 +39,7 @@
<string id="30039">Сортировать поиск по количеству раздающих</string> <string id="30039">Сортировать поиск по количеству раздающих</string>
<string id="30040">Дополнительная фраза в вариантах поиска</string> <string id="30040">Дополнительная фраза в вариантах поиска</string>
<string id="30041">Шифрование</string> <string id="30041">Шифрование</string>
<string id="30042">Количество параллельных потоков поиска</string>
<string id="30101">Интерфейс</string> <string id="30101">Интерфейс</string>
<string id="30102">P2P Сеть</string> <string id="30102">P2P Сеть</string>
<string id="30103">Дополнительные</string> <string id="30103">Дополнительные</string>

View File

@ -1,149 +1,32 @@
<settings> <settings>
<category label="30101"> <category label="30101">
<setting <setting id="language" type="enum" label="30001" default="1" values="English|Russian|Ukrainian" />
id="language" <setting id="metadata" type="bool" label="30014" default="false"/>
type="enum" <setting id="history" type="bool" label="30020" default="true"/>
values="English|Russian|Ukrainian" <setting id="sort_search" type="bool" label="30039" default="true"/>
label="30001" <setting id="skin_optimization" type="enum" label="30002" default="1" lvalues="30003|30018|30017|30016|30019"/>
default="1" <setting id="open_option" type="enum" label="30034" default="0" lvalues="30035|30036|30037|30038"/>
/>
<setting
id="metadata"
type="bool"
label="30014"
default="false"
/>
<setting
id="history"
type="bool"
label="30020"
default="true"
/>
<setting
id="sort_search"
type="bool"
label="30039"
default="true"
/>
<setting
id="skin_optimization"
type="enum"
lvalues="30003|30018|30017|30016|30019"
label="30002"
default="1"
/>
<setting
id="open_option"
type="enum"
label="30034"
lvalues="30035|30036|30037|30038"
default="0"
/>
</category> </category>
<category label="30103"> <category label="30103">
<setting <setting id="delete_russian" type="bool" label="30032" default=""/>
id="delete_russian" <setting type="action" label="30033" action="RunPlugin(plugin://plugin.video.torrenter/?action=returnRussian)" visible="eq(-1,false)"/>
type="bool" <setting id="timeout" type="enum" lvalues="30026|30027|30028" label="30025" default="1"/>
label="30032"
default=""
/>
<setting
type="action"
label="30033"
action="RunPlugin(plugin://plugin.video.torrenter/?action=returnRussian)"
visible="eq(-1,false)"/>
<setting
id="timeout"
type="enum"
lvalues="30026|30027|30028"
label="30025"
default="1"
/>
<setting id="search_phrase" type="text" label="30040"/> <setting id="search_phrase" type="text" label="30040"/>
<setting <setting id="num_threads" type="slider" label="30042" default="3" range="1,1,9" option="int"/>
id="debug" <setting id="debug" type="bool" label="30015" default="false"/>
type="bool"
label="30015"
default="false"
/>
</category> </category>
<category label="30102"> <category label="30102">
<setting <setting id="torrent_player" type="enum" label="30023" default="0" lvalues="30021|30022" />
id="torrent_player" <setting id="storage" type="folder" label="30004" default=""/>
type="enum" <setting id="keep_files" type="bool" label="30008" default="true"/>
lvalues="30021|30022" <setting id="ask_dir" type="bool" label="30031" default="false" enable="eq(-1,true)" />
label="30023" <setting id="next_dl" type="bool" label="30013" default="true" visible="eq(-4,0)"/>
default="0" <setting id="upload_limit" type="number" label="30010" default="0" visible="eq(-5,0)"/>
/> <setting id="download_limit" type="number" label="30011" default="0" visible="eq(-6,0)"/>
<setting <setting id="blank" type="text" label="30024" default="" visible="eq(-7,1)"/>
id="storage" <setting id="subs_dl" type="bool" label="30029" default="true" visible="eq(-8,0)"/>
type="folder" <setting id="keep_seeding" type="bool" label="30030" default="false" visible="eq(-9,0)" enable="eq(-7,true)"/>
label="30004" <setting id="encryption" type="bool" label="30041" default="true" visible="eq(-10,0)"/>
default=""
/>
<setting
id="keep_files"
type="bool"
label="30008"
default="true"
/>
<setting
id="ask_dir"
type="bool"
label="30031"
enable="eq(-1,true)"
default="false"
/>
<setting
id="next_dl"
type="bool"
label="30013"
default="true"
visible="eq(-4,0)"
/>
<setting
id="upload_limit"
type="number"
label="30010"
default="0"
visible="eq(-5,0)"
/>
<setting
id="download_limit"
type="number"
label="30011"
default="0"
visible="eq(-6,0)"
/>
<setting
id="blank"
type="text"
label="30024"
default=""
visible="eq(-7,1)"
/>
<setting
id="subs_dl"
type="bool"
label="30029"
default="true"
visible="eq(-8,0)"
/>
<setting
id="keep_seeding"
type="bool"
label="30030"
default="false"
visible="eq(-9,0)"
enable="eq(-7,true)"
/>
<setting
id="encryption"
type="bool"
label="30041"
default="true"
visible="eq(-10,0)"
/>
</category> </category>
<category label="Torrent-client"> <category label="Torrent-client">
<setting id="torrent_save" type="enum" label="50301" lvalues="50302|50303" default="0"/> <setting id="torrent_save" type="enum" label="50301" lvalues="50302|50303" default="0"/>