From 69cb2849822339ea29f87a20986bc5dc77c1efc8 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Fri, 20 Jul 2018 11:57:26 +0200 Subject: [PATCH] Videolibrary: error al seleccionar canal en ventana flotante MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Por un error en la traducción de los tres idiomas españoles en el mensaje 70089 (itainao e inglés estaban bien), añadía un espacio al final del mensaje. Esto hacía que el nombre del canal también tuviera un espacio al final y no igualara las comparaciones. Mensaje corregido en los tres idiomas, y .strip() añadido en línea 365 de Videolíbrary.py para evitar futuros "accidentes" --- plugin.video.alfa/channels/videolibrary.py | 2 +- .../resources/language/Spanish (Argentina)/strings.po | 2 +- .../resources/language/Spanish (Mexico)/strings.po | 2 +- plugin.video.alfa/resources/language/Spanish/strings.po | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin.video.alfa/channels/videolibrary.py b/plugin.video.alfa/channels/videolibrary.py index 80ffdbe9..5d91693a 100644 --- a/plugin.video.alfa/channels/videolibrary.py +++ b/plugin.video.alfa/channels/videolibrary.py @@ -362,7 +362,7 @@ def findvideos(item): platformtools.play_video(item_local) elif index > 0: - filtro_canal = opciones[index].replace(config.get_localized_string(70078), "") + filtro_canal = opciones[index].replace(config.get_localized_string(70078), "").strip() itemlist = [] for nom_canal, json_path in list_canales.items(): diff --git a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po index f52b1490..eb986820 100644 --- a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po @@ -3071,7 +3071,7 @@ msgstr "¿Realmente desea eliminar '%s' de su videoteca?" msgctxt "#70089" msgid "Show only links of %s" -msgstr "Mostrar solo los enlaces de %s " +msgstr "Mostrar solo los enlaces de %s" msgctxt "#70090" msgid " Exclude all streams with specific words" diff --git a/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po b/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po index f52b1490..eb986820 100644 --- a/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po @@ -3071,7 +3071,7 @@ msgstr "¿Realmente desea eliminar '%s' de su videoteca?" msgctxt "#70089" msgid "Show only links of %s" -msgstr "Mostrar solo los enlaces de %s " +msgstr "Mostrar solo los enlaces de %s" msgctxt "#70090" msgid " Exclude all streams with specific words" diff --git a/plugin.video.alfa/resources/language/Spanish/strings.po b/plugin.video.alfa/resources/language/Spanish/strings.po index f52b1490..eb986820 100644 --- a/plugin.video.alfa/resources/language/Spanish/strings.po +++ b/plugin.video.alfa/resources/language/Spanish/strings.po @@ -3071,7 +3071,7 @@ msgstr "¿Realmente desea eliminar '%s' de su videoteca?" msgctxt "#70089" msgid "Show only links of %s" -msgstr "Mostrar solo los enlaces de %s " +msgstr "Mostrar solo los enlaces de %s" msgctxt "#70090" msgid " Exclude all streams with specific words"