Traduzioni Client Torrent

This commit is contained in:
Alhaziel
2020-03-12 19:26:28 +01:00
parent f75ec7aa20
commit 3a890e0794
6 changed files with 73 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ except:
DOWNLOAD_PATH = config.get_setting("bt_download_path", server="torrent", default=config.get_setting("downloadpath"))
BACKGROUND = config.get_setting("mct_background_download", server="torrent", default=True)
RAR = config.get_setting("mct_rar_unpack", server="torrent", default=True)
msg_header = 'Alfa BT Cliente Torrent'
msg_header = 'Client Torrent BT'
class Client(object):

View File

@@ -184,9 +184,7 @@ try:
LIBTORRENT_MSG = config.get_setting("libtorrent_msg", server="torrent", default='')
if not LIBTORRENT_MSG:
dialog = xbmcgui.Dialog()
dialog.notification('ALFA: Instalando Cliente Torrent interno', \
'Puede solicitarle permisos de Superusuario', time=15000)
log('### ALFA: Notificación enviada: Instalando Cliente Torrent interno')
dialog.notification('KoD: '+ config.get_localizad_string(70766), config.get_localizad_string(70767), time=15000)
config.set_setting("libtorrent_msg", 'OK', server="torrent")
from core import scrapertools

View File

@@ -70,7 +70,7 @@ if DOWNLOAD_LIMIT:
else:
DOWNLOAD_LIMIT = 0
UPLOAD_LIMIT = 100 * 1024
msg_header = 'Alfa MCT Cliente Torrent'
msg_header = 'KoD Client Torrent MCT'
def play(url, xlistitem={}, is_view=None, subtitle="", password="", item=None):
@@ -220,7 +220,7 @@ def play(url, xlistitem={}, is_view=None, subtitle="", password="", item=None):
dp = xbmcgui.DialogProgress()
dp.create(msg_header)
while not h.has_metadata():
message, porcent, msg_file, s, download = getProgress(h, "Creando torrent desde magnet")
message, porcent, msg_file, s, download = getProgress(h, "Creating torrent from magnet")
dp.update(porcent, message, msg_file)
if s.state == 1: download = 1
if dp.iscanceled():
@@ -286,14 +286,11 @@ def play(url, xlistitem={}, is_view=None, subtitle="", password="", item=None):
if "/" in filename:
filename = filename.split("/")[1]
if RAR and BACKGROUND:
xbmcgui.Dialog().notification("Encontrado archivo .RAR de %.2f MB" % (video_size / 1048576.0),
"Puedes realizar otras tareas en Kodi mientrastanto. " + \
"Te informaremos...", time=10000)
xbmcgui.Dialog().notification(config.get_localized_string(70768) % (video_size / 1048576.0), config.get_localized_string(70769), time=10000)
dialog = True
else:
dialog = xbmcgui.Dialog().yesno("Encontrado archivo .RAR...", "Nombre: %s" % filename,
"Tamaño: %.2f MB" % (video_size / 1048576.0),
"¿Descargar en segundo plano? Cancelar en menú Descargas")
dialog = xbmcgui.Dialog().yesno(config.get_localized_string(70770), config.get_localized_string(70771) % filename,
config.get_localized_string(70772) % (video_size / 1048576.0), config.get_localized_string(70773))
if dialog:
dp_cerrado = False
dp = xbmcgui.DialogProgressBG()
@@ -532,7 +529,7 @@ def play(url, xlistitem={}, is_view=None, subtitle="", password="", item=None):
message, porcent, msg_file, s, download = getProgress(h, video_file, _pf=_pieces_info)
dp.update(porcent, message, '[CR]' + message + '[CR]' + msg_file)
else:
dp.update(100, "Descarga completa: " + video_file)
dp.update(100, "Download complete: " + video_file)
# -- Se canceló el progreso en el visionado -
# -- Continuar -

View File

@@ -5837,6 +5837,38 @@ msgctxt "#70765"
msgid "SD"
msgstr ""
msgctxt "#70766"
msgid "Installing Internal Torrent Client"
msgstr ""
msgctxt "#70767"
msgid "You can ask for Superuser permissions"
msgstr ""
msgctxt "#70768"
msgid "%.2f MB RAR file found"
msgstr ""
msgctxt "#70769"
msgid "You can do other tasks in Kodi in the meantime. We will inform you..."
msgstr ""
msgctxt "#70770"
msgid "RAR file found..."
msgstr ""
msgctxt "#70771"
msgid "Name: %s"
msgstr ""
msgctxt "#70772"
msgid "Size: %.2f MB"
msgstr ""
msgctxt "#70773"
msgid "Download in the background? Cancel in Downloads menu"
msgstr ""
# DNS start [ settings and declaration ]
msgctxt "#707401"
msgid "Enable DNS Check Alert"

View File

@@ -5841,6 +5841,38 @@ msgctxt "#70765"
msgid "SD"
msgstr "SD"
msgctxt "#70766"
msgid "Installing Internal Torrent Client"
msgstr "Installazione del Client Torrent Interno"
msgctxt "#70767"
msgid "You can ask for Superuser permissions"
msgstr "Puoi richiedere le autorizzazioni Superuser"
msgctxt "#70768"
msgid "%.2f MB RAR file found"
msgstr "File RAR di %.2f MB trovato"
msgctxt "#70769"
msgid "You can do other tasks in Kodi in the meantime. We will inform you..."
msgstr "Nel frattempo puoi svolgere altre attività in Kodi. Ti informeremo..."
msgctxt "#70770"
msgid "RAR file found..."
msgstr "File RAR Trovato..."
msgctxt "#70771"
msgid "Name: %s"
msgstr "Nome: %s"
msgctxt "#70772"
msgid "Size: %.2f MB"
msgstr "Dimensione: %.2f MB"
msgctxt "#70773"
msgid "Download in the background? Cancel in Downloads menu"
msgstr "Scarica in background? Annulla nel menu Download"
# DNS start [ settings and declaration ]
msgctxt "#707401"
msgid "Enable DNS Check Alert"

View File

@@ -362,7 +362,7 @@ def bt_client(mediaurl, xlistitem, rar_files, subtitle=None, password=None, item
video_file = ''
video_path = ''
videourl = ''
msg_header = 'Alfa %s Cliente Torrent' % torr_client
msg_header = 'KoD %s Client Torrent' % torr_client
extensions_list = ['.aaf', '.3gp', '.asf', '.avi', '.flv', '.mpeg',
'.m1v', '.m2v', '.m4v', '.mkv', '.mov', '.mpg',
'.mpe', '.mp4', '.ogg', '.rar', '.wmv', '.zip']