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]
[+] Control Center: Исправлена работа без серчеров
[+] Списки Медиа: Проверка отсутствия серчера
[+] Списки Медиа: Исправлен ThePirateBay

View File

@ -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

View File

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

View File

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

View File

@ -1,175 +1,58 @@
<settings>
<category label="30101">
<setting
id="language"
type="enum"
values="English|Russian|Ukrainian"
label="30001"
default="1"
/>
<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"
/>
<setting id="language" type="enum" label="30001" default="1" values="English|Russian|Ukrainian" />
<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" label="30002" default="1" lvalues="30003|30018|30017|30016|30019"/>
<setting id="open_option" type="enum" label="30034" default="0" lvalues="30035|30036|30037|30038"/>
</category>
<category label="30103">
<setting
id="delete_russian"
type="bool"
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="debug"
type="bool"
label="30015"
default="false"
/>
<setting id="delete_russian" type="bool" 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="num_threads" type="slider" label="30042" default="3" range="1,1,9" option="int"/>
<setting id="debug" type="bool" label="30015" default="false"/>
</category>
<category label="30102">
<setting
id="torrent_player"
type="enum"
lvalues="30021|30022"
label="30023"
default="0"
/>
<setting
id="storage"
type="folder"
label="30004"
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)"
/>
<setting id="torrent_player" type="enum" label="30023" default="0" lvalues="30021|30022" />
<setting id="storage" type="folder" label="30004" default=""/>
<setting id="keep_files" type="bool" label="30008" default="true"/>
<setting id="ask_dir" type="bool" label="30031" default="false" enable="eq(-1,true)" />
<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 label="Torrent-client">
<setting id="torrent_save" type="enum" label="50301" lvalues="50302|50303" default="0"/>
<setting id="torrent_dir" type="text" label="50304"/>
<setting id="torrent_replacement" type="folder" label="30426"/>
<setting id="torrent_save" type="enum" label="50301" lvalues="50302|50303" default="0"/>
<setting id="torrent_dir" type="text" label="50304"/>
<setting id="torrent_replacement" type="folder" label="30426"/>
<setting type="sep"/>
<setting id="torrent" type="enum" label="50311" values="µTorrent WebUI|Transmission|Vuze (XML over HTTP plugin)|Deluge WebUI"
<setting id="torrent" type="enum" label="50311" values="µTorrent WebUI|Transmission|Vuze (XML over HTTP plugin)|Deluge WebUI"
default="0"/>
<setting id="torrent_utorrent_host" type="ipaddress" label="50312" visible="eq(-1,0)" default="127.0.0.1"/>
<setting id="torrent_utorrent_port" type="number" label="50313" visible="eq(-2,0)" default="8080"/>
<setting id="torrent_utorrent_login" type="text" label="50315" visible="eq(-3,0)" default="admin"/>
<setting id="torrent_utorrent_password" type="text" label="50316" visible="eq(-4,0)" default=""
<setting id="torrent_utorrent_host" type="ipaddress" label="50312" visible="eq(-1,0)" default="127.0.0.1"/>
<setting id="torrent_utorrent_port" type="number" label="50313" visible="eq(-2,0)" default="8080"/>
<setting id="torrent_utorrent_login" type="text" label="50315" visible="eq(-3,0)" default="admin"/>
<setting id="torrent_utorrent_password" type="text" label="50316" visible="eq(-4,0)" default=""
option="hidden"/>
<setting id="torrent_transmission_host" type="ipaddress" label="50312" visible="eq(-5,1)" default="127.0.0.1"/>
<setting id="torrent_transmission_port" type="number" label="50313" visible="eq(-6,1)" default="9091"/>
<setting id="torrent_transmission_url" type="text" label="50314" visible="eq(-7,1)" default="/transmission/"/>
<setting id="torrent_transmission_login" type="text" label="50315" visible="eq(-8,1)" default=""/>
<setting id="torrent_transmission_password" type="text" label="50316" visible="eq(-9,1)" default=""
<setting id="torrent_transmission_host" type="ipaddress" label="50312" visible="eq(-5,1)" default="127.0.0.1"/>
<setting id="torrent_transmission_port" type="number" label="50313" visible="eq(-6,1)" default="9091"/>
<setting id="torrent_transmission_url" type="text" label="50314" visible="eq(-7,1)" default="/transmission/"/>
<setting id="torrent_transmission_login" type="text" label="50315" visible="eq(-8,1)" default=""/>
<setting id="torrent_transmission_password" type="text" label="50316" visible="eq(-9,1)" default=""
option="hidden"/>
<setting id="torrent_vuze_host" type="ipaddress" label="50312" visible="eq(-10,2)" default="127.0.0.1"/>
<setting id="torrent_vuze_port" type="number" label="50313" visible="eq(-11,2)" default="6884"/>
<setting id="torrent_vuze_login" type="text" label="50315" visible="eq(-12,2)" default=""/>
<setting id="torrent_vuze_password" type="text" label="50316" visible="eq(-13,2)" default="" option="hidden"/>
<setting id="torrent_deluge_host" type="ipaddress" label="50312" visible="eq(-14,3)" default="127.0.0.1"/>
<setting id="torrent_deluge_path" type="text" label="50317" visible="eq(-15,3)" default="/"/>
<setting id="torrent_deluge_port" type="number" label="50313" visible="eq(-16,3)" default="8112"/>
<setting id="torrent_deluge_password" type="text" label="50316" visible="eq(-17,3)" default="deluge" option="hidden"/>
<setting id="torrent_vuze_host" type="ipaddress" label="50312" visible="eq(-10,2)" default="127.0.0.1"/>
<setting id="torrent_vuze_port" type="number" label="50313" visible="eq(-11,2)" default="6884"/>
<setting id="torrent_vuze_login" type="text" label="50315" visible="eq(-12,2)" default=""/>
<setting id="torrent_vuze_password" type="text" label="50316" visible="eq(-13,2)" default="" option="hidden"/>
<setting id="torrent_deluge_host" type="ipaddress" label="50312" visible="eq(-14,3)" default="127.0.0.1"/>
<setting id="torrent_deluge_path" type="text" label="50317" visible="eq(-15,3)" default="/"/>
<setting id="torrent_deluge_port" type="number" label="50313" visible="eq(-16,3)" default="8112"/>
<setting id="torrent_deluge_password" type="text" label="50316" visible="eq(-17,3)" default="deluge" option="hidden"/>
</category>
</settings>