titlemake
parent
9cfc007a29
commit
ec149abdc6
18
Core.py
18
Core.py
|
@ -38,6 +38,7 @@ class Core:
|
||||||
open_option = int(__settings__.getSetting('open_option'))
|
open_option = int(__settings__.getSetting('open_option'))
|
||||||
language = {0: 'en', 1: 'ru', 2: 'uk', 3: 'he', 4: 'hu'}.get(int(__settings__.getSetting("language")))
|
language = {0: 'en', 1: 'ru', 2: 'uk', 3: 'he', 4: 'hu'}.get(int(__settings__.getSetting("language")))
|
||||||
scrapperDB_ver = {'en':'1.1', 'ru':'1.3', 'he':'1.3'}
|
scrapperDB_ver = {'en':'1.1', 'ru':'1.3', 'he':'1.3'}
|
||||||
|
torrent_info_style = int(__settings__.getSetting('torrent_info_style'))
|
||||||
|
|
||||||
log('SYS ARGV: ' + str(sys.argv))
|
log('SYS ARGV: ' + str(sys.argv))
|
||||||
|
|
||||||
|
@ -1851,9 +1852,20 @@ class Core:
|
||||||
clRed = '[COLOR FFFF0000]%s[/COLOR]'
|
clRed = '[COLOR FFFF0000]%s[/COLOR]'
|
||||||
|
|
||||||
title = title.replace('720p', '[B]720p[/B]').replace('1080p', '[B]1080p[/B]')
|
title = title.replace('720p', '[B]720p[/B]').replace('1080p', '[B]1080p[/B]')
|
||||||
title = clWhite % title
|
|
||||||
second = '[I](%s) [S/L: %d/%d] [/I]' % (size, seeds, leechers)
|
if self.torrent_info_style == 0:
|
||||||
title += ' ' + second
|
title = clWhite % title
|
||||||
|
second = '[I](%s) [S/L: %d/%d] [/I]' % (size, seeds, leechers)
|
||||||
|
title += ' ' + second
|
||||||
|
elif self.torrent_info_style == 1:
|
||||||
|
title = clWhite % title
|
||||||
|
second = '[I](%s) [S/L: %d/%d] [/I]' % (size, seeds, leechers)
|
||||||
|
title = second + ' ' + title
|
||||||
|
elif self.torrent_info_style == 2:
|
||||||
|
title = clWhite % title
|
||||||
|
second = '[I](%s) [S/L: %d/%d] [/I]' % (size, seeds, leechers)
|
||||||
|
title += '\r\n' + clDimgray % second
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
def search(self, params={}):
|
def search(self, params={}):
|
||||||
|
|
|
@ -69,6 +69,10 @@
|
||||||
<string id="30069">Append size to file name</string>
|
<string id="30069">Append size to file name</string>
|
||||||
<string id="30070">Enable DHT</string>
|
<string id="30070">Enable DHT</string>
|
||||||
<string id="30071">Estuary (by DiMartino)</string>
|
<string id="30071">Estuary (by DiMartino)</string>
|
||||||
|
<string id="30072">Стиль информации о раздаче</string>
|
||||||
|
<string id="30073">In the end</string>
|
||||||
|
<string id="30074">In the beginning</string>
|
||||||
|
<string id="30075">Second string</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>
|
||||||
|
|
|
@ -68,7 +68,11 @@
|
||||||
<string id="30068">pyrrent2http (python-libtorrent по http)</string>
|
<string id="30068">pyrrent2http (python-libtorrent по http)</string>
|
||||||
<string id="30069">Добавлять размер к имени файла</string>
|
<string id="30069">Добавлять размер к имени файла</string>
|
||||||
<string id="30070">Включить DHT</string>
|
<string id="30070">Включить DHT</string>
|
||||||
<string id="30018">Estuary (от DiMartino)</string>
|
<string id="30071">Estuary (от DiMartino)</string>
|
||||||
|
<string id="30072">Стиль информации о раздаче</string>
|
||||||
|
<string id="30073">В конце</string>
|
||||||
|
<string id="30074">В начале</string>
|
||||||
|
<string id="30075">Второй строкой</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>
|
||||||
|
|
|
@ -61,15 +61,16 @@
|
||||||
<setting id="torrent_qbittorrent_password" type="text" label="50316" visible="eq(-21,4)" default="admin" option="hidden"/>
|
<setting id="torrent_qbittorrent_password" type="text" label="50316" visible="eq(-21,4)" default="admin" option="hidden"/>
|
||||||
</category>
|
</category>
|
||||||
<category label="30105">
|
<category label="30105">
|
||||||
<setting id="torrent_player" type="enum" label="30023" default="2" lvalues="30021|30022|30046|30068" />
|
<setting id="torrent_player" type="enum" label="30023" default="2" lvalues="30021|30022|30046|30068" />
|
||||||
<setting id="ask_dir" type="bool" label="30031" default="false"/>
|
<setting id="ask_dir" type="bool" label="30031" default="false"/>
|
||||||
<setting id="connections_limit" type="number" label="30051" default="200" visible=" eq(-2,2)"/>
|
<setting id="connections_limit" type="number" label="30051" default="200" visible=" eq(-2,2)"/>
|
||||||
<setting id="use_random_port" type="bool" label="30052" default="false" visible=" eq(-3,2)"/>
|
<setting id="use_random_port" type="bool" label="30052" default="false" visible=" eq(-3,2)"/>
|
||||||
<setting id="listen_port" type="number" label="30053" default="6881" visible="!eq(-4,1)"/>
|
<setting id="listen_port" type="number" label="30053" default="6881" visible="!eq(-4,1)"/>
|
||||||
<setting id="min_storage_size" type="slider" label="30059" default="0" visible="!eq(-5,1)" range="0,2,100" option="int"/>
|
<setting id="min_storage_size" type="slider" label="30059" default="0" visible="!eq(-5,1)" range="0,2,100" option="int"/>
|
||||||
<setting id="pause_onplay" type="bool" label="30060" default="false" visible="!eq(-6,1)"/>
|
<setting id="pause_onplay" type="bool" label="30060" default="false" visible="!eq(-6,1)"/>
|
||||||
<setting id="max_history_add" type="slider" label="30065" default="100" visible="!eq(-7,1)" range="0,2,100" option="int"/>
|
<setting id="max_history_add" type="slider" label="30065" default="100" visible="!eq(-7,1)" range="0,2,100" option="int"/>
|
||||||
<setting id="enable_dht" type="bool" label="30070" default="true" visible="!eq(-8,1)"/>
|
<setting id="enable_dht" type="bool" label="30070" default="true" visible="!eq(-8,1)"/>
|
||||||
<setting id="append_filesize" type="bool" label="30069" default="true"/>
|
<setting id="append_filesize" type="bool" label="30069" default="true"/>
|
||||||
|
<setting id="torrent_info_style" type="enum" label="30072" default="0" lvalues="30073|30074|30075"/>
|
||||||
</category>
|
</category>
|
||||||
</settings>
|
</settings>
|
||||||
|
|
Loading…
Reference in New Issue