From c1022d8afe66d79a753c1836aa7537a8e43484da Mon Sep 17 00:00:00 2001 From: pipcat Date: Sun, 29 Jul 2018 08:43:51 +0200 Subject: [PATCH 01/20] Cambio interno para tests --- plugin.video.alfa/channels/setting.py | 10 +--------- .../platformcode/platformtools.py | 19 ++++--------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/plugin.video.alfa/channels/setting.py b/plugin.video.alfa/channels/setting.py index a22d45c9..cc1b95b1 100644 --- a/plugin.video.alfa/channels/setting.py +++ b/plugin.video.alfa/channels/setting.py @@ -296,16 +296,8 @@ def submenu_tools(item): #Herramientas de testeo masivo import os test_path = os.path.join(config.get_runtime_path(), "channels/test.py") - if filetools.exists(test_path): - itemlist.append(Item(channel=CHANNELNAME, title="Herramientas de Testeo masivo", action="", folder=False, - thumbnail=get_thumb("channels.png"))) - itemlist.append(Item(title='- Testear canales ...', channel="test", action="channel_test_selected")) - itemlist.append(Item(title='- Testear servidores ...', channel="test", action="server_test_selected")) - itemlist.append(Item(title='- Testear todos los canales!', channel="test", action="channel_test_all")) - itemlist.append(Item(title='- Testear todos los servidores!', channel="test", action="server_test_all")) - itemlist.append(Item(title='- Testear novedades!', channel="test", action="news_test_all")) - itemlist.append(Item(title='- Upload tests to web!', channel="test", action="web_update_tests")) + itemlist.append(Item(title='Testear canales y servidores ...', channel="test", action="mainlist")) itemlist.append( Item(channel=CHANNELNAME, action="", title="", folder=False, thumbnail=get_thumb("setting_0.png"))) diff --git a/plugin.video.alfa/platformcode/platformtools.py b/plugin.video.alfa/platformcode/platformtools.py index bff09bc0..77a0fc61 100644 --- a/plugin.video.alfa/platformcode/platformtools.py +++ b/plugin.video.alfa/platformcode/platformtools.py @@ -59,6 +59,10 @@ def dialog_select(heading, _list): return xbmcgui.Dialog().select(heading, _list) +def dialog_multiselect(heading, _list, autoclose=0, preselect=[], useDetails=False): + return xbmcgui.Dialog().multiselect(heading, _list, autoclose=autoclose, preselect=preselect, useDetails=useDetails) + + def dialog_progress(heading, line1, line2=" ", line3=" "): dialog = xbmcgui.DialogProgress() dialog.create(heading, line1, line2, line3) @@ -496,19 +500,6 @@ def set_context_commands(item, parent_item): (sys.argv[0], item.clone(channel="favorites", action="addFavourite", from_channel=item.channel, from_action=item.action).tourl()))) - #Herramientas de desarrollador - from core import filetools - - test_path = os.path.join(config.get_runtime_path(), "channels/test.py") - - if parent_item.action == 'filterchannels' and item.action == 'mainlist' and filetools.exists(test_path): - - channel_parameters = channeltools.get_channel_parameters(item.channel) - context_commands.append(("TESTEAR ESTE CANAL", - "XBMC.RunPlugin(%s?%s)" % - (sys.argv[0], - Item(channel='test', action='channel_test', - config=channel_parameters['channel']).tourl()))) # Buscar en otros canales if item.contentType in ['movie', 'tvshow'] and item.channel != 'search': @@ -522,7 +513,6 @@ def set_context_commands(item, parent_item): item.clone(channel='search', action="do_search", from_channel=item.channel, - contextual=True).tourl()))) if item.contentType == 'tvshow': mediatype = 'tv' @@ -606,7 +596,6 @@ def set_context_commands(item, parent_item): "XBMC.Container.Update (%s?%s)" % (sys.argv[0], Item(channel='side_menu', action="open_menu", parent=parent_item.tourl()).tourl( - )))) return context_commands From cb359c5aae6d7c35f3f4cd3eefa40c519251fdae Mon Sep 17 00:00:00 2001 From: angedam Date: Mon, 30 Jul 2018 17:14:00 +0200 Subject: [PATCH 02/20] added localized strings --- plugin.video.alfa/channels/search.py | 20 ++-- .../resources/language/English/strings.po | 90 ++++++++++++++++ .../resources/language/Italian/strings.po | 96 ++++++++++++++++- .../language/Spanish (Argentina)/strings.po | 101 ++++++++++++++++-- .../language/Spanish (Mexico)/strings.po | 101 ++++++++++++++++-- .../resources/language/Spanish/strings.po | 101 ++++++++++++++++-- 6 files changed, 478 insertions(+), 31 deletions(-) diff --git a/plugin.video.alfa/channels/search.py b/plugin.video.alfa/channels/search.py index 1452bbd6..508407d7 100644 --- a/plugin.video.alfa/channels/search.py +++ b/plugin.video.alfa/channels/search.py @@ -23,38 +23,38 @@ def mainlist(item): item.channel = "search" itemlist = [] - context = [{"title": "Elegir canales incluidos", "action": "setting_channel", "channel": item.channel}] - itemlist.append(Item(channel=item.channel, action="sub_menu", title="Buscar en canales", context=context, + context = [{"title": config.get_localized_string(60412), "action": "setting_channel", "channel": item.channel}] + itemlist.append(Item(channel=item.channel, action="sub_menu", title=config.get_localized_string(70305), context=context, thumbnail=get_thumb("search.png"))) - itemlist.append(Item(channel=item.channel, action='genres_menu', title='Películas por Generos', type='movie', + itemlist.append(Item(channel=item.channel, action='genres_menu', title=config.get_localized_string(70306), type='movie', thumbnail=get_thumb("genres.png"))) - itemlist.append (Item(channel=item.channel, action='discover_list', title='Películas mas populares', + itemlist.append (Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70307), context=context, search_type='list', list_type='movie/popular', thumbnail=get_thumb("popular.png"))) - itemlist.append(Item(channel=item.channel, action='discover_list', title='Películas mejor valoradas', + itemlist.append(Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70308), context=context, search_type='list', list_type='movie/top_rated', thumbnail=get_thumb("top_rated.png"))) itemlist.append( - Item(channel=item.channel, action='discover_list', title='Películas Ahora en cines', context=context, + Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70309), context=context, search_type='list', list_type='movie/now_playing', thumbnail=get_thumb("now_playing.png"))) - itemlist.append(Item(channel=item.channel, action='genres_menu', title='Series por Generos', type='tv', + itemlist.append(Item(channel=item.channel, action='genres_menu', title=config.get_localized_string(70310), type='tv', thumbnail=get_thumb("genres.png"))) itemlist.append( - Item(channel=item.channel, action='discover_list', title='Series mas populares', context=context, + Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70311), context=context, search_type='list',list_type='tv/popular', thumbnail=get_thumb("popular.png"))) - itemlist.append(Item(channel=item.channel, action='discover_list', title='Series en emisión', context=context, + itemlist.append(Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70312), context=context, search_type='list', list_type='tv/on_the_air', thumbnail=get_thumb("on_the_air.png"))) - itemlist.append(Item(channel=item.channel, action='discover_list', title='Series mejor valoradas', context=context, + itemlist.append(Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70313), context=context, search_type='list', list_type='tv/top_rated', thumbnail=get_thumb("top_rated.png"))) diff --git a/plugin.video.alfa/resources/language/English/strings.po b/plugin.video.alfa/resources/language/English/strings.po index 4f78b82f..8d9dedcc 100644 --- a/plugin.video.alfa/resources/language/English/strings.po +++ b/plugin.video.alfa/resources/language/English/strings.po @@ -3867,4 +3867,94 @@ msgstr " " msgctxt "#70291" msgid "Error, during conversion" +msgstr "" + +# Servers ---- +msgctxt "#70292" +msgid "[%s] File no longer exist on this server." +msgstr "" + +msgctxt "#70293" +msgid "[%s] The file is processing or has been deleted." +msgstr "" + +msgctxt "#70294" +msgid "[%s] Link Not valid." +msgstr "" + +msgctxt "#70295" +msgid "[%s] Premium account needed." +msgstr "" + +msgctxt "#70296" +msgid "[%s] Internal server error." +msgstr "" + +msgctxt "#70297" +msgid "[%s] File is awaiting for moderation." +msgstr "" + +msgctxt "#70298" +msgid "[%s] The number of allowed reproductions has been exceeded." +msgstr "" + +msgctxt "#70299" +msgid "[%s] You do not have permission to access this file." +msgstr "" + +msgctxt "#70300" +msgid "[%s] Too many connections to the server, try later." +msgstr "" + +msgctxt "#70301" +msgid "[%s] File deleted for infringement." +msgstr "" + +msgctxt "#70302" +msgid "[%s] This server only works from Kodi 17." +msgstr "" + +msgctxt "#70303" +msgid "[%s] This server does not work with your version of Plex, try to update it." +msgstr "" + +msgctxt "#70304" +msgid "[%s] This server requires updating python to version 2.7.9 or higher." +msgstr "" +# ============ + +msgctxt "#70305" +msgid "Search in channels" +msgstr "" + +msgctxt "#70306" +msgid "Movies by Genre" +msgstr "" + +msgctxt "#70307" +msgid "Most popular Movies" +msgstr "" + +msgctxt "#70308" +msgid "Top rated Movies" +msgstr "" + +msgctxt "#70309" +msgid "Movies Now in Theatres " +msgstr "" + +msgctxt "#70310" +msgid "Series by Genre" +msgstr "" + +msgctxt "#70311" +msgid "Series most polupar" +msgstr "" + +msgctxt "#70312" +msgid "Series in progress" +msgstr "" + +msgctxt "#70313" +msgid "Top rated Series" msgstr "" \ No newline at end of file diff --git a/plugin.video.alfa/resources/language/Italian/strings.po b/plugin.video.alfa/resources/language/Italian/strings.po index a6e5d195..9bace590 100644 --- a/plugin.video.alfa/resources/language/Italian/strings.po +++ b/plugin.video.alfa/resources/language/Italian/strings.po @@ -2535,10 +2535,10 @@ msgstr " Attendere finchè la serie sia aggiunta" msgctxt "#60642" msgid "Show option \"All Seasons\"." -msgstr "Mostra l'opzione \"Tutte le stagioni\"" +msgstr "Mostra l'opzione \'Tutte le stagioni\'" msgctxt "#60643" -msgid "Do not combine the seasons of the series"" +msgid "Do not combine the seasons of the series" msgstr "Non unire le stagioni delle serie" msgctxt "#60644" @@ -2967,7 +2967,7 @@ msgstr ">> Pagina successiva" msgctxt "#70066" msgid " Search title in spanish: %s" -msgstr "Cerca il suo titolo in italiano: %s"" +msgstr "Cerca il suo titolo in italiano: %s" msgctxt "#70067" msgid "Info Seasons [%s]" @@ -3852,3 +3852,93 @@ msgstr "default, puoi cambiarla di nuovo se vuoi.\n Scrivi 's', se hai capito: " msgctxt "#70291" msgid "Error, during conversion" msgstr "Errore, in conversione" + +# Servers ---- +msgctxt "#70292" +msgid "[%s] File no longer exist on this server." +msgstr "[%s] Il file non è più presente nel server." + +msgctxt "#70293" +msgid "[%s] The file is processing or has been deleted." +msgstr "[%s] Il file video è ancora in elaborazione o è stato rimosso." + +msgctxt "#70294" +msgid "[%s] Link Not valid." +msgstr "[%s] URL Non valido." + +msgctxt "#70295" +msgid "[%s] Premium account needed." +msgstr "[%s] É Necessario un account premium." + +msgctxt "#70296" +msgid "[%s] Internal server error." +msgstr "[%s] Errore server interno." + +msgctxt "#70297" +msgid "[%s] File is awaiting for moderation." +msgstr "[%s] Il File è in attesa di moderazione." + +msgctxt "#70298" +msgid "[%s] The number of allowed reproductions has been exceeded." +msgstr "[%s] Il numero di riproduzioni concesse è stato superato." + +msgctxt "#70299" +msgid "[%s] You do not have permission to access this file." +msgstr "[%s] Non hai il permesso per accedere a questo file." + +msgctxt "#70300" +msgid "[%s] Too many connections to the server, try later." +msgstr "[%s] Troppe connessioni al server, riprova più tardi." + +msgctxt "#70301" +msgid "[%s] File deleted for infringement." +msgstr "[%s] File rimosso per infrazione." + +msgctxt "#70302" +msgid "[%s] This server only works from Kodi 17." +msgstr "[%s] Questo server funziona solo a partire da Kodi 17." + +msgctxt "#70303" +msgid "[%s] This server does not work with your version of Plex, try to update it." +msgstr "[%s] Questo server non funziona con la tua versione di Plex, prova ad aggiornare Plex." + +msgctxt "#70304" +msgid "[%s] This server requires updating python to version 2.7.9 or higher." +msgstr "[%s] Questo server richiede la versione 2.7.9 (O Maggiore) di Python." +# ============ + +msgctxt "#70305" +msgid "Search in channels" +msgstr "Cerca nei canali" + +msgctxt "#70306" +msgid "Movies by Genre" +msgstr "Film per Genere" + +msgctxt "#70307" +msgid "Most popular Movies" +msgstr "Film più popolari" + +msgctxt "#70308" +msgid "Top rated Movies" +msgstr "Film più valutati" + +msgctxt "#70309" +msgid "Movies Now in Theatres " +msgstr "Film ora in sala" + +msgctxt "#70310" +msgid "Series by Genre" +msgstr "Serie per Genere" + +msgctxt "#70311" +msgid "Series most polupar" +msgstr "Serie più popolari" + +msgctxt "#70312" +msgid "Series in progress" +msgstr "Serie in uscita" + +msgctxt "#70313" +msgid "Top rated Series" +msgstr "Serie Più valutate" \ No newline at end of file diff --git a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po index c938ff75..8870dcc9 100644 --- a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po @@ -503,7 +503,7 @@ msgstr "Filtrar servidores (Lista Negra)" msgctxt "#60001" msgid "Filter server (Black List)\nNo connection available that meets the requirements of the Black list.\nTry again by changing the filter in 'Server Configuration" -msgstr "Filtrar servidores (Lista Negra)\nNo hay enlaces disponibles que cumplan los requisitos de su Lista Negra.\nPruebe de nuevo modificando el fíltro en 'Configuracíon Servidores"" +msgstr "Filtrar servidores (Lista Negra)\nNo hay enlaces disponibles que cumplan los requisitos de su Lista Negra.\nPruebe de nuevo modificando el fíltro en 'Configuracíon Servidores" msgctxt "#60003" msgid "Connecting with %s" @@ -2207,7 +2207,7 @@ msgstr "Herramientas de canales" msgctxt "#60549" msgid "Check the files * _data.json" -msgstr "Comprobar archivos *_data.json"," +msgstr "Comprobar archivos *_data.json" msgctxt "#60550" msgid "Servers locked" @@ -2550,8 +2550,8 @@ msgid "Show option \"All Seasons\"." msgstr "Mostrar la opción \"Todas las temporadas\"" msgctxt "#60643" -msgid "Do not combine the seasons of the series"" -msgstr "No apilar temporadas de series"" +msgid "Do not combine the seasons of the series" +msgstr "No apilar temporadas de series" msgctxt "#60644" msgid "Only if there is one season" @@ -2895,7 +2895,7 @@ msgstr "Sagas y Colecciones" msgctxt "#70045" msgid "Movies/TV Shows/Documentaries by Themes" -msgstr "Películas/Series/Documentales por Temas"" +msgstr "Películas/Series/Documentales por Temas" msgctxt "#70046" msgid "Search Movies/TV Shows" @@ -2975,7 +2975,7 @@ msgstr "Buscar Series/Películas/Ovas" msgctxt "#70065" msgid ">> Next Page" -msgstr ">> Página siguiente"" +msgstr ">> Página siguiente" msgctxt "#70066" msgid " Search title in spanish: %s" @@ -3857,4 +3857,93 @@ msgctxt "#70291" msgid "Error, during conversion" msgstr "Error, en conversión" +# Servers ---- +msgctxt "#70292" +msgid "[%s] File no longer exist on this server." +msgstr "[%s] El archivo ya no está presente en el servidor." + +msgctxt "#70293" +msgid "[%s] The file is processing or has been deleted." +msgstr "[%s] El archivo de video todavía se está procesando o se ha eliminado." + +msgctxt "#70294" +msgid "[%s] Link Not valid." +msgstr "[%s] Enlace no válido." + +msgctxt "#70295" +msgid "[%s] Premium account needed." +msgstr "[%s] Debes tener una cuenta premium." + +msgctxt "#70296" +msgid "[%s] Internal server error." +msgstr "[%s] Error interno del servidor." + +msgctxt "#70297" +msgid "[%s] File is awaiting for moderation." +msgstr "[%s] El video está esperando por moderación." + +msgctxt "#70298" +msgid "[%s] The number of allowed reproductions has been exceeded." +msgstr "[%s] Se ha excedido el número de reproducciones permitidas." + +msgctxt "#70299" +msgid "[%s] You do not have permission to access this file." +msgstr "[%s] No tienes permiso para acceder a este video." + +msgctxt "#70300" +msgid "[%s] Too many connections to the server, try later." +msgstr "[%s] Demasiadas conexiones al servidor, inténtelo después." + +msgctxt "#70301" +msgid "[%s] File deleted for infringement." +msgstr "[%s] Archivo eliminado por infracción." + +msgctxt "#70302" +msgid "[%s] This server only works from Kodi 17." +msgstr "[%s] Este conector solo funciona a partir de Kodi 17." + +msgctxt "#70303" +msgid "[%s] This server does not work with your version of Plex, try to update it." +msgstr "[%s] Este conector no funciona con tu versión de Plex, intenta actualizarla." + +msgctxt "#70304" +msgid "[%s] This server requires updating python to version 2.7.9 or higher." +msgstr "[%s] Este conector requiere actualizar python a la versión 2.7.9 o superior." +# ============ + +msgctxt "#70305" +msgid "Search in channels" +msgstr "Buscar en canales" + +msgctxt "#70306" +msgid "Movies by Genre" +msgstr "Películas por Generos" + +msgctxt "#70307" +msgid "Most popular Movies" +msgstr "Películas mas populares" + +msgctxt "#70308" +msgid "Top rated Movies" +msgstr "Películas mejor valoradas" + +msgctxt "#70309" +msgid "Movies Now in Theatres " +msgstr "Películas Ahora en cines" + +msgctxt "#70310" +msgid "Series by Genre" +msgstr "Series por Generos" + +msgctxt "#70311" +msgid "Series most polupar" +msgstr "Series mas populares" + +msgctxt "#70312" +msgid "Series in progress" +msgstr "Series en emisión" + +msgctxt "#70313" +msgid "Top rated Series" +msgstr "Series mejor valoradas" diff --git a/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po b/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po index c938ff75..8870dcc9 100644 --- a/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po @@ -503,7 +503,7 @@ msgstr "Filtrar servidores (Lista Negra)" msgctxt "#60001" msgid "Filter server (Black List)\nNo connection available that meets the requirements of the Black list.\nTry again by changing the filter in 'Server Configuration" -msgstr "Filtrar servidores (Lista Negra)\nNo hay enlaces disponibles que cumplan los requisitos de su Lista Negra.\nPruebe de nuevo modificando el fíltro en 'Configuracíon Servidores"" +msgstr "Filtrar servidores (Lista Negra)\nNo hay enlaces disponibles que cumplan los requisitos de su Lista Negra.\nPruebe de nuevo modificando el fíltro en 'Configuracíon Servidores" msgctxt "#60003" msgid "Connecting with %s" @@ -2207,7 +2207,7 @@ msgstr "Herramientas de canales" msgctxt "#60549" msgid "Check the files * _data.json" -msgstr "Comprobar archivos *_data.json"," +msgstr "Comprobar archivos *_data.json" msgctxt "#60550" msgid "Servers locked" @@ -2550,8 +2550,8 @@ msgid "Show option \"All Seasons\"." msgstr "Mostrar la opción \"Todas las temporadas\"" msgctxt "#60643" -msgid "Do not combine the seasons of the series"" -msgstr "No apilar temporadas de series"" +msgid "Do not combine the seasons of the series" +msgstr "No apilar temporadas de series" msgctxt "#60644" msgid "Only if there is one season" @@ -2895,7 +2895,7 @@ msgstr "Sagas y Colecciones" msgctxt "#70045" msgid "Movies/TV Shows/Documentaries by Themes" -msgstr "Películas/Series/Documentales por Temas"" +msgstr "Películas/Series/Documentales por Temas" msgctxt "#70046" msgid "Search Movies/TV Shows" @@ -2975,7 +2975,7 @@ msgstr "Buscar Series/Películas/Ovas" msgctxt "#70065" msgid ">> Next Page" -msgstr ">> Página siguiente"" +msgstr ">> Página siguiente" msgctxt "#70066" msgid " Search title in spanish: %s" @@ -3857,4 +3857,93 @@ msgctxt "#70291" msgid "Error, during conversion" msgstr "Error, en conversión" +# Servers ---- +msgctxt "#70292" +msgid "[%s] File no longer exist on this server." +msgstr "[%s] El archivo ya no está presente en el servidor." + +msgctxt "#70293" +msgid "[%s] The file is processing or has been deleted." +msgstr "[%s] El archivo de video todavía se está procesando o se ha eliminado." + +msgctxt "#70294" +msgid "[%s] Link Not valid." +msgstr "[%s] Enlace no válido." + +msgctxt "#70295" +msgid "[%s] Premium account needed." +msgstr "[%s] Debes tener una cuenta premium." + +msgctxt "#70296" +msgid "[%s] Internal server error." +msgstr "[%s] Error interno del servidor." + +msgctxt "#70297" +msgid "[%s] File is awaiting for moderation." +msgstr "[%s] El video está esperando por moderación." + +msgctxt "#70298" +msgid "[%s] The number of allowed reproductions has been exceeded." +msgstr "[%s] Se ha excedido el número de reproducciones permitidas." + +msgctxt "#70299" +msgid "[%s] You do not have permission to access this file." +msgstr "[%s] No tienes permiso para acceder a este video." + +msgctxt "#70300" +msgid "[%s] Too many connections to the server, try later." +msgstr "[%s] Demasiadas conexiones al servidor, inténtelo después." + +msgctxt "#70301" +msgid "[%s] File deleted for infringement." +msgstr "[%s] Archivo eliminado por infracción." + +msgctxt "#70302" +msgid "[%s] This server only works from Kodi 17." +msgstr "[%s] Este conector solo funciona a partir de Kodi 17." + +msgctxt "#70303" +msgid "[%s] This server does not work with your version of Plex, try to update it." +msgstr "[%s] Este conector no funciona con tu versión de Plex, intenta actualizarla." + +msgctxt "#70304" +msgid "[%s] This server requires updating python to version 2.7.9 or higher." +msgstr "[%s] Este conector requiere actualizar python a la versión 2.7.9 o superior." +# ============ + +msgctxt "#70305" +msgid "Search in channels" +msgstr "Buscar en canales" + +msgctxt "#70306" +msgid "Movies by Genre" +msgstr "Películas por Generos" + +msgctxt "#70307" +msgid "Most popular Movies" +msgstr "Películas mas populares" + +msgctxt "#70308" +msgid "Top rated Movies" +msgstr "Películas mejor valoradas" + +msgctxt "#70309" +msgid "Movies Now in Theatres " +msgstr "Películas Ahora en cines" + +msgctxt "#70310" +msgid "Series by Genre" +msgstr "Series por Generos" + +msgctxt "#70311" +msgid "Series most polupar" +msgstr "Series mas populares" + +msgctxt "#70312" +msgid "Series in progress" +msgstr "Series en emisión" + +msgctxt "#70313" +msgid "Top rated Series" +msgstr "Series mejor valoradas" diff --git a/plugin.video.alfa/resources/language/Spanish/strings.po b/plugin.video.alfa/resources/language/Spanish/strings.po index c938ff75..8870dcc9 100644 --- a/plugin.video.alfa/resources/language/Spanish/strings.po +++ b/plugin.video.alfa/resources/language/Spanish/strings.po @@ -503,7 +503,7 @@ msgstr "Filtrar servidores (Lista Negra)" msgctxt "#60001" msgid "Filter server (Black List)\nNo connection available that meets the requirements of the Black list.\nTry again by changing the filter in 'Server Configuration" -msgstr "Filtrar servidores (Lista Negra)\nNo hay enlaces disponibles que cumplan los requisitos de su Lista Negra.\nPruebe de nuevo modificando el fíltro en 'Configuracíon Servidores"" +msgstr "Filtrar servidores (Lista Negra)\nNo hay enlaces disponibles que cumplan los requisitos de su Lista Negra.\nPruebe de nuevo modificando el fíltro en 'Configuracíon Servidores" msgctxt "#60003" msgid "Connecting with %s" @@ -2207,7 +2207,7 @@ msgstr "Herramientas de canales" msgctxt "#60549" msgid "Check the files * _data.json" -msgstr "Comprobar archivos *_data.json"," +msgstr "Comprobar archivos *_data.json" msgctxt "#60550" msgid "Servers locked" @@ -2550,8 +2550,8 @@ msgid "Show option \"All Seasons\"." msgstr "Mostrar la opción \"Todas las temporadas\"" msgctxt "#60643" -msgid "Do not combine the seasons of the series"" -msgstr "No apilar temporadas de series"" +msgid "Do not combine the seasons of the series" +msgstr "No apilar temporadas de series" msgctxt "#60644" msgid "Only if there is one season" @@ -2895,7 +2895,7 @@ msgstr "Sagas y Colecciones" msgctxt "#70045" msgid "Movies/TV Shows/Documentaries by Themes" -msgstr "Películas/Series/Documentales por Temas"" +msgstr "Películas/Series/Documentales por Temas" msgctxt "#70046" msgid "Search Movies/TV Shows" @@ -2975,7 +2975,7 @@ msgstr "Buscar Series/Películas/Ovas" msgctxt "#70065" msgid ">> Next Page" -msgstr ">> Página siguiente"" +msgstr ">> Página siguiente" msgctxt "#70066" msgid " Search title in spanish: %s" @@ -3857,4 +3857,93 @@ msgctxt "#70291" msgid "Error, during conversion" msgstr "Error, en conversión" +# Servers ---- +msgctxt "#70292" +msgid "[%s] File no longer exist on this server." +msgstr "[%s] El archivo ya no está presente en el servidor." + +msgctxt "#70293" +msgid "[%s] The file is processing or has been deleted." +msgstr "[%s] El archivo de video todavía se está procesando o se ha eliminado." + +msgctxt "#70294" +msgid "[%s] Link Not valid." +msgstr "[%s] Enlace no válido." + +msgctxt "#70295" +msgid "[%s] Premium account needed." +msgstr "[%s] Debes tener una cuenta premium." + +msgctxt "#70296" +msgid "[%s] Internal server error." +msgstr "[%s] Error interno del servidor." + +msgctxt "#70297" +msgid "[%s] File is awaiting for moderation." +msgstr "[%s] El video está esperando por moderación." + +msgctxt "#70298" +msgid "[%s] The number of allowed reproductions has been exceeded." +msgstr "[%s] Se ha excedido el número de reproducciones permitidas." + +msgctxt "#70299" +msgid "[%s] You do not have permission to access this file." +msgstr "[%s] No tienes permiso para acceder a este video." + +msgctxt "#70300" +msgid "[%s] Too many connections to the server, try later." +msgstr "[%s] Demasiadas conexiones al servidor, inténtelo después." + +msgctxt "#70301" +msgid "[%s] File deleted for infringement." +msgstr "[%s] Archivo eliminado por infracción." + +msgctxt "#70302" +msgid "[%s] This server only works from Kodi 17." +msgstr "[%s] Este conector solo funciona a partir de Kodi 17." + +msgctxt "#70303" +msgid "[%s] This server does not work with your version of Plex, try to update it." +msgstr "[%s] Este conector no funciona con tu versión de Plex, intenta actualizarla." + +msgctxt "#70304" +msgid "[%s] This server requires updating python to version 2.7.9 or higher." +msgstr "[%s] Este conector requiere actualizar python a la versión 2.7.9 o superior." +# ============ + +msgctxt "#70305" +msgid "Search in channels" +msgstr "Buscar en canales" + +msgctxt "#70306" +msgid "Movies by Genre" +msgstr "Películas por Generos" + +msgctxt "#70307" +msgid "Most popular Movies" +msgstr "Películas mas populares" + +msgctxt "#70308" +msgid "Top rated Movies" +msgstr "Películas mejor valoradas" + +msgctxt "#70309" +msgid "Movies Now in Theatres " +msgstr "Películas Ahora en cines" + +msgctxt "#70310" +msgid "Series by Genre" +msgstr "Series por Generos" + +msgctxt "#70311" +msgid "Series most polupar" +msgstr "Series mas populares" + +msgctxt "#70312" +msgid "Series in progress" +msgstr "Series en emisión" + +msgctxt "#70313" +msgid "Top rated Series" +msgstr "Series mejor valoradas" From 6882a2a11ae5d9db23b3eed32c290a2ecb899da1 Mon Sep 17 00:00:00 2001 From: pipcat Date: Mon, 30 Jul 2018 19:21:03 +0200 Subject: [PATCH 03/20] =?UTF-8?q?Unificar=20traducci=C3=B3n=20de=20categor?= =?UTF-8?q?=C3=ADas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/setting.py | 56 ++++++++++++++++++++++++ plugin.video.alfa/channelselector.py | 7 +-- plugin.video.alfa/platformcode/config.py | 8 ++++ 3 files changed, 65 insertions(+), 6 deletions(-) diff --git a/plugin.video.alfa/channels/setting.py b/plugin.video.alfa/channels/setting.py index cc1b95b1..47770941 100644 --- a/plugin.video.alfa/channels/setting.py +++ b/plugin.video.alfa/channels/setting.py @@ -327,6 +327,9 @@ def conf_tools(item): # Activar o desactivar canales if item.extra == "channels_onoff": + if config.get_platform(True)['num_version'] >= 17.0: # A partir de Kodi 16 se puede usar multiselect, y de 17 con preselect + return channels_onoff(item) + import channelselector from core import channeltools @@ -529,6 +532,59 @@ def conf_tools(item): return itemlist +def channels_onoff(item): + import channelselector, xbmcgui + from core import channeltools + + # Cargar lista de opciones + # ------------------------ + lista = []; ids = [] + channels_list = channelselector.filterchannels('allchannelstatus') + for channel in channels_list: + channel_parameters = channeltools.get_channel_parameters(channel.channel) + lbl = '%s' % channel_parameters['language'] + lbl += ' %s' % [config.get_localized_category(categ) for categ in channel_parameters['categories']] + + it = xbmcgui.ListItem(channel.title, lbl) + it.setArt({ 'thumb': channel.thumbnail, 'fanart': channel.fanart }) + lista.append(it) + ids.append(channel.channel) + + # Diálogo para pre-seleccionar + # ---------------------------- + preselecciones = ['Pre-seleccionar activados actualmente', 'Pre-seleccionar todos', 'No pre-seleccionar ninguno'] + ret = platformtools.dialog_select(config.get_localized_string(60545), preselecciones) + if ret == -1: return False # pedido cancel + if ret == 2: preselect = [] + elif ret == 1: preselect = range(len(ids)) + else: + preselect = [] + for i, canal in enumerate(ids): + channel_status = config.get_setting('enabled', canal) + if channel_status is None: channel_status = True + if channel_status: + preselect.append(i) + + # Diálogo para seleccionar + # ------------------------ + ret = xbmcgui.Dialog().multiselect(config.get_localized_string(60545), lista, preselect=preselect, useDetails=True) + if ret == None: return False # pedido cancel + seleccionados = [ids[i] for i in ret] + + # Guardar cambios en canales activados + # ------------------------------------ + for canal in ids: + channel_status = config.get_setting('enabled', canal) + if channel_status is None: channel_status = True + + if channel_status and canal not in seleccionados: + config.set_setting('enabled', False, canal) + elif not channel_status and canal in seleccionados: + config.set_setting('enabled', True, canal) + + return False + + def channel_status(item, dict_values): try: for k in dict_values: diff --git a/plugin.video.alfa/channelselector.py b/plugin.video.alfa/channelselector.py index d4a64f1e..f2414b8c 100644 --- a/plugin.video.alfa/channelselector.py +++ b/plugin.video.alfa/channelselector.py @@ -63,11 +63,6 @@ def getchanneltypes(view="thumb_"): # Lista de categorias channel_types = ["movie", "tvshow", "anime", "documentary", "vos", "direct", "torrent"] - dict_types_lang = {'movie': config.get_localized_string(30122), 'tvshow': config.get_localized_string(30123), - 'anime': config.get_localized_string(30124), 'documentary': config.get_localized_string(30125), - 'vos': config.get_localized_string(30136), 'adult': config.get_localized_string(30126), - 'direct': config.get_localized_string(30137)} - if config.get_setting("adult_mode") != 0: channel_types.append("adult") @@ -83,7 +78,7 @@ def getchanneltypes(view="thumb_"): for channel_type in channel_types: logger.info("channel_type=%s" % channel_type) - title = dict_types_lang.get(channel_type, channel_type) + title = config.get_localized_category(channel_type) itemlist.append(Item(title=title, channel="channelselector", action="filterchannels", category=title, channel_type=channel_type, viewmode="thumbnails", thumbnail=get_thumb("channels_%s.png" % channel_type, view))) diff --git a/plugin.video.alfa/platformcode/config.py b/plugin.video.alfa/platformcode/config.py index 278bde5c..227a5262 100644 --- a/plugin.video.alfa/platformcode/config.py +++ b/plugin.video.alfa/platformcode/config.py @@ -299,6 +299,14 @@ def get_localized_string(code): return dev +def get_localized_category(categ): + categories = {'movie': get_localized_string(30122), 'tvshow': get_localized_string(30123), + 'anime': get_localized_string(30124), 'documentary': get_localized_string(30125), + 'vos': get_localized_string(30136), 'adult': get_localized_string(30126), + 'direct': get_localized_string(30137), 'torrent': get_localized_string(70015)} + return categories[categ] if categ in categories else categ + + def get_videolibrary_config_path(): value = get_setting("videolibrarypath") From c14b0fe462c22a24302a6734e6d33f8986f2be07 Mon Sep 17 00:00:00 2001 From: pipcat Date: Mon, 30 Jul 2018 20:03:17 +0200 Subject: [PATCH 04/20] =?UTF-8?q?Correcci=C3=B3n=20para=20acentos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/setting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/setting.py b/plugin.video.alfa/channels/setting.py index 47770941..806558e9 100644 --- a/plugin.video.alfa/channels/setting.py +++ b/plugin.video.alfa/channels/setting.py @@ -543,7 +543,8 @@ def channels_onoff(item): for channel in channels_list: channel_parameters = channeltools.get_channel_parameters(channel.channel) lbl = '%s' % channel_parameters['language'] - lbl += ' %s' % [config.get_localized_category(categ) for categ in channel_parameters['categories']] + # ~ lbl += ' %s' % [config.get_localized_category(categ) for categ in channel_parameters['categories']] + lbl += ' %s' % ', '.join(config.get_localized_category(categ) for categ in channel_parameters['categories']) it = xbmcgui.ListItem(channel.title, lbl) it.setArt({ 'thumb': channel.thumbnail, 'fanart': channel.fanart }) From 9813a4d54b42193360b64c6fd08e47082d176136 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Tue, 31 Jul 2018 13:12:17 +0200 Subject: [PATCH 05/20] =?UTF-8?q?B=C3=BAsquedas:=20mejoras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se adapta al nuevo tipo de búsquedas --- plugin.video.alfa/channels/alltorrent.py | 17 +++++++++-- plugin.video.alfa/channels/elitetorrent.py | 17 +++++++++-- plugin.video.alfa/channels/grantorrent.py | 7 +++-- plugin.video.alfa/channels/mejortorrent1.py | 18 +++++++++--- plugin.video.alfa/channels/newpct1.py | 31 +++++++++++++-------- 5 files changed, 67 insertions(+), 23 deletions(-) diff --git a/plugin.video.alfa/channels/alltorrent.py b/plugin.video.alfa/channels/alltorrent.py index d982c347..aa761c32 100755 --- a/plugin.video.alfa/channels/alltorrent.py +++ b/plugin.video.alfa/channels/alltorrent.py @@ -126,6 +126,7 @@ def listado(item): title = title.replace("Dual", "").replace("dual", "").replace("Subtitulada", "").replace("subtitulada", "").replace("Subt", "").replace("subt", "").replace("Sub", "").replace("sub", "").replace("(Proper)", "").replace("(proper)", "").replace("Proper", "").replace("proper", "").replace("#", "").replace("(Latino)", "").replace("Latino", "") title = title.replace("- HDRip", "").replace("(HDRip)", "").replace("- Hdrip", "").replace("(microHD)", "").replace("(DVDRip)", "").replace("(HDRip)", "").replace("(BR-LINE)", "").replace("(HDTS-SCREENER)", "").replace("(BDRip)", "").replace("(BR-Screener)", "").replace("(DVDScreener)", "").replace("TS-Screener", "").replace(" TS", "").replace(" Ts", "") title = re.sub(r'\??\s?\d*?\&.*', '', title).title().strip() + item_local.from_title = title #Guardamos esta etiqueta para posible desambiguación de título item_local.contentType = "movie" item_local.contentTitle = title @@ -139,8 +140,8 @@ def listado(item): itemlist.append(item_local.clone()) #Pintar pantalla - if not item.category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global - return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo + #if not item.category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global + # return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo #Pasamos a TMDB la lista completa Itemlist tmdb.set_infoLabels(itemlist, True) @@ -264,7 +265,19 @@ def findvideos(item): return itemlist + +def actualizar_titulos(item): + logger.info() + itemlist = [] + + from platformcode import launcher + + item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels + + #Volvemos a la siguiente acción en el canal + return item + def search(item, texto): logger.info() texto = texto.replace(" ", "+") diff --git a/plugin.video.alfa/channels/elitetorrent.py b/plugin.video.alfa/channels/elitetorrent.py index 224e94a6..86a1930d 100644 --- a/plugin.video.alfa/channels/elitetorrent.py +++ b/plugin.video.alfa/channels/elitetorrent.py @@ -173,6 +173,7 @@ def listado(item): title = title.replace("Dual", "").replace("dual", "").replace("Subtitulada", "").replace("subtitulada", "").replace("Subt", "").replace("subt", "").replace("Sub", "").replace("sub", "").replace("(Proper)", "").replace("(proper)", "").replace("Proper", "").replace("proper", "").replace("#", "").replace("(Latino)", "").replace("Latino", "") title = title.replace("- HDRip", "").replace("(HDRip)", "").replace("- Hdrip", "").replace("(microHD)", "").replace("(DVDRip)", "").replace("(HDRip)", "").replace("(BR-LINE)", "").replace("(HDTS-SCREENER)", "").replace("(BDRip)", "").replace("(BR-Screener)", "").replace("(DVDScreener)", "").replace("TS-Screener", "").replace(" TS", "").replace(" Ts", "") title = re.sub(r'\??\s?\d*?\&.*', '', title).title().strip() + item_local.from_title = title #Guardamos esta etiqueta para posible desambiguación de título if item_local.extra == "peliculas": #preparamos Item para películas if "/serie" in scrapedurl or "/serie" in item.url: @@ -215,8 +216,8 @@ def listado(item): itemlist.append(item_local.clone()) #Pintar pantalla - if not item.category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global - return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo + #if not item.category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global + # return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo #Pasamos a TMDB la lista completa Itemlist tmdb.set_infoLabels(itemlist, True) @@ -339,6 +340,18 @@ def findvideos(item): return itemlist +def actualizar_titulos(item): + logger.info() + itemlist = [] + + from platformcode import launcher + + item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels + + #Volvemos a la siguiente acción en el canal + return item + + def search(item, texto): logger.info("search:" + texto) # texto = texto.replace(" ", "+") diff --git a/plugin.video.alfa/channels/grantorrent.py b/plugin.video.alfa/channels/grantorrent.py index 27ed4ee5..cfa78a18 100644 --- a/plugin.video.alfa/channels/grantorrent.py +++ b/plugin.video.alfa/channels/grantorrent.py @@ -333,13 +333,14 @@ def listado(item): item_local.contentSerieName = title.strip() item_local.title = title.strip() #Salvamos el título + item_local.from_title = title.strip() #Guardamos esta etiqueta para posible desambiguación de título item_local.infoLabels['year'] = "-" #Reseteamos el año para que TMDB nos lo de #Agrega el item local a la lista itemlist itemlist.append(item_local.clone()) - if not item.category and result_mode == 0: #Si este campo no existe, viene de la primera pasada de una búsqueda global - return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorrar tiempo + #if not item.category and result_mode == 0: #Si este campo no existe, viene de la primera pasada de una búsqueda global + # return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorrar tiempo #Pasamos a TMDB la lista completa Itemlist tmdb.set_infoLabels(itemlist, __modo_grafico__) @@ -820,7 +821,7 @@ def actualizar_titulos(item): item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels #Volvemos a la siguiente acción en el canal - return launcher.run(item) + return item def search(item, texto): diff --git a/plugin.video.alfa/channels/mejortorrent1.py b/plugin.video.alfa/channels/mejortorrent1.py index 1b746fa8..33d7a0c1 100644 --- a/plugin.video.alfa/channels/mejortorrent1.py +++ b/plugin.video.alfa/channels/mejortorrent1.py @@ -340,7 +340,15 @@ def listado(item): item_local.url = url item_local.contentType = "season" else: - real_title, item_local.contentSeason, item_local.quality = scrapertools.find_single_match(scrapedurl, patron_title_se) + try: + real_title, item_local.contentSeason, item_local.quality = scrapertools.find_single_match(scrapedurl, patron_title_se) + except: + real_title = '' + item_local.action = "findvideos" + item_local.contentType = "episode" + item_local.contentSeason = 1 + item_local.contentEpisodeNumber = 1 + item_local.quality = '' item_local.contentSerieName = real_title.replace("-", " ").capitalize() if not item_local.contentSeason: @@ -448,6 +456,7 @@ def listado(item): elif item_local.contentType != "episode": item_local.title = title item_local.title = item_local.contentSerieName + item_local.from_title = title #Guardamos esta etiqueta para posible desambiguación de título if "saga" in item_local.contentTitle.lower() or "saga" in item_local.contentSerieName.lower(): item_local.contentTitle = item_local.contentTitle.replace("Saga ", "").replace("Saga", "") @@ -681,6 +690,7 @@ def listado_busqueda(item): title = title.replace("4k-hdr", "").replace("4K-HDR", "").replace("hdr", "").replace("HDR", "").replace("4k", "").replace("4K", "") title = title.replace("(", "").replace(")", "").replace("[", "").replace("]", "").strip() item_local.title = title + item_local.from_title = title #Guardamos esta etiqueta para posible desambiguación de título if "Peliculas" in scrapedtype or "Variados" in scrapedtype: item_local.action = "findvideos" @@ -711,8 +721,8 @@ def listado_busqueda(item): #logger.debug(item_local) - if not category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global - return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo + #if not category: #Si este campo no existe es que viene de la primera pasada de una búsqueda global + # return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo #Llamamos a TMDB para que complete InfoLabels desde itemlist. Mejor desde itemlist porque envía las queries en paralelo tmdb.set_infoLabels(itemlist, __modo_grafico__) @@ -973,7 +983,7 @@ def actualizar_titulos(item): item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels #Volvemos a la siguiente acción en el canal - return launcher.run(item) + return item def search(item, texto): diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index 89a6f77e..2d14a510 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -405,8 +405,8 @@ def listado(item): itemlist.append(item.clone(action='', title=item.category + ': ERROR 02: LISTADO: Ha cambiado la estructura de la Web. Reportar el error con el log')) return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos - #logger.debug("MATCHES: " + str(len(matches))) - #logger.debug(matches) + logger.debug("MATCHES: " + str(len(matches))) + logger.debug(matches) #logger.debug("patron: " + patron + " / fichas: " + fichas) # Identifico la página actual y el total de páginas para el pie de página @@ -476,7 +476,9 @@ def listado(item): # Limpiamos títulos, Sacamos datos de calidad, audio y lenguaje title = re.sub('\r\n', '', scrapedtitle).decode('iso-8859-1').encode('utf8').strip() + #title = re.sub('\r\n', '', scrapedtitle).decode('utf-8').encode('utf-8').strip() title_alt = re.sub('\r\n', '', scrapedtitle_alt).decode('iso-8859-1').encode('utf8').strip() + #title_alt = re.sub('\r\n', '', scrapedtitle_alt).decode('utf-8').encode('utf-8').strip() title = title.replace("á", "a").replace("é", "e").replace("í", "i").replace("ó", "o").replace("ú", "u").replace("ü", "u").replace("�", "ñ").replace("ñ", "ñ").replace(".", " ") title_alt = title_alt.replace("á", "a").replace("é", "e").replace("í", "i").replace("ó", "o").replace("ú", "u").replace("ü", "u").replace("�", "ñ").replace("ñ", "ñ") @@ -485,7 +487,7 @@ def listado(item): #Determinamos y marcamos idiomas distintos del castellano item_local.language = [] - if "[vos" in title.lower() or "v.o.s" in title.lower() or "vo" in title.lower() or ".com/pelicula/" in scrapedurl or ".com/series-vo" in scrapedurl or "-vo/" in scrapedurl or "vos" in calidad.lower() or "vose" in calidad.lower() or "v.o.s" in calidad.lower() or "sub" in calidad.lower() or ".com/peliculas-vo" in item.url: + if "[vos" in title.lower() or "v.o.s" in title.lower() or "vo" in title.lower() or "subs" in title.lower() or ".com/pelicula/" in scrapedurl or ".com/series-vo" in scrapedurl or "-vo/" in scrapedurl or "vos" in calidad.lower() or "vose" in calidad.lower() or "v.o.s" in calidad.lower() or "sub" in calidad.lower() or ".com/peliculas-vo" in item.url: item_local.language += ["VOS"] title = title.replace(" [Subs. integrados]", "").replace(" [subs. Integrados]", "").replace(" [VOSE", "").replace(" [VOS", "").replace(" (V.O.S.E)", "").replace(" VO", "").replace("Subtitulos", "") if "latino" in title.lower() or "argentina" in title.lower() or "-latino/" in scrapedurl or "latino" in calidad.lower() or "argentina" in calidad.lower(): @@ -557,9 +559,9 @@ def listado(item): title = re.sub(r' \d+x\d+', '', title) title = re.sub(r' x\d+', '', title) - title = title.replace("Ver online ", "").replace("Descarga Serie HD ", "").replace("Descargar Serie HD ", "").replace("Descarga Serie ", "").replace("Descargar Serie ", "").replace("Ver en linea ", "").replace("Ver en linea", "").replace("HD ", "").replace("(Proper)", "").replace("RatDVD", "").replace("DVDRiP", "").replace("DVDRIP", "").replace("DVDRip", "").replace("DVDR", "").replace("DVD9", "").replace("DVD", "").replace("DVBRIP", "").replace("DVB", "").replace("LINE", "").replace("- ES ", "").replace("ES ", "").replace("COMPLETA", "").replace("(", "-").replace(")", "-").replace(".", " ").strip() + title = title.replace("Ver online ", "").replace("Descarga Serie HD ", "").replace("Descargar Serie HD ", "").replace("Descarga Serie ", "").replace("Descargar Serie ", "").replace("Ver en linea ", "").replace("Ver en linea", "").replace("en Full HD", "").replace("en hd ", "").replace("en HD ", "").replace("HD ", "").replace("(Proper)", "").replace("RatDVD", "").replace("DVDRiP", "").replace("DVDRIP", "").replace("DVDRip", "").replace("DVDR", "").replace("DVD9", "").replace("DVD", "").replace("DVBRIP", "").replace("DVB", "").replace("LINE", "").replace("calidad", " ").replace("- ES ", "").replace("ES ", "").replace("COMPLETA", "").replace("(", "-").replace(")", "-").replace(".", " ").strip() - title = title.replace("Descargar torrent ", "").replace("Descarga Gratis ", "").replace("Descargar Estreno ", "").replace("Descargar Estrenos ", "").replace("Pelicula en latino ", "").replace("Descargar Pelicula ", "").replace("Descargar Peliculas ", "").replace("Descargar peliculas ", "").replace("Descargar Todas ", "").replace("Descargar Otras ", "").replace("Descargar ", "").replace("Descarga ", "").replace("Bajar ", "").replace("HDRIP ", "").replace("HDRiP ", "").replace("HDRip ", "").replace("RIP ", "").replace("Rip", "").replace("RiP", "").replace("XviD", "").replace("AC3 5.1", "").replace("AC3", "").replace("1080p ", "").replace("720p ", "").replace("DVD-Screener ", "").replace("TS-Screener ", "").replace("Screener ", "").replace("BdRemux ", "").replace("BR ", "").replace("4KULTRA", "").replace("FULLBluRay", "").replace("FullBluRay", "").replace("BluRay", "").replace("Bonus Disc", "").replace("de Cine ", "").replace("TeleCine ", "").replace("latino", "").replace("Latino", "").replace("argentina", "").replace("Argentina", "").strip() + title = title.replace("Descargar torrent ", "").replace("Descarga Gratis", "").replace("Descarga gratis", "").replace("Descargar Gratis", "").replace("Descargar gratis", "").replace("en gratis", "").replace("gratis gratis", "").replace("Gratisgratis", "").replace("Descargar Estreno ", "").replace("Descargar Estrenos ", "").replace("Pelicula en latino ", "").replace("Descargar Pelicula ", "").replace("Descargar pelicula ", "").replace("Descargar Peliculas ", "").replace("Descargar peliculas ", "").replace("Descargar Todas ", "").replace("Descargar Otras ", "").replace("Descargar ", "").replace("Descarga ", "").replace("Descargar ", "").replace("Decargar ", "").replace("Bajar ", "").replace("HDRIP ", "").replace("HDRiP ", "").replace("HDRip ", "").replace("RIP ", "").replace("Rip", "").replace("RiP", "").replace("XviD", "").replace("AC3 5.1", "").replace("AC3", "").replace("1080p ", "").replace("720p ", "").replace("DVD-Screener ", "").replace("TS-Screener ", "").replace("Screener ", "").replace("BdRemux ", "").replace("BR ", "").replace("4KULTRA", "").replace("FULLBluRay", "").replace("FullBluRay", "").replace("en BluRay", "").replace("BluRay en", "").replace("Bluray en", "").replace("BluRay", "").replace("Bonus Disc", "").replace("de Cine ", "").replace("TeleCine ", "").replace("latino", "").replace("Latino", "").replace("argentina", "").replace("Argentina", "").replace("++Sub", "").replace("+-+Sub", "").strip() if title.endswith("torrent gratis"): title = title[:-15] if title.endswith("gratis"): title = title[:-7] @@ -586,6 +588,7 @@ def listado(item): #Limpieza final del título y guardado en las variables según su tipo de contenido title = scrapertools.remove_htmltags(title) item_local.title = title + item_local.from_title = title #Guardamos esta etiqueta para posible desambiguación de título if item_local.contentType == "movie": item_local.contentTitle = title else: @@ -609,6 +612,8 @@ def listado(item): #Agrega el item local a la lista itemlist itemlist.append(item_local.clone()) + + #logger.debug(item_local) #Pasamos a TMDB la lista completa Itemlist tmdb.set_infoLabels(itemlist, __modo_grafico__) @@ -920,13 +925,14 @@ def listado_busqueda(item): # Limpiamos títulos, Sacamos datos de calidad, audio y lenguaje title = re.sub('\r\n', '', scrapedtitle).decode('iso-8859-1').encode('utf8').strip() + #title = re.sub('\r\n', '', scrapedtitle).decode('utf-8').encode('utf-8').strip() title = title.replace("á", "a").replace("é", "e").replace("í", "i").replace("ó", "o").replace("ú", "u").replace("ü", "u").replace("�", "ñ").replace("ñ", "ñ") item_local.quality = scrapertools.htmlclean(calidad) #Determinamos y marcamos idiomas distintos del castellano item_local.language = [] - if "[vos" in title.lower() or "v.o.s" in title.lower() or "vo" in title.lower() or ".com/pelicula/" in url or ".com/series-vo" in url or "-vo/" in url or "vos" in calidad.lower() or "vose" in calidad.lower() or "v.o.s" in calidad.lower() or "sub" in calidad.lower() or ".com/peliculas-vo" in item.url: + if "[vos" in title.lower() or "v.o.s" in title.lower() or "vo" in title.lower() or "subs" in title.lower() or ".com/pelicula/" in url or ".com/series-vo" in url or "-vo/" in url or "vos" in calidad.lower() or "vose" in calidad.lower() or "v.o.s" in calidad.lower() or "sub" in calidad.lower() or ".com/peliculas-vo" in item.url: item_local.language += ["VOS"] title = title.replace(" [Subs. integrados]", "").replace(" [subs. Integrados]", "").replace(" [VOSE", "").replace(" [VOS", "").replace(" (V.O.S.E)", "").replace(" VO", "").replace("Subtitulos", "") if "latino" in title.lower() or "argentina" in title.lower() or "-latino/" in url or "latino" in calidad.lower() or "argentina" in calidad.lower(): @@ -986,7 +992,7 @@ def listado_busqueda(item): title_subs += ["[Miniserie]"] #Limpiamos restos en título - title = title.replace("Castellano", "").replace("castellano", "").replace("inglés", "").replace("ingles", "").replace("Inglés", "").replace("Ingles", "").replace("Ing", "").replace("Eng", "").replace("Calidad", "").replace("de la Serie", "") + title = title.replace("Castellano", "").replace("castellano", "").replace("inglés", "").replace("ingles", "").replace("Inglés", "").replace("Ingles", "").replace("Ingl", "").replace("Engl", "").replace("Calidad", "").replace("de la Serie", "") #Limpiamos cabeceras y colas del título title = re.sub(r'Descargar\s\w+\-\w+', '', title) @@ -996,9 +1002,9 @@ def listado_busqueda(item): title = re.sub(r' \d+x\d+', '', title) title = re.sub(r' x\d+', '', title) - title = title.replace("Ver online ", "").replace("Descarga Serie HD ", "").replace("Descargar Serie HD ", "").replace("Descarga Serie ", "").replace("Descargar Serie ", "").replace("Ver en linea ", "").replace("Ver en linea", "").replace("HD ", "").replace("(Proper)", "").replace("RatDVD", "").replace("DVDRiP", "").replace("DVDRIP", "").replace("DVDRip", "").replace("DVDR", "").replace("DVD9", "").replace("DVD", "").replace("DVBRIP", "").replace("DVB", "").replace("LINE", "").replace("- ES ", "").replace("ES ", "").replace("COMPLETA", "").replace("(", "-").replace(")", "-").replace(".", " ").strip() + title = title.replace("Ver online ", "").replace("Descarga Serie HD ", "").replace("Descargar Serie HD ", "").replace("Descarga Serie ", "").replace("Descargar Serie ", "").replace("Ver en linea ", "").replace("Ver en linea", "").replace("en Full HD", "").replace("en hd ", "").replace("en HD ", "").replace("HD ", "").replace("(Proper)", "").replace("RatDVD", "").replace("DVDRiP", "").replace("DVDRIP", "").replace("DVDRip", "").replace("DVDR", "").replace("DVD9", "").replace("DVD", "").replace("DVBRIP", "").replace("DVB", "").replace("LINE", "").replace("calidad", " ").replace("- ES ", "").replace("ES ", "").replace("COMPLETA", "").replace("(", "-").replace(")", "-").replace(".", " ").strip() - title = title.replace("Descargar torrent ", "").replace("Descarga Gratis ", "").replace("Descargar Estreno ", "").replace("Descargar Estrenos ", "").replace("Pelicula en latino ", "").replace("Descargar Pelicula ", "").replace("Descargar Peliculas ", "").replace("Descargar peliculas ", "").replace("Descargar Todas ", "").replace("Descargar Otras ", "").replace("Descargar ", "").replace("Descarga ", "").replace("Bajar ", "").replace("HDRIP ", "").replace("HDRiP ", "").replace("HDRip ", "").replace("RIP ", "").replace("Rip", "").replace("RiP", "").replace("XviD", "").replace("AC3 5.1", "").replace("AC3", "").replace("1080p ", "").replace("720p ", "").replace("DVD-Screener ", "").replace("TS-Screener ", "").replace("Screener ", "").replace("BdRemux ", "").replace("BR ", "").replace("4KULTRA", "").replace("FULLBluRay", "").replace("FullBluRay", "").replace("BluRay", "").replace("Bonus Disc", "").replace("de Cine ", "").replace("TeleCine ", "").replace("latino", "").replace("Latino", "").replace("argentina", "").replace("Argentina", "").strip() + title = title.replace("Descargar torrent ", "").replace("Descarga Gratis", "").replace("Descarga gratis", "").replace("Descargar Gratis", "").replace("Descargar gratis", "").replace("en gratis", "").replace("gratis gratis", "").replace("Gratisgratis", "").replace("Descargar Estreno ", "").replace("Descargar Estrenos ", "").replace("Pelicula en latino ", "").replace("Descargar Pelicula ", "").replace("Descargar pelicula ", "").replace("Descargar Peliculas ", "").replace("Descargar peliculas ", "").replace("Descargar Todas ", "").replace("Descargar Otras ", "").replace("Descargar ", "").replace("Descarga ", "").replace("Descargar ", "").replace("Decargar ", "").replace("Bajar ", "").replace("HDRIP ", "").replace("HDRiP ", "").replace("HDRip ", "").replace("RIP ", "").replace("Rip", "").replace("RiP", "").replace("XviD", "").replace("AC3 5.1", "").replace("AC3", "").replace("1080p ", "").replace("720p ", "").replace("DVD-Screener ", "").replace("TS-Screener ", "").replace("Screener ", "").replace("BdRemux ", "").replace("BR ", "").replace("4KULTRA", "").replace("FULLBluRay", "").replace("FullBluRay", "").replace("en BluRay", "").replace("BluRay en", "").replace("Bluray en", "").replace("BluRay", "").replace("Bonus Disc", "").replace("de Cine ", "").replace("TeleCine ", "").replace("latino", "").replace("Latino", "").replace("argentina", "").replace("Argentina", "").replace("++Sub", "").replace("+-+Sub", "").strip() if "pelisyseries.com" in host and item_local.contentType == "tvshow": titulo = '' @@ -1045,6 +1051,7 @@ def listado_busqueda(item): #Limpieza final del título y guardado en las variables según su tipo de contenido item_local.title = title + item_local.from_title = title #Guardamos esta etiqueta para posible desambiguación de título if item_local.contentType == "movie": item_local.contentTitle = title size = scrapedsize.replace(".", ",") @@ -1126,8 +1133,8 @@ def listado_busqueda(item): #Agrega el item local a la lista itemlist itemlist.append(item_local.clone()) - if not item.category_new: #Si este campo no existe es que viene de la primera pasada de una búsqueda global - return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo + #if not item.category_new: #Si este campo no existe es que viene de la primera pasada de una búsqueda global + # return itemlist #Retornamos sin pasar por la fase de maquillaje para ahorra tiempo #Pasamos a TMDB la lista completa Itemlist tmdb.set_infoLabels(itemlist, __modo_grafico__) @@ -1798,7 +1805,7 @@ def actualizar_titulos(item): item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels #Volvemos a la siguiente acción en el canal - return launcher.run(item) + return item def search(item, texto): From e4636b82211b69a089e879db0060ed4cc424b0a8 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Tue, 31 Jul 2018 13:14:36 +0200 Subject: [PATCH 06/20] =?UTF-8?q?Desambiguaci=C3=B3n=20de=20t=C3=ADtulos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ahora soporta que los canales reporten el título pasado por la web, por encima del título pasado por TMDB --- plugin.video.alfa/core/videolibrarytools.py | 12 +- plugin.video.alfa/lib/generictools.py | 175 +++++++++++++------- 2 files changed, 122 insertions(+), 65 deletions(-) diff --git a/plugin.video.alfa/core/videolibrarytools.py b/plugin.video.alfa/core/videolibrarytools.py index 8bff09ab..c06c5fa3 100644 --- a/plugin.video.alfa/core/videolibrarytools.py +++ b/plugin.video.alfa/core/videolibrarytools.py @@ -545,9 +545,9 @@ def add_movie(item): #Si se cancela la segunda pantalla, la variable "scraper_return" estará en False. El usuario no quiere seguir from lib import generictools - generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels - if item.tmdb_stat: - del item.tmdb_stat #Limpiamos el status para que no se grabe en la Videoteca + item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels + #if item.tmdb_stat: + # del item.tmdb_stat #Limpiamos el status para que no se grabe en la Videoteca new_item = item.clone(action="findvideos") insertados, sobreescritos, fallidos = save_movie(new_item) @@ -613,9 +613,9 @@ def add_tvshow(item, channel=None): #Si se cancela la segunda pantalla, la variable "scraper_return" estará en False. El usuario no quiere seguir from lib import generictools - generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels - if item.tmdb_stat: - del item.tmdb_stat #Limpiamos el status para que no se grabe en la Videoteca + item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels + #if item.tmdb_stat: + # del item.tmdb_stat #Limpiamos el status para que no se grabe en la Videoteca # Obtiene el listado de episodios itemlist = getattr(channel, item.action)(item) diff --git a/plugin.video.alfa/lib/generictools.py b/plugin.video.alfa/lib/generictools.py index 8027c314..0148dfa0 100644 --- a/plugin.video.alfa/lib/generictools.py +++ b/plugin.video.alfa/lib/generictools.py @@ -20,7 +20,7 @@ from core import servertools from core import channeltools from core import filetools from core.item import Item -from platformcode import config, logger +from platformcode import config, logger, platformtools from core import tmdb channel_py = "newpct1" @@ -69,25 +69,42 @@ def update_title(item): if item.from_action: item.action = item.from_action del item.from_action - if item.from_title: - item.title = item.from_title - del item.from_title - elif item.contentType != "movie": - item.add_videolibrary = True #Estamos Añadiendo a la Videoteca. Indicador para control de uso de los Canales - if item.contentType == "movie": - if item.channel == channel_py: #Si es una peli de NewPct1, ponemos el nombre del clone - item.channel = scrapertools.find_single_match(item.url, 'http.?\:\/\/(?:www.)?(\w+)\.\w+\/') - if item.channel_host: #Borramos ya el indicador para que no se guarde en la Videoteca - del item.channel_host - if item.contentTitle: - item.contentTitle = re.sub(r' -%s-' % item.category, '', item.contentTitle) - item.title = re.sub(r' -%s-' % item.category, '', item.title) + if item.from_update: + if item.from_title_tmdb: #Si se salvó el título del contenido devuelto por TMDB, se restaura. + item.title = item.from_title_tmdb + else: + item.add_videolibrary = True #Estamos Añadiendo a la Videoteca. Indicador para control de uso de los Canales + if item.add_videolibrary: + if item.contentType == "movie": + if item.from_title_tmdb: #Si se salvó el título del contenido devuelto por TMDB, se restaura. + item.title = item.from_title_tmdb + del item.add_videolibrary + if item.channel_host: #Borramos ya el indicador para que no se guarde en la Videoteca + del item.channel_host + if item.contentTitle: + item.contentTitle = re.sub(r' -%s-' % item.category, '', item.contentTitle) + item.title = re.sub(r' -%s-' % item.category, '', item.title) + if item.contentType == 'movie': + from_title_tmdb = item.contentTitle + else: + from_title_tmdb = item.contentSerieName - #Sólo ejecutamos este código si no se ha hecho antes en el Canal. Por ejemplo, si se ha llamado desde Episodios, + #Sólo ejecutamos este código si no se ha hecho antes en el Canal. Por ejemplo, si se ha llamado desde Episodios o Findvideos, #ya no se ejecutará al Añadia a Videoteca, aunque desde el canal se podrá llamar tantas veces como se quiera, #o hasta que encuentre un título no ambiguo - if not item.tmdb_stat: + if item.tmdb_stat: + if item.from_title_tmdb: del item.from_title_tmdb + if item.from_title: del item.from_title + item.from_update = True + del item.from_update + if item.contentType == "movie": + if item.channel == channel_py: #Si es una peli de NewPct1, ponemos el nombre del clone + item.channel = scrapertools.find_single_match(item.url, 'http.?\:\/\/(?:www.)?(\w+)\.\w+\/') + else: new_item = item.clone() #Salvamos el Item inicial para restaurarlo si el usuario cancela + if item.contentType == "movie": + if item.channel == channel_py: #Si es una peli de NewPct1, ponemos el nombre del clone + item.channel = scrapertools.find_single_match(item.url, 'http.?\:\/\/(?:www.)?(\w+)\.\w+\/') #Borramos los IDs y el año para forzar a TMDB que nos pregunte if item.infoLabels['tmdb_id'] or item.infoLabels['tmdb_id'] == None: item.infoLabels['tmdb_id'] = '' if item.infoLabels['tvdb_id'] or item.infoLabels['tvdb_id'] == None: item.infoLabels['tvdb_id'] = '' @@ -95,6 +112,16 @@ def update_title(item): if item.infoLabels['season']: del item.infoLabels['season'] #Funciona mal con num. de Temporada. Luego lo restauramos item.infoLabels['year'] = '-' + if item.from_title: + if item.from_title_tmdb: + if scrapertools.find_single_match(item.from_title_tmdb, '^(?:\[COLOR \w+\])?(.*?)(?:\[)'): + from_title_tmdb = scrapertools.find_single_match(item.from_title_tmdb, '^(?:\[COLOR \w+\])?(.*?)(?:\[)').strip() + item.title = item.title.replace(from_title_tmdb, item.from_title) + item.infoLabels['title'] = item.from_title + + if item.from_title_tmdb: del item.from_title_tmdb + if not item.from_update and item.from_title: del item.from_title + if item.contentSerieName: #Copiamos el título para que sirva de referencia en menú "Completar Información" item.infoLabels['originaltitle'] = item.contentSerieName item.contentTitle = item.contentSerieName @@ -109,57 +136,67 @@ def update_title(item): #Si el usuario ha cambiado los datos en "Completar Información" hay que ver el título definitivo en TMDB if not item.infoLabels['tmdb_id']: if item.contentSerieName: - item.contentSerieName = item.contentTitle #Se pone título nuevo - item.infoLabels['noscrap_id'] = '' #Se resetea, por si acaso - item.infoLabels['year'] = '-' #Se resetea, por si acaso - scraper_return = scraper.find_and_set_infoLabels(item) #Se intenta de nuevo + item.contentSerieName = item.contentTitle #Se pone título nuevo + item.infoLabels['noscrap_id'] = '' #Se resetea, por si acaso + item.infoLabels['year'] = '-' #Se resetea, por si acaso + scraper_return = scraper.find_and_set_infoLabels(item) #Se intenta de nuevo #Parece que el usuario ha cancelado de nuevo. Restituimos los datos a la situación inicial if not scraper_return or not item.infoLabels['tmdb_id']: item = new_item.clone() else: - item.tmdb_stat = True #Marcamos Item como procesado correctamente por TMDB (pasada 2) + item.tmdb_stat = True #Marcamos Item como procesado correctamente por TMDB (pasada 2) else: - item.tmdb_stat = True #Marcamos Item como procesado correctamente por TMDB (pasada 1) + item.tmdb_stat = True #Marcamos Item como procesado correctamente por TMDB (pasada 1) #Si el usuario ha seleccionado una opción distinta o cambiado algo, ajustamos los títulos + if item.contentType != 'movie' or item.from_update: + item.channel = new_item.channel #Restuaramos el nombre del canal, por si lo habíamos cambiado if item.tmdb_stat == True: if new_item.contentSerieName: #Si es serie... if config.get_setting("filter_languages", item.channel) >= 0: item.title_from_channel = new_item.contentSerieName #Guardo el título incial para Filtertools item.contentSerieName = new_item.contentSerieName #Guardo el título incial para Filtertools else: - item.title = item.title.replace(new_item.contentSerieName, item.contentTitle) + item.title = item.title.replace(new_item.contentSerieName, item.contentTitle).replace(from_title_tmdb, item.contentTitle) item.contentSerieName = item.contentTitle if new_item.contentSeason: item.contentSeason = new_item.contentSeason #Restauramos Temporada if item.infoLabels['title']: del item.infoLabels['title'] #Borramos título de peli (es serie) - else: #Si es película... - item.title = item.title.replace(new_item.contentTitle, item.contentTitle) - if new_item.infoLabels['year']: #Actualizamos el Año en el título + else: #Si es película... + item.title = item.title.replace(new_item.contentTitle, item.contentTitle).replace(from_title_tmdb, item.contentTitle) + if new_item.infoLabels['year']: #Actualizamos el Año en el título item.title = item.title.replace(str(new_item.infoLabels['year']), str(item.infoLabels['year'])) - if new_item.infoLabels['rating']: #Actualizamos en Rating en el título - rating_old = '' - if new_item.infoLabels['rating'] and new_item.infoLabels['rating'] != '0.0': - rating_old = float(new_item.infoLabels['rating']) - rating_old = round(rating_old, 1) - rating_new = '' - if item.infoLabels['rating'] and item.infoLabels['rating'] != '0.0': - rating_new = float(item.infoLabels['rating']) - rating_new = round(rating_new, 1) - item.title = item.title.replace("[" + str(rating_old) + "]", "[" + str(rating_new) + "]") - if item.wanted: #Actualizamos Wanted, si existe + if new_item.infoLabels['rating']: #Actualizamos en Rating en el título + try: + rating_old = '' + if new_item.infoLabels['rating'] and new_item.infoLabels['rating'] != '0.0': + rating_old = float(new_item.infoLabels['rating']) + rating_old = round(rating_old, 1) + rating_new = '' + if item.infoLabels['rating'] and item.infoLabels['rating'] != '0.0': + rating_new = float(item.infoLabels['rating']) + rating_new = round(rating_new, 1) + item.title = item.title.replace("[" + str(rating_old) + "]", "[" + str(rating_new) + "]") + except: + pass + if item.wanted: #Actualizamos Wanted, si existe item.wanted = item.contentTitle - if new_item.contentSeason: #Restauramos el núm. de Temporada después de TMDB + if new_item.contentSeason: #Restauramos el núm. de Temporada después de TMDB item.contentSeason = new_item.contentSeason + + if item.from_update: + item.from_update = True + del item.from_update + platformtools.itemlist_update(item) #Para evitar el "efecto memoria" de TMDB, se le llama con un título ficticio para que resetee los buffers if item.contentSerieName: - new_item.infoLabels['tmdb_id'] = '289' #una serie no ambigua + new_item.infoLabels['tmdb_id'] = '289' #una serie no ambigua else: - new_item.infoLabels['tmdb_id'] = '111' #una peli no ambigua + new_item.infoLabels['tmdb_id'] = '111' #una peli no ambigua new_item.infoLabels['year'] = '-' if new_item.contentSeason: - del new_item.infoLabels['season'] #Funciona mal con num. de Temporada + del new_item.infoLabels['season'] #Funciona mal con num. de Temporada scraper_return = scraper.find_and_set_infoLabels(new_item) #logger.debug(item) @@ -241,10 +278,16 @@ def post_tmdb_listado(item, itemlist): item_local.title_subs = [] del item_local.title_subs + if item_local.from_title: + if item_local.contentType == 'movie': + item_local.contentTitle = item_local.from_title + else: + item_local.contentSerieName = item_local.from_title + #Preparamos el Rating del vídeo rating = '' try: - if item_local.infoLabels['rating'] and item_local.infoLabels['rating'] != '0.0': + if item_local.infoLabels['rating'] and item_local.infoLabels['rating'] != 0.0: rating = float(item_local.infoLabels['rating']) rating = round(rating, 1) except: @@ -502,7 +545,7 @@ def post_tmdb_episodios(item, itemlist): #Preparamos el Rating del vídeo rating = '' try: - if item_local.infoLabels['rating'] and item_local.infoLabels['rating'] != '0.0': + if item_local.infoLabels['rating'] and item_local.infoLabels['rating'] != 0.0: rating = float(item_local.infoLabels['rating']) rating = round(rating, 1) except: @@ -572,7 +615,7 @@ def post_tmdb_episodios(item, itemlist): logger.error("ERROR 07: EPISODIOS: Num de Temporada fuera de rango " + " / TEMPORADA: " + str(item_local.contentSeason) + " / " + str(item_local.contentEpisodeNumber) + " / MAX_TEMPORADAS: " + str(num_temporada_max) + " / LISTA_TEMPORADAS: " + str(num_episodios_lista)) #Permitimos la actualización de los títulos, bien para uso inmediato, o para añadir a la videoteca - itemlist.append(item.clone(title="** [COLOR yelow]Actualizar Títulos - vista previa videoteca[/COLOR] **", action="actualizar_titulos", tmdb_stat=False, from_action=item.action, from_title=item.title)) + itemlist.append(item.clone(title="** [COLOR yelow]Actualizar Títulos - vista previa videoteca[/COLOR] **", action="actualizar_titulos", tmdb_stat=False, from_action=item.action, from_title_tmdb=item.title, from_update=True)) #Borro num. Temporada si no viene de menú de Añadir a Videoteca y no está actualizando la Videoteca if not item.library_playcounts: #si no está actualizando la Videoteca @@ -716,7 +759,7 @@ def post_tmdb_findvideos(item, itemlist): rating = '' #Ponemos el rating try: - if item.infoLabels['rating'] and item.infoLabels['rating'] != '0.0': + if item.infoLabels['rating'] and item.infoLabels['rating'] != 0.0: rating = float(item.infoLabels['rating']) rating = round(rating, 1) except: @@ -733,15 +776,18 @@ def post_tmdb_findvideos(item, itemlist): elif item.contentChannel == 'videolibrary': #No hay, viene de la Videoteca? buscamos en la DB #Leo de la BD de Kodi la duración de la película o episodio. En "from_fields" se pueden poner las columnas que se quiera nun_records = 0 - if item.contentType == 'movie': - nun_records, records = get_field_from_kodi_DB(item, from_fields='c11') #Leo de la BD de Kodi la duración de la película - else: - nun_records, records = get_field_from_kodi_DB(item, from_fields='c09') #Leo de la BD de Kodi la duración del episodio + try: + if item.contentType == 'movie': + nun_records, records = get_field_from_kodi_DB(item, from_fields='c11') #Leo de la BD de Kodi la duración de la película + else: + nun_records, records = get_field_from_kodi_DB(item, from_fields='c09') #Leo de la BD de Kodi la duración del episodio + except: + pass if nun_records > 0: #Hay registros? #Es un array, busco el campo del registro: añadir en el FOR un fieldX por nueva columna for strFileName, field1 in records: tiempo = field1 - + try: #calculamos el timepo en hh:mm tiempo_final = int(tiempo) #lo convierto a int, pero puede se null if tiempo_final > 0: #Si el tiempo está a 0, pasamos @@ -749,7 +795,8 @@ def post_tmdb_findvideos(item, itemlist): tiempo_final = tiempo_final / 60 #Lo transformo a minutos horas = tiempo_final / 60 #Lo transformo a horas resto = tiempo_final - (horas * 60) #guardo el resto de minutos de la hora - item.quality += ' [%s:%s]' % (str(horas).zfill(2), str(resto).zfill(2)) #Lo agrego a Calidad del Servidor + if not scrapertools.find_single_match(item.quality, '(\[\d+:\d+\])'): #si ya tiene la duración, pasamos + item.quality += ' [%s:%s]' % (str(horas).zfill(2), str(resto).zfill(2)) #Lo agrego a Calidad del Servidor except: pass @@ -768,7 +815,7 @@ def post_tmdb_findvideos(item, itemlist): title = '%s al %s - ' % (title, scrapertools.find_single_match(item.title, 'al (\d+)')) else: title = '%s %s' % (title, item.infoLabels['episodio_titulo']) #Título Episodio - title_gen = '%s, %s [COLOR yellow][%s][/COLOR] [%s] [COLOR limegreen][%s][/COLOR] [COLOR red]%s[/COLOR] [%s]' % (title, item.contentSerieName, item.infoLabels['year'], rating, item.quality, str(item.language), scrapertools.find_single_match(item.title, '\s\[(\d+,?\d*?\s\w[b|B])\]')) #Rating, Calidad, Idioma, Tamaño + title_gen = '%s, %s [COLOR yellow][%s][/COLOR] [%s] [COLOR limegreen][%s][/COLOR] [COLOR red]%s[/COLOR] [%s]' % (title, item.contentSerieName, item.infoLabels['year'], rating, item.quality, str(item.language), scrapertools.find_single_match(item.title, '\s\[(\d+,?\d*?\s\w[b|B])\]')) #Rating, Calidad, Idioma, Tamaño if item.infoLabels['status'] and item.infoLabels['status'].lower() == "ended": title_gen = '[TERM.] %s' % title_gen #Marca cuando la Serie está terminada y no va a haber más producción item.title = title_gen @@ -803,8 +850,11 @@ def post_tmdb_findvideos(item, itemlist): itemlist.append(item.clone(action="", server = "", title=title_gen)) #Título con todos los datos del vídeo #agregamos la opción de Añadir a Videoteca para péliculas (no series) - if item.contentType == 'movie' and item.contentChannel != "videolibrary": - itemlist.append(item.clone(title="**-[COLOR yellow] Añadir a la videoteca [/COLOR]-**", action="add_pelicula_to_library", extra="películas", from_title=title_videoteca)) + if item.contentType == 'movie' and item.contentChannel != "videolibrary": + #Permitimos la actualización de los títulos, bien para uso inmediato, o para añadir a la videoteca + itemlist.append(item.clone(title="** [COLOR yelow]Actualizar Títulos - vista previa videoteca[/COLOR] **", action="actualizar_titulos", extra="películas", tmdb_stat=False, from_action=item.action, from_title_tmdb=item.title, from_update=True)) + + itemlist.append(item.clone(title="**-[COLOR yellow] Añadir a la videoteca [/COLOR]-**", action="add_pelicula_to_library", extra="películas", from_action=item.action, from_title_tmdb=item.title)) #Añadimos la opción de ver trailers if item.contentChannel != "videolibrary": @@ -833,11 +883,16 @@ def get_field_from_kodi_DB(item, from_fields='*', files='file'): FOLDER_MOVIES = config.get_setting("folder_movies") FOLDER_TVSHOWS = config.get_setting("folder_tvshows") VIDEOLIBRARY_PATH = config.get_videolibrary_config_path() + VIDEOLIBRARY_REAL_PATH = config.get_videolibrary_path() if item.contentType == 'movie': #Agrego la carpeta correspondiente al path de la Videoteca - path = filetools.join(VIDEOLIBRARY_PATH, FOLDER_MOVIES) + path = filetools.join(VIDEOLIBRARY_REAL_PATH, FOLDER_MOVIES) + path2 = filetools.join(VIDEOLIBRARY_PATH, FOLDER_MOVIES) + folder = FOLDER_MOVIES else: - path = filetools.join(VIDEOLIBRARY_PATH, FOLDER_TVSHOWS) + path = filetools.join(VIDEOLIBRARY_REAL_PATH, FOLDER_TVSHOWS) + path2 = filetools.join(VIDEOLIBRARY_PATH, FOLDER_TVSHOWS) + folder = FOLDER_TVSHOWS raiz, carpetas, ficheros = filetools.walk(path).next() #listo las series o películas en la Videoteca carpetas = [filetools.join(path, f) for f in carpetas] #agrego la carpeta del contenido al path @@ -845,10 +900,11 @@ def get_field_from_kodi_DB(item, from_fields='*', files='file'): if item.contentType == 'movie' and (item.contentTitle.lower() in carpeta or item.contentTitle in carpeta): #Películas? path = carpeta #Almacenamos la carpeta en el path break - elif item.contentType in ['tvshow', 'season', 'episode'] and (item.contentSerieName.lower() in carpeta or item.contentSerieName in carpeta): #Series? + elif item.contentType in ['tvshow', 'season', 'episode'] and (item.contentSerieName.lower() in carpeta or item.contentSerieName in carpeta): #Series? path = carpeta #Almacenamos la carpeta en el path break + path2 += '/%s/' % scrapertools.find_single_match(path, '%s.(.*?\s\[.*?\])' % folder) #Agregamos la carpeta de la Serie o Películas, formato Android file_search = '%' #Por defecto busca todos los archivos de la carpeta if files == 'file': #Si se ha pedido son un archivo (defecto), se busca if item.contentType == 'episode': #Si es episodio, se pone el nombre, si no de deja % @@ -865,7 +921,7 @@ def get_field_from_kodi_DB(item, from_fields='*', files='file'): else: contentType = "movie_view" #Marco la tabla de BBDD de Kodi Video path1 = path.replace("\\\\", "\\") #para la SQL solo necesito la carpeta - path2 = path.replace("\\", "/") #Formato no Windows + path2 = path2.replace("\\", "/") #Formato no Windows #Ejecutmos la sentencia SQL if not from_fields: @@ -1105,7 +1161,8 @@ def web_intervenida(item, data, desactivar=True): #Guardamos los cambios hechos en el .json try: if item.channel != channel_py: - disabled = config.set_setting('enabled', False, item.channel) + disabled = config.set_setting('enabled', False, item.channel) #Desactivamos el canal + disabled = config.set_setting('include_in_global_search', False, item.channel) #Lo sacamos de las búquedas globales channel_path = filetools.join(config.get_runtime_path(), "channels", item.channel + ".json") with open(channel_path, 'w') as outfile: #Grabamos el .json actualizado json.dump(json_data, outfile, sort_keys = True, indent = 2, ensure_ascii = False) From 3e29a898b0b517a97a1861f036f96ea112af5a7c Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Tue, 31 Jul 2018 13:15:26 +0200 Subject: [PATCH 07/20] httptools: muestra el contenido del post en el logger.debug --- plugin.video.alfa/core/httptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.video.alfa/core/httptools.py b/plugin.video.alfa/core/httptools.py index ba6ddde2..30256c7d 100755 --- a/plugin.video.alfa/core/httptools.py +++ b/plugin.video.alfa/core/httptools.py @@ -139,7 +139,7 @@ def downloadpage(url, post=None, headers=None, timeout=None, follow_redirects=Tr logger.info("URL: " + url) logger.info("Dominio: " + urlparse.urlparse(url)[1]) if post: - logger.info("Peticion: POST") + logger.info("Peticion: POST: %s" % post) else: logger.info("Peticion: GET") logger.info("Usar Cookies: %s" % cookies) From e0af2b83ef972df556bb3694afa8bab433c90069 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Tue, 31 Jul 2018 16:18:34 +0200 Subject: [PATCH 08/20] =?UTF-8?q?Mejoras=20de=20c=C3=B3digo=20interno?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/alltorrent.py | 3 --- plugin.video.alfa/channels/elitetorrent.py | 3 --- plugin.video.alfa/channels/grantorrent.py | 3 --- plugin.video.alfa/channels/mejortorrent1.py | 3 --- plugin.video.alfa/channels/newpct1.py | 3 --- 5 files changed, 15 deletions(-) diff --git a/plugin.video.alfa/channels/alltorrent.py b/plugin.video.alfa/channels/alltorrent.py index aa761c32..2f9ec7cd 100755 --- a/plugin.video.alfa/channels/alltorrent.py +++ b/plugin.video.alfa/channels/alltorrent.py @@ -268,9 +268,6 @@ def findvideos(item): def actualizar_titulos(item): logger.info() - itemlist = [] - - from platformcode import launcher item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels diff --git a/plugin.video.alfa/channels/elitetorrent.py b/plugin.video.alfa/channels/elitetorrent.py index 86a1930d..fccba66c 100644 --- a/plugin.video.alfa/channels/elitetorrent.py +++ b/plugin.video.alfa/channels/elitetorrent.py @@ -342,9 +342,6 @@ def findvideos(item): def actualizar_titulos(item): logger.info() - itemlist = [] - - from platformcode import launcher item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels diff --git a/plugin.video.alfa/channels/grantorrent.py b/plugin.video.alfa/channels/grantorrent.py index cfa78a18..4ecf072a 100644 --- a/plugin.video.alfa/channels/grantorrent.py +++ b/plugin.video.alfa/channels/grantorrent.py @@ -814,9 +814,6 @@ def episodios(item): def actualizar_titulos(item): logger.info() - itemlist = [] - - from platformcode import launcher item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels diff --git a/plugin.video.alfa/channels/mejortorrent1.py b/plugin.video.alfa/channels/mejortorrent1.py index 33d7a0c1..4718f6a8 100644 --- a/plugin.video.alfa/channels/mejortorrent1.py +++ b/plugin.video.alfa/channels/mejortorrent1.py @@ -976,9 +976,6 @@ def episodios(item): def actualizar_titulos(item): logger.info() - itemlist = [] - - from platformcode import launcher item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index 2d14a510..d7167df8 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -1798,9 +1798,6 @@ def episodios(item): def actualizar_titulos(item): logger.info() - itemlist = [] - - from platformcode import launcher item = generictools.update_title(item) #Llamamos al método que actualiza el título con tmdb.find_and_set_infoLabels From 681300450b574c5cebf9aba3ad29017c527e5cb1 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Tue, 31 Jul 2018 16:18:53 +0200 Subject: [PATCH 09/20] Revert "httptools: muestra el contenido del post en el logger.debug" This reverts commit 3e29a898b0b517a97a1861f036f96ea112af5a7c. --- plugin.video.alfa/core/httptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.video.alfa/core/httptools.py b/plugin.video.alfa/core/httptools.py index 30256c7d..ba6ddde2 100755 --- a/plugin.video.alfa/core/httptools.py +++ b/plugin.video.alfa/core/httptools.py @@ -139,7 +139,7 @@ def downloadpage(url, post=None, headers=None, timeout=None, follow_redirects=Tr logger.info("URL: " + url) logger.info("Dominio: " + urlparse.urlparse(url)[1]) if post: - logger.info("Peticion: POST: %s" % post) + logger.info("Peticion: POST") else: logger.info("Peticion: GET") logger.info("Usar Cookies: %s" % cookies) From 839e02513a8c01bc70ca852795253078f553b382 Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Tue, 31 Jul 2018 16:30:54 +0200 Subject: [PATCH 10/20] =?UTF-8?q?Mejora=20de=20c=C3=B3digo=20interno?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/newpct1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py index d7167df8..3da3f9d4 100644 --- a/plugin.video.alfa/channels/newpct1.py +++ b/plugin.video.alfa/channels/newpct1.py @@ -405,8 +405,8 @@ def listado(item): itemlist.append(item.clone(action='', title=item.category + ': ERROR 02: LISTADO: Ha cambiado la estructura de la Web. Reportar el error con el log')) return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos - logger.debug("MATCHES: " + str(len(matches))) - logger.debug(matches) + #logger.debug("MATCHES: " + str(len(matches))) + #logger.debug(matches) #logger.debug("patron: " + patron + " / fichas: " + fichas) # Identifico la página actual y el total de páginas para el pie de página From a3869d058b4ec7ebf074ffa83bf4d55be7244e4d Mon Sep 17 00:00:00 2001 From: angedam Date: Tue, 31 Jul 2018 18:18:16 +0200 Subject: [PATCH 11/20] added localized strings --- plugin.video.alfa/channels/search.py | 2 +- plugin.video.alfa/channels/tvmoviedb.py | 396 +++++++++--------- plugin.video.alfa/core/tvdb.py | 18 +- .../resources/language/English/strings.po | 320 ++++++++++++++ .../resources/language/Italian/strings.po | 322 +++++++++++++- .../language/Spanish (Argentina)/strings.po | 329 ++++++++++++++- .../language/Spanish (Mexico)/strings.po | 329 ++++++++++++++- .../resources/language/Spanish/strings.po | 329 ++++++++++++++- 8 files changed, 1821 insertions(+), 224 deletions(-) diff --git a/plugin.video.alfa/channels/search.py b/plugin.video.alfa/channels/search.py index 508407d7..73e3498a 100644 --- a/plugin.video.alfa/channels/search.py +++ b/plugin.video.alfa/channels/search.py @@ -619,7 +619,7 @@ def discover_list(item): #if not 'similar' in item.list_type: # itemlist.append(item.clone(title='Pagina Siguente', page=next_page)) #else: - itemlist.append(Item(channel=item.channel, action='discover_list', title='Pagina Siguente', + itemlist.append(Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70065), search_type=item.search_type, list_type=item.list_type, type=item.type, page=next_page)) return itemlist diff --git a/plugin.video.alfa/channels/tvmoviedb.py b/plugin.video.alfa/channels/tvmoviedb.py index ef95c43a..25038615 100644 --- a/plugin.video.alfa/channels/tvmoviedb.py +++ b/plugin.video.alfa/channels/tvmoviedb.py @@ -43,30 +43,30 @@ def mainlist(item): item.text_color = color1 itemlist = [] - itemlist.append(item.clone(title="Búsqueda en TMDB", action="", text_color=color2)) - itemlist.append(item.clone(title=" - Películas", action="tmdb", extra="movie", + itemlist.append(item.clone(title=config.get_localized_string(70021), action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70022), action="tmdb", extra="movie", thumbnail="%s0/Movies.png" % images_predef)) - itemlist.append(item.clone(title=" - Series", action="tmdb", extra="tv", + itemlist.append(item.clone(title=config.get_localized_string(70023), action="tmdb", extra="tv", thumbnail=images_predef + "0/TV%20Series.png")) - itemlist.append(item.clone(title="Búsqueda en Filmaffinity", action="", text_color=color2)) - itemlist.append(item.clone(title=" - Películas", action="filmaf", extra="movie", + itemlist.append(item.clone(title=config.get_localized_string(70024), action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70022), action="filmaf", extra="movie", thumbnail="%s0/Movies.png" % images_predef)) - itemlist.append(item.clone(title=" - Series", action="filmaf", extra="tv", + itemlist.append(item.clone(title=config.get_localized_string(70023), action="filmaf", extra="tv", thumbnail=images_predef + "0/TV%20Series.png")) - itemlist.append(item.clone(title="Búsqueda en IMDB", action="", text_color=color2)) - itemlist.append(item.clone(title=" - Películas", action="imdb", extra="movie", + itemlist.append(item.clone(title=config.get_localized_string(70025), action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70022), action="imdb", extra="movie", url='&title_type=feature,tv_movie', thumbnail="%s0/Movies.png" % images_predef)) - itemlist.append(item.clone(title=" - Series", action="imdb", extra="tv", + itemlist.append(item.clone(title=config.get_localized_string(70023), action="imdb", extra="tv", url='&title_type=tv_series,tv_special,mini_series', thumbnail=images_predef + "0/TV%20Series.png")) itemlist.append( item.clone(title="Trakt.tv", action="trakt", text_color=color2, thumbnail="http://i.imgur.com/5sQjjuk.png")) itemlist.append( - item.clone(title="MyAnimeList", action="mal", text_color=color2, thumbnail="http://i.imgur.com/RhsYWmd.png")) + item.clone(title=config.get_localized_string(70026), action="mal", text_color=color2, thumbnail="http://i.imgur.com/RhsYWmd.png")) itemlist.append(item.clone(title="", action="")) itemlist.append( - item.clone(title="Ajustes motores de búsqueda", action="configuracion", text_color=color6, folder=False)) + item.clone(title=config.get_localized_string(70027), action="configuracion", text_color=color6, folder=False)) return itemlist @@ -133,39 +133,39 @@ def tmdb(item): item.contentType = item.extra.replace("tv", "tvshow") itemlist = [] - itemlist.append(item.clone(title="Más Populares", action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70028), action="listado_tmdb", search={'url': item.extra + "/popular", 'language': langt, 'page': 1})) - itemlist.append(item.clone(title="Más Valoradas", action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70029), action="listado_tmdb", search={'url': item.extra + "/top_rated", 'language': langt, 'page': 1})) if item.extra == "movie": - itemlist.append(item.clone(title="En Cartelera", action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70030), action="listado_tmdb", search={'url': item.extra + "/now_playing", 'language': langt, 'page': 1})) else: - itemlist.append(item.clone(title="En Emisión", action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70031), action="listado_tmdb", search={'url': item.extra + "/on_the_air", 'language': langt, 'page': 1})) - itemlist.append(item.clone(title="Géneros", action="indices_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70032), action="indices_tmdb", thumbnail="%s0/Genres.png" % images_predef)) - itemlist.append(item.clone(title="Año", action="indices_tmdb", thumbnail="%s0/Year.png" % images_predef)) + itemlist.append(item.clone(title=config.get_localized_string(70042), action="indices_tmdb", thumbnail="%s0/Year.png" % images_predef)) if item.extra == "movie": - itemlist.append(item.clone(title="Actores/Actrices por popularidad", action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70033), action="listado_tmdb", search={'url': 'person/popular', 'language': langt, 'page': 1})) - itemlist.append(item.clone(title="Próximamente", action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70034), action="listado_tmdb", search={'url': item.extra + "/upcoming", 'language': langt, 'page': 1})) if config.get_platform() != "plex": - title = item.contentType.replace("movie", "película").replace("tvshow", "serie") - itemlist.append(item.clone(title="Buscar %s" % title, action="search_", + title = item.contentType.replace("movie", config.get_localized_string(70283)).replace("tvshow", "serie") + itemlist.append(item.clone(title=config.get_localized_string(70035) % title, action="search_", search={'url': 'search/%s' % item.extra, 'language': langt, 'page': 1})) - itemlist.append(item.clone(title=" Buscar actor/actriz", action="search_", + itemlist.append(item.clone(title=config.get_localized_string(70036), action="search_", search={'url': 'search/person', 'language': langt, 'page': 1})) if item.extra == "movie": - itemlist.append(item.clone(title=" Buscar director, guionista...", action="search_", + itemlist.append(item.clone(title=config.get_localized_string(70037), action="search_", search={'url': "search/person", 'language': langt, 'page': 1}, crew=True)) - itemlist.append(item.clone(title="Filtro Personalizado", action="filtro", text_color=color4)) - itemlist.append(item.clone(title="Filtro por palabra clave", action="filtro", text_color=color4)) + itemlist.append(item.clone(title=config.get_localized_string(70038), action="filtro", text_color=color4)) + itemlist.append(item.clone(title=config.get_localized_string(70039), action="filtro", text_color=color4)) return itemlist @@ -174,32 +174,32 @@ def imdb(item): item.contentType = item.extra.replace("tv", "tvshow") itemlist = [] - itemlist.append(item.clone(title="Más Populares", action="listado_imdb")) - itemlist.append(item.clone(title="Más Valoradas", action="listado_imdb", + itemlist.append(item.clone(title=config.get_localized_string(70028), action="listado_imdb")) + itemlist.append(item.clone(title=config.get_localized_string(70029), action="listado_imdb", url=item.url + "&num_votes=25000,&sort=user_rating,desc")) if item.extra == "movie": - itemlist.append(item.clone(title="En Cartelera", action="listado_imdb", + itemlist.append(item.clone(title=config.get_localized_string(70030), action="listado_imdb", url="http://www.imdb.com/showtimes/location?ref_=inth_ov_sh_sm")) - itemlist.append(item.clone(title="Géneros", action="indices_imdb", + itemlist.append(item.clone(title=config.get_localized_string(70032), action="indices_imdb", thumbnail="%s0/Genres.png" % images_predef)) - itemlist.append(item.clone(title="Año", action="indices_imdb", thumbnail="%s0/Year.png" % images_predef)) + itemlist.append(item.clone(title=config.get_localized_string(70042), action="indices_imdb", thumbnail="%s0/Year.png" % images_predef)) if item.extra == "movie": - itemlist.append(item.clone(title="Actores/Actrices por popularidad", action="listado_imdb", + itemlist.append(item.clone(title=config.get_localized_string(70033), action="listado_imdb", url="http://www.imdb.com/search/name?gender=male,female&ref_=nv_cel_m_3")) - itemlist.append(item.clone(title="Próximamente", action="listado_imdb", + itemlist.append(item.clone(title=config.get_localized_string(70034), action="listado_imdb", url="http://www.imdb.com/movies-coming-soon/?ref_=shlc_cs")) if config.get_platform() != "plex": - title = item.contentType.replace("movie", "película").replace("tvshow", "serie") + title = item.contentType.replace("movie", config.get_localized_string(70283)).replace("tvshow", "serie") itemlist.append(item.clone(title="Buscar %s" % title, action="search_", url="http://www.imdb.com/search/title?title=" + item.url)) - itemlist.append(item.clone(title=" Buscar actor/actriz", action="search_", + itemlist.append(item.clone(title=config.get_localized_string(70036), action="search_", url="http://www.imdb.com/search/name?name=")) - itemlist.append(item.clone(title="Filtro Personalizado", action="filtro_imdb", text_color=color4)) + itemlist.append(item.clone(title=config.get_localized_string(70038), action="filtro_imdb", text_color=color4)) return itemlist @@ -210,40 +210,40 @@ def filmaf(item): itemlist = [] if item.extra == "movie": - itemlist.append(item.clone(title="Top Filmaffinity", action="listado_fa", extra="top", + itemlist.append(item.clone(title=config.get_localized_string(70040), action="listado_fa", extra="top", url="http://m.filmaffinity.com/%s/topgen.php?genre=&country=&" "fromyear=&toyear=¬vse=1&nodoc=1" % langf)) - itemlist.append(item.clone(title="En Cartelera", action="listado_fa", + itemlist.append(item.clone(title=config.get_localized_string(70030), action="listado_fa", url="http://m.filmaffinity.com/%s/rdcat.php?id=new_th_%s" % (langf, langf))) itemlist.append(item.clone(title="Géneros", action="indices_fa", url="http://m.filmaffinity.com/%s/topgen.php" % langf, thumbnail="%s0/Genres.png" % images_predef)) else: - itemlist.append(item.clone(title="Top Filmaffinity", action="listado_fa", extra="top", + itemlist.append(item.clone(title=config.get_localized_string(70040), action="listado_fa", extra="top", url="http://m.filmaffinity.com/%s/topgen.php?genre=TV_SE&country=&" "fromyear=&toyear=&nodoc" % langf)) itemlist.append(item.clone(title="Series de actualidad", action="listado_fa", url="http://m.filmaffinity.com/%s/category.php?id=current_tv" % langf)) - itemlist.append(item.clone(title="Año", action="indices_fa", thumbnail="%s0/Year.png" % images_predef)) + itemlist.append(item.clone(title=config.get_localized_string(70042), action="indices_fa", thumbnail="%s0/Year.png" % images_predef)) if item.extra == "movie": - itemlist.append(item.clone(title="Próximos Estrenos", action="listado_fa", extra="estrenos", + itemlist.append(item.clone(title=config.get_localized_string(70043), action="listado_fa", extra="estrenos", url="http://m.filmaffinity.com/%s/rdcat.php?id=upc_th_%s" % (langf, langf))) - itemlist.append(item.clone(title="Sagas y Colecciones", action="indices_fa", extra="sagas", + itemlist.append(item.clone(title=config.get_localized_string(70044), action="indices_fa", extra="sagas", url="http://www.filmaffinity.com/%s/movie-groups-all.php" % langf)) - itemlist.append(item.clone(title="Películas/Series/Documentales por Temas", action="indices_fa", + itemlist.append(item.clone(title=config.get_localized_string(70045), action="indices_fa", url='http://m.filmaffinity.com/%s/topics.php' % langf, text_color=color3)) if config.get_platform() != "plex": - itemlist.append(item.clone(title="Buscar Películas/Series", action="search_", text_color=color4, + itemlist.append(item.clone(title=config.get_localized_string(70046), action="search_", text_color=color4, url="http://m.filmaffinity.com/%s/search.php?stype=title&stext=" % langf)) - itemlist.append(item.clone(title=" Buscar por actor/actriz", action="search_", text_color=color4, + itemlist.append(item.clone(title=config.get_localized_string(70036), action="search_", text_color=color4, url="http://m.filmaffinity.com/%s/search.php?stype=cast&stext=" % langf)) - itemlist.append(item.clone(title=" Buscar por director", action="search_", text_color=color4, + itemlist.append(item.clone(title=config.get_localized_string(70047), action="search_", text_color=color4, url="http://m.filmaffinity.com/%s/search.php?stype=director&stext=" % langf)) - itemlist.append(item.clone(title="Filtro Personalizado", action="filtro_fa", text_color=color4, extra="top")) - itemlist.append(item.clone(title="Mi cuenta", action="cuenta_fa", text_color=color3)) + itemlist.append(item.clone(title=config.get_localized_string(70038), action="filtro_fa", text_color=color4, extra="top")) + itemlist.append(item.clone(title=config.get_localized_string(70048), action="cuenta_fa", text_color=color3)) return itemlist @@ -255,60 +255,60 @@ def trakt(item): page = "?page=1&limit=20&extended=full" if not item.extra: item.extra = "movie" - itemlist.append(item.clone(title="Películas", action="", text_color=color2)) - itemlist.append(item.clone(title=" Más Populares", action="acciones_trakt", url="movies/popular%s" % page)) + itemlist.append(item.clone(title=config.get_localized_string(70137), action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70049), action="acciones_trakt", url="movies/popular%s" % page)) itemlist.append( - item.clone(title=" Viéndose Ahora", action="acciones_trakt", url="movies/trending%s" % page)) - itemlist.append(item.clone(title=" Más Vistas", action="acciones_trakt", url="movies/watched/all%s" % page)) + item.clone(title=config.get_localized_string(70050), action="acciones_trakt", url="movies/trending%s" % page)) + itemlist.append(item.clone(title=config.get_localized_string(70053), action="acciones_trakt", url="movies/watched/all%s" % page)) itemlist.append( - item.clone(title=" Más Esperadas", action="acciones_trakt", url="movies/anticipated%s" % page)) + item.clone(title=config.get_localized_string(70051), action="acciones_trakt", url="movies/anticipated%s" % page)) if token_auth: - itemlist.append(item.clone(title=" Recomendaciones personalizadas", action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70052), action="acciones_trakt", url="recommendations/movies?limit=100&extended=full", pagina=0)) - itemlist.append(item.clone(title="Series", action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(30123), action="", text_color=color2)) item.extra = "show" - itemlist.append(item.clone(title=" Más Populares", action="acciones_trakt", url="shows/popular%s" % page)) - itemlist.append(item.clone(title=" Viéndose Ahora", action="acciones_trakt", url="shows/trending%s" % page)) - itemlist.append(item.clone(title=" Más Vistas", action="acciones_trakt", url="shows/watched/all%s" % page)) + itemlist.append(item.clone(title=config.get_localized_string(70049), action="acciones_trakt", url="shows/popular%s" % page)) + itemlist.append(item.clone(title=config.get_localized_string(70050), action="acciones_trakt", url="shows/trending%s" % page)) + itemlist.append(item.clone(title=config.get_localized_string(70053), action="acciones_trakt", url="shows/watched/all%s" % page)) itemlist.append( - item.clone(title=" Más Esperadas", action="acciones_trakt", url="shows/anticipated%s" % page)) + item.clone(title=config.get_localized_string(70051), action="acciones_trakt", url="shows/anticipated%s" % page)) if token_auth: - itemlist.append(item.clone(title=" Recomendaciones personalizadas", action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70052), action="acciones_trakt", url="recommendations/shows?limit=100&extended=full", pagina=0)) - itemlist.append(item.clone(title=" Mi Cuenta", text_color=color2, extra="cuenta")) + itemlist.append(item.clone(title=config.get_localized_string(70048), text_color=color2, extra="cuenta")) else: item.extra = "movie" # Se comprueba si existe un token guardado y sino se ejecuta el proceso de autentificación if not token_auth: #folder = (config.get_platform() == "plex") - itemlist.append(item.clone(title="Vincula tu cuenta trakt", action="auth_trakt", folder=folder)) + itemlist.append(item.clone(title=config.get_localized_string(70054), action="auth_trakt", folder=folder)) else: - itemlist.append(item.clone(title="Watchlists", action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70055), action="", text_color=color2)) itemlist.append( - item.clone(title=" Películas", action="acciones_trakt", url="users/me/watchlist/movies%s" % page, + item.clone(title=config.get_localized_string(60651), action="acciones_trakt", url="users/me/watchlist/movies%s" % page, order="added", how="desc")) itemlist.append( - item.clone(title=" Series", action="acciones_trakt", url="users/me/watchlist/shows%s" % page, + item.clone(title=config.get_localized_string(60652), action="acciones_trakt", url="users/me/watchlist/shows%s" % page, extra="show", order="added", how="desc")) - itemlist.append(item.clone(title="Vistas", action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70056), action="", text_color=color2)) itemlist.append( - item.clone(title=" Películas", action="acciones_trakt", url="users/me/watched/movies%s" % page, + item.clone(title=config.get_localized_string(60651), action="acciones_trakt", url="users/me/watched/movies%s" % page, order="added", how="desc")) itemlist.append( - item.clone(title=" Series", action="acciones_trakt", url="users/me/watched/shows%s" % page, + item.clone(title=config.get_localized_string(60652), action="acciones_trakt", url="users/me/watched/shows%s" % page, extra="show", order="added", how="desc")) - itemlist.append(item.clone(title="En mi Colección", action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70068), action="", text_color=color2)) itemlist.append( - item.clone(title=" Películas", action="acciones_trakt", url="users/me/collection/movies%s" % page, + item.clone(title=config.get_localized_string(60651), action="acciones_trakt", url="users/me/collection/movies%s" % page, order="added", how="desc")) itemlist.append( - item.clone(title=" Series", action="acciones_trakt", url="users/me/collection/shows%s" % page, + item.clone(title=config.get_localized_string(60652), action="acciones_trakt", url="users/me/collection/shows%s" % page, extra="show", order="added", how="desc")) itemlist.append( - item.clone(title="Mis listas", action="acciones_trakt", url="users/me/lists", text_color=color2)) + item.clone(title=config.get_localized_string(70057), action="acciones_trakt", url="users/me/lists", text_color=color2)) return itemlist @@ -321,27 +321,27 @@ def mal(item): item.login = True itemlist.append( - item.clone(title="Top Series", url="https://myanimelist.net/topanime.php?type=tv&limit=0", action="top_mal", + item.clone(title=config.get_localized_string(70058), url="https://myanimelist.net/topanime.php?type=tv&limit=0", action="top_mal", contentType="tvshow", extra="tv")) - itemlist.append(item.clone(title="Top Películas", url="https://myanimelist.net/topanime.php?type=movie&limit=0", + itemlist.append(item.clone(title=config.get_localized_string(70059), url="https://myanimelist.net/topanime.php?type=movie&limit=0", action="top_mal", contentType="movie", extra="movie")) itemlist.append( - item.clone(title="Top Ovas", url="https://myanimelist.net/topanime.php?type=ova&limit=0", action="top_mal", + item.clone(title=config.get_localized_string(70061), url="https://myanimelist.net/topanime.php?type=ova&limit=0", action="top_mal", contentType="tvshow", extra="tv", tipo="ova")) itemlist.append( - item.clone(title="Más Populares", url="https://myanimelist.net/topanime.php?type=bypopularity&limit=0", + item.clone(title=config.get_localized_string(70028), url="https://myanimelist.net/topanime.php?type=bypopularity&limit=0", action="top_mal")) - itemlist.append(item.clone(title="Más Esperados", url="https://myanimelist.net/topanime.php?type=upcoming&limit=0", + itemlist.append(item.clone(title=config.get_localized_string(70060), url="https://myanimelist.net/topanime.php?type=upcoming&limit=0", action="top_mal")) - itemlist.append(item.clone(title="Anime por Temporadas", url="", action="indices_mal")) - itemlist.append(item.clone(title="Anime por Géneros", url="", action="indices_mal")) + itemlist.append(item.clone(title=config.get_localized_string(70062), url="", action="indices_mal")) + itemlist.append(item.clone(title=config.get_localized_string(70063), url="", action="indices_mal")) if config.get_platform() != "plex": - itemlist.append(item.clone(title="Buscar Series/Películas/Ovas", url="https://myanimelist.net/anime.php?q=", + itemlist.append(item.clone(title=config.get_localized_string(70064), url="https://myanimelist.net/anime.php?q=", action="search_")) - itemlist.append(item.clone(title="Filtro Personalizado", action="filtro_mal", text_color=color4)) + itemlist.append(item.clone(title=config.get_localized_string(70038), action="filtro_mal", text_color=color4)) - itemlist.append(item.clone(title="Mis listas", action="cuenta_mal", text_color=color3)) + itemlist.append(item.clone(title=config.get_localized_string(70057), action="cuenta_mal", text_color=color3)) return itemlist @@ -470,7 +470,7 @@ def listado_tmdb(item): itemlist.sort(key=lambda item: item.infoLabels["year"], reverse=True) if "page" in item.search and ob_tmdb.total_pages > item.search["page"]: item.search["page"] += 1 - itemlist.append(Item(channel=item.channel, action=item.action, title=">> Página siguiente", + itemlist.append(Item(channel=item.channel, action=item.action, title=config.get_localized_string(70065), search=item.search, extra=item.extra, pagina=item.pagina + 1, contentType=item.contentType)) @@ -528,39 +528,39 @@ def detalles(item): if item.infoLabels['tagline']: itemlist.append(item.clone(title="--- %s ---" % item.infoLabels['tagline'], text_color="0xFFFF8C00", action="")) - title = item.contentType.replace("movie", "película").replace("tvshow", "serie") + title = item.contentType.replace("movie", config.get_localized_string(70283)).replace("tvshow", "serie") # Búsqueda por títulos idioma elegido y/o versión original y español - itemlist.append(item.clone(action="busqueda", title="Buscar %s en alfa: %s" % (title, item.contentTitle))) + itemlist.append(item.clone(action="busqueda", title=config.get_localized_string(70069) % (title, item.contentTitle))) if item.infoLabels['originaltitle'] and item.contentTitle != item.infoLabels['originaltitle']: itemlist.append(item.clone(action="busqueda", contentTitle=item.infoLabels['originaltitle'], - title=" Buscar por su nombre original: %s" % item.infoLabels['originaltitle'])) + title=config.get_localized_string(70070) % item.infoLabels['originaltitle'])) if langt != "es" and langt != "en" and item.infoLabels["tmdb_id"]: tmdb_lang = Tmdb(id_Tmdb=item.infoLabels["tmdb_id"], tipo=item.extra, idioma_busqueda='es') if tmdb_lang.result.get("title") and tmdb_lang.result["title"] != item.contentTitle \ and tmdb_lang.result["title"] != item.infoLabels['originaltitle']: tmdb_lang = tmdb_lang.result["title"] - itemlist.append(item.clone(action="busqueda", title=" Buscar por su título en español: %s" % tmdb_lang, + itemlist.append(item.clone(action="busqueda", title=config.get_localized_string(70066) % tmdb_lang, contentTitle=tmdb_lang)) # En caso de serie, opción de info por temporadas if item.contentType == "tvshow" and item.infoLabels['tmdb_id']: itemlist.append(item.clone(action="info_seasons", text_color=color4, - title="Info de temporadas [%s]" % item.infoLabels["number_of_seasons"])) + title=config.get_localized_string(70067) % item.infoLabels["number_of_seasons"])) # Opción de ver el reparto y navegar por sus películas/series if item.infoLabels['tmdb_id']: - itemlist.append(item.clone(action="reparto", title="Ver Reparto", text_color=color4, + itemlist.append(item.clone(action="reparto", title=config.get_localized_string(70071), text_color=color4, infoLabels={'tmdb_id': item.infoLabels['tmdb_id'], 'mediatype': item.contentType})) if config.is_xbmc(): item.contextual = True - itemlist.append(item.clone(channel="trailertools", action="buscartrailer", title="Buscar Tráiler", + itemlist.append(item.clone(channel="trailertools", action="buscartrailer", title=config.get_localized_string(60359), text_color=color5)) try: images['tmdb'] = ob_tmdb.result["images"] - itemlist.append(item.clone(action="imagenes", title="Lista de Imágenes", text_color=color5, images=images, + itemlist.append(item.clone(action="imagenes", title=config.get_localized_string(70316), text_color=color5, images=images, extra="menu")) except: pass @@ -585,14 +585,14 @@ def detalles(item): if url_album: url_album = "https://nl.hideproxy.me" + url_album itemlist.append( - item.clone(action="musica_movie", title="Escuchar BSO - Lista de canciones", url=url_album, + item.clone(action="musica_movie", title=config.get_localized_string(70317), url=url_album, text_color=color5)) except: pass token_auth = config.get_setting("token_trakt", "trakt") if token_auth: - itemlist.append(item.clone(title="Gestionar con tu cuenta Trakt", action="menu_trakt")) + itemlist.append(item.clone(title=config.get_localized_string(70318), action="menu_trakt")) itemlist.append(item.clone(title="", action="")) # Es parte de una colección @@ -606,7 +606,7 @@ def detalles(item): if saga["backdrop_path"]: new_item.fanart = 'http://image.tmdb.org/t/p/original' + saga["backdrop_path"] new_item.search = {'url': 'collection/%s' % saga['id'], 'language': langt} - itemlist.append(new_item.clone(title="Es parte de: %s" % saga["name"], action="listado_tmdb", + itemlist.append(new_item.clone(title=config.get_localized_string(70327) % saga["name"], action="listado_tmdb", text_color=color5)) except: pass @@ -614,8 +614,8 @@ def detalles(item): # Películas/Series similares y recomendaciones if item.infoLabels['tmdb_id']: item.extra = item.contentType.replace('tvshow', 'tv') - title = title.replace("película", "Películas").replace("serie", "Series") - itemlist.append(item.clone(title="%s similares" % title, action="listado_tmdb", + title = title.replace("película", config.get_localized_string(70137)).replace("serie", config.get_localized_string(30123)) + itemlist.append(item.clone(title=config.get_localized_string(70328) % title, action="listado_tmdb", search={'url': '%s/%s/similar' % (item.extra, item.infoLabels['tmdb_id']), 'language': langt, 'page': 1}, infoLabels={'mediatype': item.contentType}, text_color=color2)) @@ -638,7 +638,7 @@ def reparto(item): try: cast = ob_tmdb.result["cast"] if cast: - itemlist.append(item.clone(title="Actores/Actrices", action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70314), action="", text_color=color2)) for actor in cast: new_item = item.clone(action="listado_tmdb", fanart=default_fan) new_item.title = " " + actor["name"] + " as " + actor["character"] @@ -657,7 +657,7 @@ def reparto(item): try: crew = ob_tmdb.result["crew"] if crew: - itemlist.append(item.clone(title="Equipo de rodaje", action="", text_color=color2)) + itemlist.append(item.clone(title=config.get_localized_string(70319), action="", text_color=color2)) for c in crew: new_item = item.clone(action="listado_tmdb", fanart=default_fan) new_item.title = " " + c["job"] + ": " + c["name"] @@ -697,7 +697,7 @@ def info_seasons(item): if temporada['poster_path']: new_item.infoLabels['poster_path'] = 'http://image.tmdb.org/t/p/original' + temporada['poster_path'] new_item.thumbnail = new_item.infoLabels['poster_path'] - new_item.title = "Temporada %s" % temp + new_item.title = config.get_localized_string(60027) % temp itemlist.append(new_item) for epi in range(1, len(temporada["episodes"])): @@ -836,7 +836,7 @@ def filtro(item): item.valores = valores return platformtools.show_channel_settings(list_controls=list_controls, dict_values=dict_values, - caption="Filtra la búsqueda", item=item, callback='filtrado') + caption=config.get_localized_string(70320), item=item, callback='filtrado') def filtrado(item, values): @@ -987,7 +987,7 @@ def listado_imdb(item): next_page = 'http://www.imdb.com' + next_page else: next_page = 'http://www.imdb.com/search/title' + next_page - itemlist.append(item.clone(title=">> Página Siguiente", url=next_page, text_color='')) + itemlist.append(item.clone(title=config.get_localized_string(70065), url=next_page, text_color='')) return itemlist @@ -1088,7 +1088,7 @@ def filtro_imdb(item): item.valores = valores return platformtools.show_channel_settings(list_controls=list_controls, dict_values=dict_values, - caption="Filtra la búsqueda", item=item, callback='filtrado_imdb') + caption=config.get_localized_string(70320), item=item, callback='filtrado_imdb') def filtrado_imdb(item, values): @@ -1268,10 +1268,10 @@ def listado_fa(item): if not next_page.startswith("http://m.filmaffinity"): next_page = "http://m.filmaffinity.com" + next_page - itemlist.append(Item(channel=item.channel, action=item.action, title=">> Página Siguiente", url=next_page, + itemlist.append(Item(channel=item.channel, action=item.action, title=config.get_localized_string(70065), url=next_page, extra=item.extra)) elif item.page_fa: - itemlist.append(item.clone(title=">> Página Siguiente", text_color="")) + itemlist.append(item.clone(title=config.get_localized_string(70065), text_color="")) return itemlist @@ -1302,7 +1302,7 @@ def indices_fa(item): if next_page: if not next_page.startswith("http://www.filmaffinity.com"): next_page = "http://www.filmaffinity.com" + next_page - itemlist.append(Item(channel=item.channel, action=item.action, title=">> Página Siguiente", url=next_page, + itemlist.append(Item(channel=item.channel, action=item.action, title=config.get_localized_string(70065), url=next_page, extra=item.extra)) elif "Géneros" in item.title: bloque = scrapertools.find_single_match(data, 'name="genre">.*?(.*?)') @@ -1395,7 +1395,7 @@ def temas_fa(item): if next_page: if not next_page.startswith("http://www.filmaffinity.com"): next_page = "http://www.filmaffinity.com/%s/%s" % (langf, next_page) - itemlist.append(Item(channel=item.channel, action=item.action, title=">> Página Siguiente", url=next_page)) + itemlist.append(Item(channel=item.channel, action=item.action, title=config.get_localized_string(70065), url=next_page)) return itemlist @@ -1484,24 +1484,24 @@ def detalles_fa(item): if item.infoLabels['tagline']: itemlist.append(item.clone(title="--- %s ---" % item.infoLabels['tagline'], text_color="0xFFFF8C00", action="")) - title = item.contentType.replace("movie", "película").replace("tvshow", "serie") - itemlist.append(item.clone(action="busqueda", title="Buscar %s en alfa: %s" % (title, item.contentTitle))) + title = item.contentType.replace("movie", config.get_localized_string(70283)).replace("tvshow", "serie") + itemlist.append(item.clone(action="busqueda", title=config.get_localized_string(70069) % (title, item.contentTitle))) if item.infoLabels['originaltitle'] and item.contentTitle != item.infoLabels['originaltitle']: itemlist.append(item.clone(action="busqueda", contentTitle=item.infoLabels['originaltitle'], - title=" Buscar por su nombre original: %s" % item.infoLabels['originaltitle'])) + title=config.get_localized_string(70070) % item.infoLabels['originaltitle'])) if langt != "es" and langt != "en" and item.infoLabels["tmdb_id"]: tmdb_lang = Tmdb(id_Tmdb=item.infoLabels["tmdb_id"], tipo=item.extra, idioma_busqueda='es') if tmdb_lang.result.get("title") and tmdb_lang.result["title"] != item.contentTitle: tmdb_lang = tmdb_lang.result["title"] - itemlist.append(item.clone(action="busqueda", title=" Buscar por su título en español: %s" % tmdb_lang, + itemlist.append(item.clone(action="busqueda", title=config.get_localized_string(70066) % tmdb_lang, contentTitle=tmdb_lang)) if item.contentType == "tvshow" and ob_tmdb.result: itemlist.append(item.clone(action="info_seasons", text_color=color4, - title="Info de temporadas [%s]" % item.infoLabels["number_of_seasons"])) + title=config.get_localized_string(7007) % item.infoLabels["number_of_seasons"])) if ob_tmdb.result: - itemlist.append(item.clone(action="reparto", title="Ver Reparto", text_color=color4, + itemlist.append(item.clone(action="reparto", title=config.get_localized_string(70071), text_color=color4, infoLabels={'tmdb_id': item.infoLabels['tmdb_id'], 'mediatype': item.contentType})) @@ -1522,7 +1522,7 @@ def detalles_fa(item): if url_img: images['filmaffinity'] = {} if images: - itemlist.append(item.clone(action="imagenes", title="Lista de Imágenes", text_color=color5, images=images, + itemlist.append(item.clone(action="imagenes", title=config.get_localized_string(70316), text_color=color5, images=images, url=url_img, extra="menu")) try: if item.contentType == "movie" and item.infoLabels["year"] < 2014: @@ -1544,27 +1544,27 @@ def detalles_fa(item): if url_album: url_album = "https://nl.hideproxy.me" + url_album itemlist.append( - item.clone(action="musica_movie", title="Escuchar BSO - Lista de canciones", url=url_album, + item.clone(action="musica_movie", title=config.get_localized_string(70317), url=url_album, text_color=color5)) except: pass token_auth = config.get_setting("token_trakt", "trakt") if token_auth and ob_tmdb.result: - itemlist.append(item.clone(title="[Trakt] Gestionar con tu cuenta", action="menu_trakt")) + itemlist.append(item.clone(title=config.get_localized_string(70323), action="menu_trakt")) # Acciones si se configura cuenta en FA (Votar y añadir/quitar en listas) mivoto = scrapertools.find_single_match(data, 'bg-my-rating.*?>\s*(\d+)') itk = scrapertools.find_single_match(data, 'data-itk="([^"]+)"') folder = not config.is_xbmc() if mivoto: item.infoLabels["userrating"] = int(mivoto) - new_item = item.clone(action="votar_fa", title="[FA] Mi voto: %s ---> ¿Cambiar?" % mivoto, + new_item = item.clone(action="votar_fa", title=config.get_localized_string(70324) % mivoto, itk=itk, voto=int(mivoto), folder=folder) new_item.infoLabels["duration"] = "" itemlist.append(new_item) else: if itk: - new_item = item.clone(action="votar_fa", title="[FA] Votar %s" % title, itk=itk, accion="votar", + new_item = item.clone(action="votar_fa", title=config.get_localized_string(70325) % title, itk=itk, accion="votar", folder=folder) new_item.infoLabels["duration"] = "" itemlist.append(new_item) @@ -1572,7 +1572,7 @@ def detalles_fa(item): if itk: itk = scrapertools.find_single_match(data, 'var itk="([^"]+)"') new_item = item.clone(action="acciones_fa", accion="lista_movie", itk=itk, - title="[FA] Añadir o quitar de una lista de usuario") + title=config.get_localized_string(70326)) new_item.infoLabels["duration"] = "" itemlist.append(new_item) @@ -1588,15 +1588,15 @@ def detalles_fa(item): if saga["backdrop_path"]: new_item.fanart = 'http://image.tmdb.org/t/p/original' + saga["backdrop_path"] new_item.search = {'url': 'collection/%s' % saga['id'], 'language': langt} - new_item.title = "Es parte de: %s" % saga["name"] + new_item.title = config.get_localized_string(70327) % saga["name"] itemlist.append(new_item) - itemlist.append(item.clone(title="%ss similares" % title.capitalize(), action="listado_tmdb", + itemlist.append(item.clone(title=config.get_localized_string(70328) % title.capitalize(), action="listado_tmdb", search={'url': '%s/%s/similar' % (item.extra, item.infoLabels['tmdb_id']), 'language': langt, 'page': 1}, infoLabels={'mediatype': item.contentType}, text_color=color2)) itemlist.append( - item.clone(title="Recomendaciones", action="listado_tmdb", infoLabels={'mediatype': item.contentType}, + item.clone(title=config.get_localized_string(70315), action="listado_tmdb", infoLabels={'mediatype': item.contentType}, search={'url': '%s/%s/recommendations' % (item.extra, item.infoLabels['tmdb_id']), 'language': langt, 'page': 1}, text_color=color2)) @@ -1678,7 +1678,7 @@ def filtro_fa(item): item.valores = valores return platformtools.show_channel_settings(list_controls=list_controls, dict_values=dict_values, - caption="Filtra la búsqueda", item=item, callback='filtrado_fa') + caption=config.get_localized_string(70320), item=item, callback='filtrado_fa') def filtrado_fa(item, values): @@ -1713,7 +1713,7 @@ def login_fa(): password = config.get_setting("passfa", "tvmoviedb") userid = config.get_setting("userid", "tvmoviedb") if user == "" or password == "": - return False, "Usuario y/o contraseñas no configurados" + return False, config.get_localized_string(70329) data = httptools.downloadpage("http://m.filmaffinity.com/%s" % langf).data if "modal-menu-user" in data and userid: return True, "" @@ -1723,7 +1723,7 @@ def login_fa(): if "Invalid username" in data: logger.error("Error en el login") - return False, "Error en el usuario y/o contraseña. Comprueba tus credenciales" + return False, config.get_localized_string(70330) else: post = "name=user-menu&url=http://m.filmaffinity.com/%s/main.php" % langf data = httptools.downloadpage("http://m.filmaffinity.com/%s/tpl.ajax.php?action=getTemplate" % langf, @@ -1736,7 +1736,7 @@ def login_fa(): except: import traceback logger.error(traceback.format_exc()) - return False, "Error durante el login. Comprueba tus credenciales" + return False, config.get_localized_string(70331) def cuenta_fa(item): @@ -1747,9 +1747,9 @@ def cuenta_fa(item): itemlist.append(item.clone(action="", title=message, text_color=color4)) else: userid = config.get_setting("userid", "tvmoviedb") - itemlist.append(item.clone(action="acciones_fa", title="Mis votaciones", text_color=color5, accion="votos", + itemlist.append(item.clone(action="acciones_fa", title=config.get_localized_string(70332), text_color=color5, accion="votos", url="http://m.filmaffinity.com/%s/user_ratings.php?id-user=%s" % (langf, userid))) - itemlist.append(item.clone(action="acciones_fa", title="Mis listas", text_color=color5, accion="listas", + itemlist.append(item.clone(action="acciones_fa", title=config.get_localized_string(70057), text_color=color5, accion="listas", url="http://m.filmaffinity.com/%s/mylists.php" % langf)) return itemlist @@ -1833,7 +1833,7 @@ def acciones_fa(item): new_item.title = "[COLOR %s]%s[/COLOR] %s" % (color4, u"\u04FE".encode('utf-8'), title) new_item.accion = "addMovieToList" itemlist.append(new_item) - new_item = item.clone(action="newlist", title="Añadir una nueva lista", text_color=color6) + new_item = item.clone(action="newlist", title=config.get_localized_string(70333), text_color=color6) new_item.infoLabels["duration"] = "" itemlist.append(new_item) else: @@ -1846,9 +1846,9 @@ def acciones_fa(item): return xbmc.executebuiltin("Container.Refresh") else: if data["result"] == 0: - title = "Acción completada con éxito" + title = config.get_localized_string(70334) else: - title = "Error, algo ha fallado durante el proceso" + title = config.get_localized_string(70335) itemlist.append(item.clone(action="", title=title)) return itemlist @@ -1873,7 +1873,7 @@ def votar_fa(item): item.valores = valores return platformtools.show_channel_settings(list_controls=list_controls, dict_values=dict_values, - caption="Votar %s" % item.contentTitle, item=item, + caption=config.get_localized_string(70336) % item.contentTitle, item=item, callback='callback_voto') @@ -1889,9 +1889,9 @@ def callback_voto(item, values): return xbmc.executebuiltin("Container.Refresh") else: if data["result"] == 0: - title = "Voto contabilizado con éxito" + title = config.get_localized_string(70337) else: - title = "Error, algo ha fallado durante el proceso" + title = config.get_localized_string(70335) itemlist.append(item.clone(action="", title=title)) return itemlist @@ -1902,7 +1902,7 @@ def newlist(item): if item.accion == "lista": location = httptools.downloadpage(item.url).headers["location"] data = httptools.downloadpage("http://m.filmaffinity.com" + location).data - itemlist.append(item.clone(action="", title="Lista creada correctamente")) + itemlist.append(item.clone(action="", title=config.get_localized_string(70338))) else: url = "http://m.filmaffinity.com/%s/addlist.php?rp=%s" % (langf, item.url) data = httptools.downloadpage(url).data @@ -1950,7 +1950,7 @@ def imagenes(item): resultado = None if not resultado: - itemlist.append(item.clone(title="Web de Fanart.tv no disponible. Vuelve a intentarlo", action="")) + itemlist.append(item.clone(title=config.get_localized_string(70338), action="")) return itemlist elif "Filmaffinity" in item.title: try: @@ -1962,7 +1962,7 @@ def imagenes(item): else: item.images.pop("filmaffinity", None) except: - itemlist.append(item.clone(title="No hay imágenes disponibles", action="")) + itemlist.append(item.clone(title=config.get_localized_string(70339), action="")) return itemlist elif "Imdb" in item.title: try: @@ -1973,7 +1973,7 @@ def imagenes(item): else: item.images.pop("imdb", None) except: - itemlist.append(item.clone(title="No hay imágenes disponibles", action="")) + itemlist.append(item.clone(title=config.get_localized_string(70339), action="")) return itemlist if item.images: @@ -2072,15 +2072,15 @@ def menu_trakt(item): itemlist = [] token_auth = config.get_setting("token_trakt", "trakt") tipo = item.extra.replace("tv", "show") + "s" - title = item.contentType.replace("movie", "película").replace("tvshow", "serie") + title = item.contentType.replace("movie", config.get_localized_string(70283)).replace("tvshow", "serie") try: result = acciones_trakt(item.clone(url="sync/watched/%s" % tipo)) post = {tipo: [{"ids": {"tmdb": item.infoLabels["tmdb_id"]}}]} if '"tmdb":%s' % item.infoLabels["tmdb_id"] in result: - itemlist.append(item.clone(title="[Trakt] Marcar %s como no vista" % title, action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70341) % title, action="acciones_trakt", url="sync/history/remove", post=post)) else: - itemlist.append(item.clone(title="[Trakt] Marcar %s como vista" % title, action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70342) % title, action="acciones_trakt", url="sync/history", post=post)) except: pass @@ -2089,10 +2089,10 @@ def menu_trakt(item): result = acciones_trakt(item.clone(url="sync/watchlist/%s" % tipo)) post = {tipo: [{"ids": {"tmdb": item.infoLabels["tmdb_id"]}}]} if '"tmdb":%s' % item.infoLabels["tmdb_id"] in result: - itemlist.append(item.clone(title="[Trakt] Eliminar %s de tu watchlist" % title, action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70343) % title, action="acciones_trakt", url="sync/watchlist/remove", post=post)) else: - itemlist.append(item.clone(title="[Trakt] Añadir %s a tu watchlist" % title, action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70344) % title, action="acciones_trakt", url="sync/watchlist", post=post)) except: pass @@ -2101,10 +2101,10 @@ def menu_trakt(item): result = acciones_trakt(item.clone(url="sync/collection/%s" % tipo)) post = {tipo: [{"ids": {"tmdb": item.infoLabels["tmdb_id"]}}]} if '"tmdb":%s' % item.infoLabels["tmdb_id"] in result: - itemlist.append(item.clone(title="[Trakt] Eliminar %s de tu colección" % title, action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70345) % title, action="acciones_trakt", url="sync/collection/remove", post=post)) else: - itemlist.append(item.clone(title="[Trakt] Añadir %s a tu colección" % title, action="acciones_trakt", + itemlist.append(item.clone(title=config.get_localized_string(70346) % title, action="acciones_trakt", url="sync/collection", post=post)) except: pass @@ -2144,9 +2144,9 @@ def acciones_trakt(item): else: data = jsontools.load(data) if "not_found" in data: - return platformtools.dialog_notification("Trakt", "Acción realizada correctamente") + return platformtools.dialog_notification("Trakt", config.get_localized_string(70347)) else: - return platformtools.dialog_notification("Trakt", "Hubo error en el proceso") + return platformtools.dialog_notification("Trakt", config.get_localized_string(70348)) elif data and "recommendations" in item.url: data = jsontools.load(data) ratings = [] @@ -2167,7 +2167,7 @@ def acciones_trakt(item): ratings.append(0.0) itemlist.append(new_item) if i == item.pagina + 20: - itemlist.append(item.clone(title=">> Página Siguiente", text_color="", pagina=item.pagina + 20)) + itemlist.append(item.clone(title=config.get_localized_string(70065), text_color="", pagina=item.pagina + 20)) break from core import tmdb @@ -2188,7 +2188,7 @@ def acciones_trakt(item): 'runtime': 'Duración', 'popularity': 'Popularidad', 'percentage': 'Valoración', 'votes': 'Votos', 'asc': 'ascendente', 'desc': 'descendente'} orden = valores[item.order] + " " + valores[item.how] - itemlist.append(item.clone(title="Lista ordenada por %s. ¿Cambiar orden?" % orden, action="order_list", + itemlist.append(item.clone(title=config.get_localized_string(70349) % orden, action="order_list", text_color=color4)) ratings = [] try: @@ -2243,7 +2243,7 @@ def acciones_trakt(item): page = scrapertools.find_single_match(item.url, 'page=(\d+)') page_new = int(page) + 1 url = item.url.replace("page=" + page, "page=" + str(page_new)) - itemlist.append(item.clone(title=">> Página Siguiente", text_color="", url=url)) + itemlist.append(item.clone(title=config.get_localized_string(70065), text_color="", url=url)) else: data = jsontools.load(data) for entry in data: @@ -2275,7 +2275,7 @@ def order_list(item): 'Valoración', 'Votos'] list_controls[1]['lvalues'] = ['Ascendente', 'Descendente'] return platformtools.show_channel_settings(list_controls=list_controls, dict_values=dict_values, - caption="Filtra la búsqueda", item=item, callback='order_trakt') + caption=config.get_localized_string(70320), item=item, callback='order_trakt') def order_trakt(item, values): @@ -2334,7 +2334,7 @@ def top_mal(item): next_page = scrapertools.find_single_match(data, 'limit=(\d+)" class="link-blue-box next">') if next_page: next_page = item.url.rsplit("=", 1)[0] + "=%s" % next_page - itemlist.append(item.clone(title=">> Página Siguiente", url=next_page, text_color="")) + itemlist.append(item.clone(title=config.get_localized_string(70065), url=next_page, text_color="")) return itemlist @@ -2441,37 +2441,37 @@ def detalles_mal(item): item.thumbnail = scrapertools.find_single_match(data, '/pics">.*?" in data and config.is_xbmc(): itemlist.append( - item.clone(title="[MAL] Añadir a tus listas/%s" % score, action="menu_mal", contentTitle=title_mal)) + item.clone(title=config.get_localized_string(70321) % score, action="menu_mal", contentTitle=title_mal)) elif item.login and config.is_xbmc(): status = {'1': 'Viendo Actualmente', '2': 'Completados', '3': 'En pausa', '4': 'Descartados', '6': 'Previstos para ver'} @@ -2500,7 +2500,7 @@ def detalles_mal(item): try: estado = status[estado] itemlist.append( - item.clone(title="[MAL] En tu lista de [COLOR %s]%s[/COLOR]. ¿Cambiar?/%s" % (color6, estado, score), + item.clone(title=config.get_localized_string(70322) % (color6, estado, score), action="menu_mal", contentTitle=title_mal)) except: @@ -2508,7 +2508,7 @@ def detalles_mal(item): token_auth = config.get_setting("token_trakt", "trakt") if token_auth and ob_tmdb.result: - itemlist.append(item.clone(title="[Trakt] Gestionar con tu cuenta", action="menu_trakt")) + itemlist.append(item.clone(title=config.get_localized_string(70323), action="menu_trakt")) # Se listan precuelas, secuelas y series alternativas prequel = scrapertools.find_single_match(data, 'Prequel:(.*?)') @@ -2517,7 +2517,7 @@ def detalles_mal(item): for url, title in matches: new_item = item.clone(infoLabels={'mediatype': item.contentType}, extra="", fanart=default_fan, thumbnail="") - new_item.title = "Precuela: %s" % title + new_item.title = onfig.get_localized_string(70355) % title new_item.contentTitle = title new_item.url = "https://myanimelist.net%s" % url itemlist.append(new_item) @@ -2528,7 +2528,7 @@ def detalles_mal(item): for url, title in matches: new_item = item.clone(infoLabels={'mediatype': item.contentType}, extra="", fanart=default_fan, thumbnail="") - new_item.title = "Secuela: %s" % title + new_item.title = onfig.get_localized_string(70356) % title new_item.contentTitle = title new_item.url = "https://myanimelist.net%s" % url itemlist.append(new_item) @@ -2539,7 +2539,7 @@ def detalles_mal(item): for url, title in matches: new_item = item.clone(infoLabels={'mediatype': item.contentType}, extra="", fanart=default_fan, thumbnail="") - new_item.title = "Versión alternativa: %s" % title + new_item.title = onfig.get_localized_string(70357) % title new_item.contentTitle = title new_item.url = "https://myanimelist.net%s" % url itemlist.append(new_item) @@ -2559,12 +2559,12 @@ def detalles_mal(item): itemlist.append(new_item) itemlist.append( - item.clone(title="Recomendaciones TMDB", action="listado_tmdb", infoLabels={'mediatype': item.contentType}, + item.clone(title=onfig.get_localized_string(70358), action="listado_tmdb", infoLabels={'mediatype': item.contentType}, search={'url': '%s/%s/recommendations' % (item.extra, item.infoLabels['tmdb_id']), 'language': langt, 'page': 1}, text_color=color2)) # Recomendaciones myanimelist y búsqueda de info en anidb (fansubs en español) - itemlist.append(item.clone(title="Recomendaciones MyAnimeList", action="reco_mal")) + itemlist.append(item.clone(title=onfig.get_localized_string(70359), action="reco_mal")) anidb_link = scrapertools.find_single_match(data, 'More') if next_page: - itemlist.append(item.clone(title=">> Más Episodios", url=next_page, text_color="")) + itemlist.append(item.clone(title=onfig.get_localized_string(70361), url=next_page, text_color="")) if itemlist: - itemlist.insert(0, item.clone(title="Episodios", action="", text_color=color3)) + itemlist.insert(0, item.clone(title=config.get_localized_string(70362), action="", text_color=color3)) patron = '([^<]+)<' matches = scrapertools.find_multiple_matches(data, patron) if matches: - itemlist.append(item.clone(title="Tráilers/Promocionales", action="", text_color=color3)) + itemlist.append(item.clone(title=config.get_localized_string(70363), action="", text_color=color3)) for url, thumb, title in matches: url = url.replace("embed/", "watch?v=") itemlist.append( @@ -2654,8 +2654,8 @@ def indices_mal(item): thumbnail = item.thumbnail if int(year) >= 1968: thumbnail = url_base % year - title = title.replace("Winter", "Invierno").replace("Spring", "Primavera") \ - .replace("Summer", "Verano").replace("Fall", "Otoño") + title = title.replace("Winter", config.get_localized_string(70364)).replace("Spring", config.get_localized_string(70365)) \ + .replace("Summer", config.get_localized_string(70366)).replace("Fall", config.get_localized_string(70367)) itemlist.append(Item(channel=item.channel, action="season_mal", title=title, url=url, thumbnail=thumbnail, text_color=color1, info=True, fanart=thumbnail)) else: @@ -2690,7 +2690,7 @@ def season_mal(item): patron = '
([^<]+)
(.*?)\s*' bloques = scrapertools.find_multiple_matches(data, patron) for head_title, bloque in bloques: - head_title = head_title.replace("(New)", "(Nuevos)").replace("(Continuing)", "(Continuación)") + head_title = head_title.replace("(New)", config.get_localized_string(70369)).replace("(Continuing)", config.get_localized_string(70369)) patron = '
(.*?).*?(\? ep|\d+ ep).*?' \ '
(.*?)
.*?
(.*?).*?
\s*(.*?)\s*-.*?(\d{4}).*?' \ @@ -2765,7 +2765,7 @@ def season_mal(item): next_page = scrapertools.find_single_match(data, '' matches = scrapertools.find_multiple_matches(data, patron) if matches: - itemlist.append(item.clone(title="Personajes/Dobladores", action="", text_color=color3)) + itemlist.append(item.clone(title=config.get_localized_string(70370), action="", text_color=color3)) for url, thumb, nombre, rol, voces in matches: url = "https://myanimelist.net%s" % url rol = rol.replace("Main", "Principal").replace("Supporting", "Secundario") @@ -2945,11 +2945,11 @@ def busqueda_mal(item): check_page = next_page.replace("https://myanimelist.net/anime.php", "") if check_page in data: - itemlist.append(item.clone(title=">> Página Siguiente", url=next_page, text_color="")) + itemlist.append(item.clone(title=config.get_localized_string(70065), url=next_page, text_color="")) else: check_page = check_page.replace("[", "%5B").replace("]", "%5D") if check_page in data: - itemlist.append(item.clone(title=">> Página Siguiente", url=next_page, text_color="")) + itemlist.append(item.clone(title=config.get_localized_string(70065), url=next_page, text_color="")) return itemlist @@ -2976,9 +2976,9 @@ def info_anidb(item, itemlist, url): infoLabels["votes"] = scrapertools.find_single_match(data, 'itemprop="ratingCount">(.*?)') thumbnail = scrapertools.find_single_match(data, '
.*?src="([^"]+)"') if infoLabels: - title = "Info en AniDB [COLOR %s]%s[/COLOR]" % (color6, rating) + title = config.get_localized_string(70376) % (color6, rating) if re.search(r'(?:subtitle|audio) | language: spanish"', data): - title += " - [COLOR %s]Fansubs en español:[/COLOR]" % color3 + title += config.get_localized_string(70377) % color3 itemlist.append(Item(channel=item.channel, title=title, infoLabels=infoLabels, action="", thumbnail=thumbnail, text_color=color4)) @@ -2994,7 +2994,7 @@ def info_anidb(item, itemlist, url): title = " " + fansub if abrev != title: title += " [%s]" % abrev - estado = estado.replace("complete", "Completa").replace("finished", "Terminada") \ + estado = estado.replace("complete", config.get_localized_string(70378)).replace("finished", config.get_localized_string(70379)) \ .replace("stalled", "Pausa").replace("dropped", "Abandonada") title += " [COLOR %s](%s)[/COLOR] %s/%s [%s]" % (color6, estado, epis, epi_total, source) itemlist.append(Item(channel=item.channel, title=title, infoLabels=infoLabels, action="", @@ -3052,7 +3052,7 @@ def filtro_mal(item): item.valores = valores return platformtools.show_channel_settings(list_controls=list_controls, dict_values=dict_values, - caption="Filtra la búsqueda", item=item, callback='callback_mal') + caption=config.get_localized_string(70320), item=item, callback='callback_mal') def callback_mal(item, values): @@ -3134,7 +3134,7 @@ def login_mal(from_list=False): password = bdec("dFlTakE3ekYzbng1") generic = True else: - return False, "Usuario y/o contraseña de Myanimelist en blanco", user + return False, config.get_localized_string(70381), user data = httptools.downloadpage("https://myanimelist.net/login.php?from=%2F").data if re.search(r'(?i)' + user, data) and not generic: return True, "", user @@ -3145,16 +3145,16 @@ def login_mal(from_list=False): if not re.search(r'(?i)' + user, response.data): logger.error("Error en el login") - return False, "Error en el usuario y/o contraseña. Comprueba tus credenciales", user + return False, onfig.get_localized_string(70330), user else: if generic: - return False, "Usuario y/o contraseña de Myanimelist en blanco", user + return False, config.get_localized_string(70381), user logger.info("Login correcto") return True, "", user except: import traceback logger.error(traceback.format_exc()) - return False, "Error durante el login. Comprueba tus credenciales" + return False, config.get_localized_string(70331) def cuenta_mal(item): @@ -3165,15 +3165,15 @@ def cuenta_mal(item): itemlist.append(item.clone(action="configuracion", title=message, text_color=color4)) else: itemlist.append( - item.clone(action="items_mal", title="Viendo actualmente", text_color=color5, accion="lista_mal", + item.clone(action="items_mal", title=config.get_localized_string(70382), text_color=color5, accion="lista_mal", url="https://myanimelist.net/animelist/%s?status=1" % user, login=True)) - itemlist.append(item.clone(action="items_mal", title="Completados", text_color=color5, accion="lista_mal", + itemlist.append(item.clone(action="items_mal", title=config.get_localized_string(70383), text_color=color5, accion="lista_mal", url="https://myanimelist.net/animelist/%s?status=2" % user, login=True)) - itemlist.append(item.clone(action="items_mal", title="En pausa", text_color=color5, accion="lista_mal", + itemlist.append(item.clone(action="items_mal", title=config.get_localized_string(70384), text_color=color5, accion="lista_mal", url="https://myanimelist.net/animelist/%s?status=3" % user, login=True)) - itemlist.append(item.clone(action="items_mal", title="Descartados", text_color=color5, accion="lista_mal", + itemlist.append(item.clone(action="items_mal", title=config.get_localized_string(70385), text_color=color5, accion="lista_mal", url="https://myanimelist.net/animelist/%s?status=4" % user, login=True)) - itemlist.append(item.clone(action="items_mal", title="Ver más adelante", text_color=color5, accion="lista_mal", + itemlist.append(item.clone(action="items_mal", title=config.get_localized_string(70386), text_color=color5, accion="lista_mal", url="https://myanimelist.net/animelist/%s?status=6" % user, login=True)) return itemlist @@ -3220,7 +3220,7 @@ def items_mal(item): contentTitle=contentTitle, contentType=tipo, extra=extra, login=True)) if itemlist: - itemlist.insert(0, Item(channel=item.channel, action="", title="E=En emisión | F=Finalizado | P=Próximamente")) + itemlist.insert(0, Item(channel=item.channel, action="", title=config.get_localized_string(70387))) return itemlist @@ -3236,12 +3236,12 @@ def menu_mal(item): button, estado = scrapertools.find_single_match(data, 'myinfo_updateInfo"(.*?)>.*?option selected="selected" value="(\d+)"') if "disabled" in button: - title_estado = ". Acciones disponibles:" + title_estado = config.get_localized_string(70388) estado = "1" else: - title_estado = ". En tu lista [COLOR %s]%s[/COLOR]" % (color6, status[estado]) + title_estado = config.get_localized_string(70389) % (color6, status[estado]) except: - title_estado = ". Acciones disponibles:" + title_estado = config.get_localized_string(70388) score = scrapertools.find_single_match(data, 'id="myinfo_score".*?selected" value="(\d+)"') if score != "0": @@ -3249,18 +3249,18 @@ def menu_mal(item): if "lista" in title_estado: item.lista = True - itemlist.append(item.clone(title="Anime: %s%s" % (item.contentTitle, title_estado), action="")) + itemlist.append(item.clone(title=config.get_localized_string(70390) % (item.contentTitle, title_estado), action="")) status = {'1': 'Viendo Actualmente', '2': 'Completados', '3': 'En pausa', '4': 'Descartados', '6': 'Previstos para ver'} for key, value in status.items(): if not value in title_estado: itemlist.append( - item.clone(title="Añadir a lista %s" % value, action="addlist_mal", text_color=color5, value=key, + item.clone(title=config.get_localized_string(70391) % value, action="addlist_mal", text_color=color5, value=key, estado=value)) for i in range(10, 0, -1): if i != int(score): - itemlist.append(item.clone(title="Puntuar con un [COLOR %s]%s[/COLOR]" % (color6, i), action="addlist_mal", + itemlist.append(item.clone(title=config.get_localized_string(70392) % (color6, i), action="addlist_mal", value=estado, estado=status[estado], score=i)) return itemlist diff --git a/plugin.video.alfa/core/tvdb.py b/plugin.video.alfa/core/tvdb.py index ac9b4557..eb0fc035 100755 --- a/plugin.video.alfa/core/tvdb.py +++ b/plugin.video.alfa/core/tvdb.py @@ -73,7 +73,7 @@ def find_and_set_infoLabels(item): p_dialog = None if not item.contentSeason: - p_dialog = platformtools.dialog_progress_bg("Buscando información de la serie", "Espere por favor...") + p_dialog = platformtools.dialog_progress_bg(config.get_localized_string(60296), config.get_localized_string(60293)) global otvdb_global tvdb_result = None @@ -95,17 +95,17 @@ def find_and_set_infoLabels(item): otvdb_global = Tvdb(tvdb_id=item.infoLabels['tvdb_id']) if not item.contentSeason: - p_dialog.update(50, "Buscando información de la serie", "Obteniendo resultados...") + p_dialog.update(50, config.get_localized_string(60296), config.get_localized_string(60295)) results, info_load = otvdb_global.get_list_results() logger.debug("results es %s" % results) if not item.contentSeason: - p_dialog.update(100, "Buscando información de la serie", "Encontrados %s posibles coincidencias" % len(results)) + p_dialog.update(100, config.get_localized_string(60296), config.get_localized_string(60297) % len(results)) p_dialog.close() if len(results) > 1: tvdb_result = platformtools.show_video_info(results, item=item, scraper=Tvdb, - caption="[%s]: Selecciona la serie correcta" % title) + caption=config.get_localized_string(60298) % title) elif len(results) > 0: tvdb_result = results[0] @@ -344,8 +344,8 @@ class Tvdb: self.__get_by_id(kwargs.get('tvdb_id', '')) if not self.list_results and config.get_setting("tvdb_retry_eng", "videolibrary"): from platformcode import platformtools - platformtools.dialog_notification("No se ha encontrado en idioma '%s'" % DEFAULT_LANG, - "Se busca en idioma 'en'", sound=False) + platformtools.dialog_notification(config.get_localized_string(60299) % DEFAULT_LANG, + config.get_localized_string(60302), sound=False) self.__get_by_id(kwargs.get('tvdb_id', ''), "en") self.lang = "en" @@ -354,8 +354,8 @@ class Tvdb: self.__search(kwargs.get('search', ''), kwargs.get('imdb_id', ''), kwargs.get('zap2it_id', '')) if not self.list_results and config.get_setting("tvdb_retry_eng", "videolibrary"): from platformcode import platformtools - platformtools.dialog_notification("No se ha encontrado en idioma '%s'" % DEFAULT_LANG, - "Se busca en idioma 'en'") + platformtools.dialog_notification(config.get_localized_string(60299) % DEFAULT_LANG, + config.get_localized_string(60302)) self.__search(kwargs.get('search', ''), kwargs.get('imdb_id', ''), kwargs.get('zap2it_id', ''), "en") self.lang = "en" @@ -365,7 +365,7 @@ class Tvdb: buscando = kwargs.get('tvdb_id', '') else: buscando = kwargs.get('search', '') - msg = "La busqueda de %s no dio resultados." % buscando + msg = config.get_localized_string(70266) % buscando logger.debug(msg) @classmethod diff --git a/plugin.video.alfa/resources/language/English/strings.po b/plugin.video.alfa/resources/language/English/strings.po index 8d9dedcc..40a5bb6d 100644 --- a/plugin.video.alfa/resources/language/English/strings.po +++ b/plugin.video.alfa/resources/language/English/strings.po @@ -3957,4 +3957,324 @@ msgstr "" msgctxt "#70313" msgid "Top rated Series" +msgstr "" + +msgctxt "#70314" +msgid "Actors/Actresses" +msgstr "" + +msgctxt "#70315" +msgid "Recommendations" +msgstr "" + +msgctxt "#70316" +msgid "List of Images" +msgstr "" + +msgctxt "#70317" +msgid "Listen to BSO - List of songs" +msgstr "" + +msgctxt "#70318" +msgid "Manage yor trakt account" +msgstr "" + +msgctxt "#70319" +msgid "Filming equipment" +msgstr "" + +msgctxt "#70320" +msgid "Filter search" +msgstr "" + +msgctxt "#70321" +msgid "[MAL] Add to your lists/%s" +msgstr "" + +msgctxt "#70322" +msgid "[MAL] in your list of [COLOR %s]%s[/COLOR] Do you want to change?/%s" +msgstr "" + +msgctxt "#70323" +msgid "[Trakt] Manage your account" +msgstr "" + +msgctxt "#70324" +msgid "[FA] My vote: %s ---> Change?" +msgstr "" + +msgctxt "#70325" +msgid "[FA] Vote %s" +msgstr "" + +msgctxt "#70326" +msgid "[FA] Add or remove from a user list" +msgstr "" + +msgctxt "#70327" +msgid "It's part of: %s" +msgstr "" + +msgctxt "#70328" +msgid "%ss similarar" +msgstr "" + +msgctxt "#70329" +msgid "User and/or passwords not configured" +msgstr "" + +msgctxt "#70330" +msgid "Error in the user and/or password. Check your credentials" +msgstr "" + +msgctxt "#70331" +msgid "Error during login. Check your credentials +msgstr "" + +msgctxt "#70332" +msgid "My votes" +msgstr "" + +msgctxt "#70333" +msgid "Add new list" +msgstr "" + +msgctxt "#70334" +msgid "Action completed successfully" +msgstr "" + +msgctxt "#70335" +msgid "Error, something has failed during the process" +msgstr "" + +msgctxt "#70336" +msgid "Vote %s" +msgstr "" + +msgctxt "#70337" +msgid "Vote completed successfully" +msgstr "" + +msgctxt "#70338" +msgid "List created correctly" +msgstr "" + +msgctxt "#70339" +msgid "Fanart.tv website not available. Retry" +msgstr "" + +msgctxt "#70340" +msgid "No images available" +msgstr "" + +msgctxt "#70341" +msgid "[Trakt] Mark %s as not seen" +msgstr "" + +msgctxt "#70342" +msgid "[Trakt] Mark %s as seen" +msgstr "" + +msgctxt "#70343" +msgid "[Trakt] Remove %s from your watchlist" +msgstr "" + +msgctxt "#70344" +msgid "Add to %s your watchlist"" +msgstr "" + +msgctxt "#70345" +msgid "[Trakt] Remove %s from your collection" +msgstr "" + +msgctxt "#70346" +msgid "[Trakt] Add %s to your collection +msgstr "" + +msgctxt "#70347" +msgid "Action performed correctly" +msgstr "" + +msgctxt "#70348" +msgid "An error occurred in process" +msgstr "Hubo error en el proceso" + +msgctxt "#70349" +msgid "List sorted by %s. Change order?" +msgstr "" + +msgctxt "#70350" +msgid "Search in alfa: %s" +msgstr "" + +msgctxt "#70351" +msgid " Search alternative title: %s" +msgstr "" + +msgctxt "#70352" +msgid " Search title in english: %s" +msgstr "" + +msgctxt "#70353" +msgid "Vídeos (Episodes, Trailers...)" +msgstr "" + +msgctxt "#70354" +msgid "Characters/Staff" +msgstr "" + +msgctxt "#70355" +msgid "Prequel: %s" +msgstr "" + +msgctxt "#70356" +msgid "Sequel: %s" +msgstr "" + +msgctxt "#70357" +msgid "Alternative version: %s" +msgstr "" + +msgctxt "#70358" +msgid "Recommendations TMDB" +msgstr "" + +msgctxt "#70359" +msgid "Recommendations MyAnimeList" +msgstr "" + +msgctxt "#70360" +msgid " [COLOR %s][Without subs in castellan][/COLOR]" +msgstr "" + +msgctxt "#70361" +msgid ">> More Episodes" +msgstr "" + +msgctxt "#70362" +msgid "Episodes" +msgstr "" + +msgctxt "#70363" +msgid "Trailers/Promotions" +msgstr "" + +msgctxt "#70364" +msgid "Winter" +msgstr "" + +msgctxt "#70365" +msgid "Spring" +msgstr "" + +msgctxt "#70366" +msgid "Summer" +msgstr "" + +msgctxt "#70367" +msgid "Fall" +msgstr "" + +msgctxt "#70368" +msgid "(New)" +msgstr "" + +msgctxt "#70369" +msgid "(Continuation)" +msgstr "" + +msgctxt "#70370" +msgid "Characters/Benders" +msgstr "" + +msgctxt "#70371" +msgid "Principal" +msgstr "" + +msgctxt "#70372" +msgid "Secondary" +msgstr "" + +msgctxt "#70373" +msgid "Animes where it appears:" +msgstr "" + +msgctxt "#70374" +msgid "Give voice to/in:" +msgstr "" + +msgctxt "#70375" +msgid "Staff in animes:" +msgstr "" + +msgctxt "#70376" +msgid "Info in AniDB [COLOR %s]%s[/COLOR]" +msgstr "" + +msgctxt "#70377" +msgid " - [COLOR %s]Fansubs in spanish:[/COLOR]" +msgstr "" + +msgctxt "#70378" +msgid "Complete" +msgstr "" + +msgctxt "#70379" +msgid "Finished" +msgstr "" + +msgctxt "#70380" +msgid "Stalled" +msgstr "" + +msgctxt "#70381" +msgid "Dropped" +msgstr "" + +msgctxt "#70381" +msgid "Myanimelist username and/or password blank" +msgstr "" + +msgctxt "#70382" +msgid "Currently watching" +msgstr "" + +msgctxt "#70383" +msgid "Completed" +msgstr "" + +msgctxt "#70384" +msgid "Pause" +msgstr "" + +msgctxt "#70385" +msgid "Descarted" +msgstr "" + +msgctxt "#70386" +msgid "See later" +msgstr "" + +msgctxt "#70387" +msgid "E = In emission | F = Completed | P = Coming soon" +msgstr "" + +msgctxt "#70388" +msgid ". Available actions:" +msgstr "" + +msgctxt "#70389" +msgid ". In your list [COLOR %s]%s[/COLOR]" +msgstr "" + +msgctxt "#70390" +msgid "Anime: %s%s" +msgstr "" + +msgctxt "#70391" +msgid "Add to list %s" +msgstr "" + +msgctxt "#70392" +msgid "Rate with a [COLOR %s]%s[/ COLOR]" msgstr "" \ No newline at end of file diff --git a/plugin.video.alfa/resources/language/Italian/strings.po b/plugin.video.alfa/resources/language/Italian/strings.po index 9bace590..8ebb6a0b 100644 --- a/plugin.video.alfa/resources/language/Italian/strings.po +++ b/plugin.video.alfa/resources/language/Italian/strings.po @@ -3941,4 +3941,324 @@ msgstr "Serie in uscita" msgctxt "#70313" msgid "Top rated Series" -msgstr "Serie Più valutate" \ No newline at end of file +msgstr "Serie Più valutate" + +msgctxt "#70314" +msgid "Actors/Actresses" +msgstr "Attori/Attrici" + +msgctxt "#70315" +msgid "Recommendations" +msgstr "Raccomandati" + +msgctxt "#70316" +msgid "List of Images" +msgstr "Galleria di Immagini" + +msgctxt "#70317" +msgid "Listen to BSO - List of songs" +msgstr "Ascolta BSO - Lista di canzoni" + +msgctxt "#70318" +msgid "Manage yor trakt account" +msgstr "Gestisci il tuo account Trakt" + +msgctxt "#70319" +msgid "Filming equipment" +msgstr "Filming crew" + +msgctxt "#70320" +msgid "Filter search" +msgstr "Filtra la ricerca" + +msgctxt "#70321" +msgid "[MAL] Add to your lists/%s" +msgstr "[MAL] Aggiungi alle tue liste/%s" + +msgctxt "#70322" +msgid "[MAL] in your list of [COLOR %s]%s[/COLOR] Do you want to change?/%s" +msgstr "[MAL] Nella tua lista di [COLOR %s]%s[/COLOR]. Vuoi cambiare?/%s" + +msgctxt "#70323" +msgid "[Trakt] Manage your account" +msgstr "[Trakt] Gestisci il tuo account" + +msgctxt "#70324" +msgid "[FA] My vote: %s ---> Change?" +msgstr "[FA] il Mio voto: %s ---> Cambiare?" + +msgctxt "#70325" +msgid "[FA] Vote %s" +msgstr "[FA] Vota %s" + +msgctxt "#70326" +msgid "[FA] Add or remove from a user list" +msgstr "[FA] Aggiungi o rimuovi da un elenco utenti" + +msgctxt "#70327" +msgid "It's part of: %s" +msgstr "E'parte di: %s" + +msgctxt "#70328" +msgid "%ss similarar" +msgstr "%s simili" + +msgctxt "#70329" +msgid "User and/or passwords not configured" +msgstr "Utente e/o password non configurati" + +msgctxt "#70330" +msgid "Error in the user and/or password. Check your credentials" +msgstr "Errore in username e/o password. Controlla le tue credenziali" + +msgctxt "#70331" +msgid "Error during login. Check your credentials +msgstr "Errore durante il login. Controlla le tue credenziali" + +msgctxt "#70332" +msgid "My votes" +msgstr "I miei voti + +msgctxt "#70333" +msgid "Add new list" +msgstr "Aggiungi una nuova lista" + +msgctxt "#70334" +msgid "Action completed successfully" +msgstr "Azione completata con successo" + +msgctxt "#70335" +msgid "Error, something has failed during the process" +msgstr "Errore, qualcosa è fallito durante il processo" + +msgctxt "#70336" +msgid "Vote %s" +msgstr "Vota %s" + +msgctxt "#70337" +msgid "Vote completed successfully" +msgstr "Voto inviato correttamente" + +msgctxt "#70338" +msgid "List created correctly" +msgstr "Lista creata correttamente" + +msgctxt "#70339" +msgid "Fanart.tv website not available. Retry" +msgstr "Sito Web di Fanart.tv non disponibile. Riprova" + +msgctxt "#70340" +msgid "No images available" +msgstr "Non sono disponibili immagini" + +msgctxt "#70341" +msgid "[Trakt] Mark %s as not seen" +msgstr "[Trakt] Segna %s come non vista" + +msgctxt "#70342" +msgid "[Trakt] Mark %s as seen" +msgstr "[Trakt] Segna %s come vista" + +msgctxt "#70343" +msgid "[Trakt] Remove %s from your watchlist" +msgstr "[Trakt] Rimuovi %s dalla tua watchlist" + +msgctxt "#70344" +msgid "Add to %s your watchlist"" +msgstr "[Trakt] Aggiungi %s alla tua watchlist" + +msgctxt "#70345" +msgid "[Trakt] Remove %s from your collection" +msgstr "[Trakt] Rimuovi %s dalla tua collezione" + +msgctxt "#70346" +msgid "[Trakt] Add %s to your collection +msgstr "[Trakt] Aggiungi %s alla tua collezione" + +msgctxt "#70347" +msgid "Action performed correctly" +msgstr "Azione completata correttamente" + +msgctxt "#70348" +msgid "An error occurred in process" +msgstr "Si è verificato un errore nel processo" + +msgctxt "#70349" +msgid "List sorted by %s. Change order?" +msgstr "Lista ordinata per %s. Cambiare ordine?" + +msgctxt "#70350" +msgid "Search in alfa: %s" +msgstr "Cerca in alfa: %s" + +msgctxt "#70351" +msgid " Search alternative title: %s" +msgstr " Cerca titolo alternativo: %s" + +msgctxt "#70352" +msgid " Search title in english: %s" +msgstr " Cerca titolo in inglese: %s" + +msgctxt "#70353" +msgid "Vídeos (Episodes, Trailers...)" +msgstr "Vídeo (Episodi, Trailers...)" + +msgctxt "#70354" +msgid "Characters/Staff" +msgstr "Personaggi/Staff" + +msgctxt "#70355" +msgid "Prequel: %s" +msgstr "Prequel: %s" + +msgctxt "#70356" +msgid "Sequel: %s" +msgstr "Sequel: %s" + +msgctxt "#70357" +msgid "Alternative version: %s" +msgstr "Versione alternativa: %s" + +msgctxt "#70358" +msgid "Recommendations TMDB" +msgstr "Raccomandazioni TMDB" + +msgctxt "#70359" +msgid "Recommendations MyAnimeList" +msgstr "Raccomandazioni MyAnimeList" + +msgctxt "#70360" +msgid " [COLOR %s][Without subs in castellan][/COLOR]" +msgstr " [COLOR %s][Senza subs in castigliano][/COLOR]" + +msgctxt "#70361" +msgid ">> More Episodes" +msgstr ">> Altri Episodi" + +msgctxt "#70362" +msgid "Episodes" +msgstr "Episodi" + +msgctxt "#70363" +msgid "Trailers/Promotions" +msgstr "Trailers/Promozionali" + +msgctxt "#70364" +msgid "Winter" +msgstr "Inverno" + +msgctxt "#70365" +msgid "Spring" +msgstr "Primavera" + +msgctxt "#70366" +msgid "Summer" +msgstr "Estate" + +msgctxt "#70367" +msgid "Fall" +msgstr "Autunno" + +msgctxt "#70368" +msgid "(New)" +msgstr "(Nuovi)" + +msgctxt "#70369" +msgid "(Continuation)" +msgstr "(Continuazione)" + +msgctxt "#70370" +msgid "Characters/Benders" +msgstr "Personaggi/Doppiatori" + +msgctxt "#70371" +msgid "Principal" +msgstr "Principale" + +msgctxt "#70372" +msgid "Secondary" +msgstr "Secondario" + +msgctxt "#70373" +msgid "Animes where it appears:" +msgstr "Anime dove appare:" + +msgctxt "#70374" +msgid "Give voice to/in:" +msgstr "Dai voce a/in:" + +msgctxt "#70375" +msgid "Staff in animes:" +msgstr "Staff in anime:" + +msgctxt "#70376" +msgid "Info in AniDB [COLOR %s]%s[/COLOR]" +msgstr "Info in AniDB [COLOR %s]%s[/COLOR]" + +msgctxt "#70377" +msgid " - [COLOR %s]Fansubs in spanish:[/COLOR]" +msgstr " - [COLOR %s]Fansubs in spagnolo:[/COLOR]" + +msgctxt "#70378" +msgid "Complete" +msgstr "Completa" + +msgctxt "#70379" +msgid "Finished" +msgstr "Terminada" + +msgctxt "#70380" +msgid "Stalled" +msgstr "In Pausa" + +msgctxt "#70381" +msgid "Dropped" +msgstr "Abbandonata" + +msgctxt "#70381" +msgid "Myanimelist username and/or password blank" +msgstr "Username e/o password di Myanimelist vuoti" + +msgctxt "#70382" +msgid "Currently watching" +msgstr "In visione attualmente" + +msgctxt "#70383" +msgid "Completed" +msgstr "Completati" + +msgctxt "#70384" +msgid "Pause" +msgstr "in pausa" + +msgctxt "#70385" +msgid "Descarted" +msgstr "Scartati" + +msgctxt "#70386" +msgid "See later" +msgstr "Vedi dopo" + +msgctxt "#70387" +msgid "E = In emission | F = Completed | P = Coming soon" +msgstr "E=In uscita | F=Completato | P=Prossimamente" + +msgctxt "#70388" +msgid ". Available actions:" +msgstr ". Azioni disponibili:" + +msgctxt "#70389" +msgid ". In your list [COLOR %s]%s[/COLOR]" +msgstr ". Nella tua lista [COLOR %s]%s[/COLOR]" + +msgctxt "#70390" +msgid "Anime: %s%s" +msgstr "Anime: %s%s" + +msgctxt "#70391" +msgid "Add to list %s" +msgstr "Aggiungi alla lista %s" + +msgctxt "#70392" +msgid "Rate with a [COLOR %s]%s[/ COLOR]" +msgstr "Dai un punteggio con un [COLOR %s]%s[/COLOR]" \ No newline at end of file diff --git a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po index 8870dcc9..2f4be12c 100644 --- a/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Argentina)/strings.po @@ -303,7 +303,7 @@ msgstr "Populares" msgctxt "#30985" msgid "Top Rated" -msgstr "Top Rated" +msgstr "Mejor valoradas" msgctxt "#30986" msgid "Search by Collection" @@ -2858,12 +2858,12 @@ msgid "Search %s" msgstr "Buscar %s" msgctxt "#70036" -msgid "Search actor/actress" -msgstr "Buscar actor/actriz" +msgid " Search actor/actress" +msgstr " Buscar actor/actriz" msgctxt "#70037" -msgid "Search director, writer..." -msgstr "Buscar director, guionista..." +msgid " Search director, writer..." +msgstr " Buscar director, guionista..." msgctxt "#70038" msgid "Custom Filter" @@ -3947,3 +3947,322 @@ msgctxt "#70313" msgid "Top rated Series" msgstr "Series mejor valoradas" +msgctxt "#70314" +msgid "Actors/Actresses" +msgstr "Actores/Actrices" + +msgctxt "#70315" +msgid "Recommendations" +msgstr "Recomendaciones" + +msgctxt "#70316" +msgid "List of Images" +msgstr "Lista de Imágenes" + +msgctxt "#70317" +msgid "Listen to BSO - List of songs" +msgstr "Escuchar BSO - Lista de canciones" + +msgctxt "#70318" +msgid "Manage yor trakt account" +msgstr "Gestionar con tu cuenta Trakt" + +msgctxt "#70319" +msgid "Filming equipment" +msgstr "Equipo de rodaje" + +msgctxt "#70320" +msgid "Filter search" +msgstr "Filtra la búsqueda" + +msgctxt "#70321" +msgid "[MAL] Add to your lists/%s" +msgstr "[MAL] Añadir a tus listas/%s" + +msgctxt "#70322" +msgid "[MAL] in your list of [COLOR %s]%s[/COLOR] Do you want to change?/%s" +msgstr "[MAL] En tu lista de [COLOR %s]%s[/COLOR]. ¿Cambiar?/%s" + +msgctxt "#70323" +msgid "[Trakt] Manage your account" +msgstr "[Trakt] Gestionar con tu cuenta" + +msgctxt "#70324" +msgid "[FA] My vote: %s ---> Change?" +msgstr "[FA] Mi voto: %s ---> ¿Cambiar?" + +msgctxt "#70325" +msgid "[FA] Vote %s" +msgstr "[FA] Votar %s" + +msgctxt "#70326" +msgid "[FA] Add or remove from a user list" +msgstr "[FA] Añadir o quitar de una lista de usuario" + +msgctxt "#70327" +msgid "It's part of: %s" +msgstr "Es parte de: %s" + +msgctxt "#70328" +msgid "%ss similarar" +msgstr "%ss similares" + +msgctxt "#70329" +msgid "User and/or passwords not configured" +msgstr "Usuario y/o contraseñas no configurados" + +msgctxt "#70330" +msgid "Error in the user and/or password. Check your credentials" +msgstr "Error en el usuario y/o contraseña. Comprueba tus credenciales" + +msgctxt "#70331" +msgid "Error during login. Check your credentials +msgstr "Error durante el login. Comprueba tus credenciales" + +msgctxt "#70332" +msgid "My votes" +msgstr "Mis votaciones" + +msgctxt "#70333" +msgid "Add new list" +msgstr "Añadir una nueva lista" + +msgctxt "#70334" +msgid "Action completed successfully" +msgstr "Acción completada con éxito" + +msgctxt "#70335" +msgid "Error, something has failed during the process" +msgstr "Error, algo ha fallado durante el proceso" + +msgctxt "#70336" +msgid "Vote %s" +msgstr "Votar %s" + +msgctxt "#70337" +msgid "Vote completed successfully" +msgstr "Voto contabilizado con éxito" + +msgctxt "#70338" +msgid "List created correctly" +msgstr "Lista creada correctamente" + +msgctxt "#70339" +msgid "Fanart.tv website not available. Retry" +msgstr "Web de Fanart.tv no disponible. Vuelve a intentarlo" + +msgctxt "#70340" +msgid "No images available" +msgstr "No hay imágenes disponibles" + +msgctxt "#70341" +msgid "[Trakt] Mark %s as not seen" +msgstr "[Trakt] Marcar %s como no vista" + +msgctxt "#70342" +msgid "[Trakt] Mark %s as seen" +msgstr "[Trakt] Marcar %s como vista" + +msgctxt "#70343" +msgid "[Trakt] Remove %s from your watchlist" +msgstr "[Trakt] Eliminar %s de tu watchlist" + +msgctxt "#70344" +msgid "Add to %s your watchlist"" +msgstr "[Trakt] Añadir %s a tu watchlist" + +msgctxt "#70345" +msgid "[Trakt] Remove %s from your collection" +msgstr "[Trakt] Eliminar %s de tu colección" + +msgctxt "#70346" +msgid "[Trakt] Add %s to your collection +msgstr "[Trakt] Añadir %s a tu colección" + +msgctxt "#70347" +msgid "Action performed correctly" +msgstr "Acción realizada correctamente" + +msgctxt "#70348" +msgid "An error occurred in process" +msgstr "Hubo error en el proceso" + +msgctxt "#70349" +msgid "List sorted by %s. Change order?" +msgstr "Lista ordenada por %s. ¿Cambiar orden?" + +msgctxt "#70350" +msgid "Search in alfa: %s" +msgstr "Buscar en alfa: %s" + +msgctxt "#70351" +msgid " Search alternative title: %s" +msgstr " Buscar por título alternativo: %s" + +msgctxt "#70352" +msgid " Search title in english: %s" +msgstr " Buscar por su título en inglés: %s" + +msgctxt "#70353" +msgid "Vídeos (Episodes, Trailers...)" +msgstr "Vídeos (Episodios, Trailers...)" + +msgctxt "#70354" +msgid "Characters/Staff" +msgstr "Personajes/Staff" + +msgctxt "#70355" +msgid "Prequel: %s" +msgstr "Precuela: %s" + +msgctxt "#70356" +msgid "Sequel: %s" +msgstr "Secuela: %s" + +msgctxt "#70357" +msgid "Alternative version: %s" +msgstr "Versión alternativa: %s" + +msgctxt "#70358" +msgid "Recommendations TMDB" +msgstr "Recomendaciones TMDB" + +msgctxt "#70359" +msgid "Recommendations MyAnimeList" +msgstr "Recomendaciones MyAnimeList" + +msgctxt "#70360" +msgid " [COLOR %s][Without subs in castellan][/COLOR]" +msgstr " [COLOR %s][Sin subs en castellano][/COLOR]" + +msgctxt "#70361" +msgid ">> More Episodes" +msgstr ">> Más Episodios" + +msgctxt "#70362" +msgid "Episodes" +msgstr "Episodios" + +msgctxt "#70363" +msgid "Trailers/Promotions" +msgstr "Tráilers/Promocionales" + +msgctxt "#70364" +msgid "Winter" +msgstr "Invierno" + +msgctxt "#70365" +msgid "Spring" +msgstr "Primavera" + +msgctxt "#70366" +msgid "Summer" +msgstr "Verano" + +msgctxt "#70367" +msgid "Fall" +msgstr "Otoño" + +msgctxt "#70368" +msgid "(New)" +msgstr "(Nuevos)" + +msgctxt "#70369" +msgid "(Continuation)" +msgstr "(Continuación)" + +msgctxt "#70370" +msgid "Characters/Benders" +msgstr "Personajes/Dobladores" + +msgctxt "#70371" +msgid "Principal" +msgstr "Principal" + +msgctxt "#70372" +msgid "Secondary" +msgstr "Secundario" + +msgctxt "#70373" +msgid "Animes where it appears:" +msgstr "Animes donde aparece:" + +msgctxt "#70374" +msgid "Give voice to/in:" +msgstr "Da voz a/en:" + +msgctxt "#70375" +msgid "Staff in animes:" +msgstr "Staff en animes:" + +msgctxt "#70376" +msgid "Info in AniDB [COLOR %s]%s[/COLOR]" +msgstr "Info en AniDB [COLOR %s]%s[/COLOR]" + +msgctxt "#70377" +msgid " - [COLOR %s]Fansubs in spanish:[/COLOR]" +msgstr " - [COLOR %s]Fansubs en español:[/COLOR]" + +msgctxt "#70378" +msgid "Complete" +msgstr "Completa" + +msgctxt "#70379" +msgid "Finished" +msgstr "Terminada" + +msgctxt "#70380" +msgid "Stalled" +msgstr "Pausa" + +msgctxt "#70381" +msgid "Dropped" +msgstr "Abandonada" + +msgctxt "#70381" +msgid "Myanimelist username and/or password blank" +msgstr "Usuario y/o contraseña de Myanimelist en blanco" + +msgctxt "#70382" +msgid "Currently watching" +msgstr "Viendo actualmente" + +msgctxt "#70383" +msgid "Completed" +msgstr "Completados" + +msgctxt "#70384" +msgid "Pause" +msgstr "En pausa" + +msgctxt "#70385" +msgid "Descarted" +msgstr "Descartados" + +msgctxt "#70386" +msgid "See later" +msgstr "Ver más adelante" + +msgctxt "#70387" +msgid "E = In emission | F = Completed | P = Coming soon" +msgstr "E=En emisión | F=Finalizado | P=Próximamente" + +msgctxt "#70388" +msgid ". Available actions:" +msgstr ". Acciones disponibles:" + +msgctxt "#70389" +msgid ". In your list [COLOR %s]%s[/COLOR]" +msgstr ". En tu lista [COLOR %s]%s[/COLOR]" + +msgctxt "#70390" +msgid "Anime: %s%s" +msgstr "Anime: %s%s" + +msgctxt "#70391" +msgid "Add to list %s" +msgstr "Añadir a lista %s" + +msgctxt "#70392" +msgid "Rate with a [COLOR %s]%s[/ COLOR]" +msgstr "Puntuar con un [COLOR %s]%s[/COLOR]" diff --git a/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po b/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po index 8870dcc9..2f4be12c 100644 --- a/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po +++ b/plugin.video.alfa/resources/language/Spanish (Mexico)/strings.po @@ -303,7 +303,7 @@ msgstr "Populares" msgctxt "#30985" msgid "Top Rated" -msgstr "Top Rated" +msgstr "Mejor valoradas" msgctxt "#30986" msgid "Search by Collection" @@ -2858,12 +2858,12 @@ msgid "Search %s" msgstr "Buscar %s" msgctxt "#70036" -msgid "Search actor/actress" -msgstr "Buscar actor/actriz" +msgid " Search actor/actress" +msgstr " Buscar actor/actriz" msgctxt "#70037" -msgid "Search director, writer..." -msgstr "Buscar director, guionista..." +msgid " Search director, writer..." +msgstr " Buscar director, guionista..." msgctxt "#70038" msgid "Custom Filter" @@ -3947,3 +3947,322 @@ msgctxt "#70313" msgid "Top rated Series" msgstr "Series mejor valoradas" +msgctxt "#70314" +msgid "Actors/Actresses" +msgstr "Actores/Actrices" + +msgctxt "#70315" +msgid "Recommendations" +msgstr "Recomendaciones" + +msgctxt "#70316" +msgid "List of Images" +msgstr "Lista de Imágenes" + +msgctxt "#70317" +msgid "Listen to BSO - List of songs" +msgstr "Escuchar BSO - Lista de canciones" + +msgctxt "#70318" +msgid "Manage yor trakt account" +msgstr "Gestionar con tu cuenta Trakt" + +msgctxt "#70319" +msgid "Filming equipment" +msgstr "Equipo de rodaje" + +msgctxt "#70320" +msgid "Filter search" +msgstr "Filtra la búsqueda" + +msgctxt "#70321" +msgid "[MAL] Add to your lists/%s" +msgstr "[MAL] Añadir a tus listas/%s" + +msgctxt "#70322" +msgid "[MAL] in your list of [COLOR %s]%s[/COLOR] Do you want to change?/%s" +msgstr "[MAL] En tu lista de [COLOR %s]%s[/COLOR]. ¿Cambiar?/%s" + +msgctxt "#70323" +msgid "[Trakt] Manage your account" +msgstr "[Trakt] Gestionar con tu cuenta" + +msgctxt "#70324" +msgid "[FA] My vote: %s ---> Change?" +msgstr "[FA] Mi voto: %s ---> ¿Cambiar?" + +msgctxt "#70325" +msgid "[FA] Vote %s" +msgstr "[FA] Votar %s" + +msgctxt "#70326" +msgid "[FA] Add or remove from a user list" +msgstr "[FA] Añadir o quitar de una lista de usuario" + +msgctxt "#70327" +msgid "It's part of: %s" +msgstr "Es parte de: %s" + +msgctxt "#70328" +msgid "%ss similarar" +msgstr "%ss similares" + +msgctxt "#70329" +msgid "User and/or passwords not configured" +msgstr "Usuario y/o contraseñas no configurados" + +msgctxt "#70330" +msgid "Error in the user and/or password. Check your credentials" +msgstr "Error en el usuario y/o contraseña. Comprueba tus credenciales" + +msgctxt "#70331" +msgid "Error during login. Check your credentials +msgstr "Error durante el login. Comprueba tus credenciales" + +msgctxt "#70332" +msgid "My votes" +msgstr "Mis votaciones" + +msgctxt "#70333" +msgid "Add new list" +msgstr "Añadir una nueva lista" + +msgctxt "#70334" +msgid "Action completed successfully" +msgstr "Acción completada con éxito" + +msgctxt "#70335" +msgid "Error, something has failed during the process" +msgstr "Error, algo ha fallado durante el proceso" + +msgctxt "#70336" +msgid "Vote %s" +msgstr "Votar %s" + +msgctxt "#70337" +msgid "Vote completed successfully" +msgstr "Voto contabilizado con éxito" + +msgctxt "#70338" +msgid "List created correctly" +msgstr "Lista creada correctamente" + +msgctxt "#70339" +msgid "Fanart.tv website not available. Retry" +msgstr "Web de Fanart.tv no disponible. Vuelve a intentarlo" + +msgctxt "#70340" +msgid "No images available" +msgstr "No hay imágenes disponibles" + +msgctxt "#70341" +msgid "[Trakt] Mark %s as not seen" +msgstr "[Trakt] Marcar %s como no vista" + +msgctxt "#70342" +msgid "[Trakt] Mark %s as seen" +msgstr "[Trakt] Marcar %s como vista" + +msgctxt "#70343" +msgid "[Trakt] Remove %s from your watchlist" +msgstr "[Trakt] Eliminar %s de tu watchlist" + +msgctxt "#70344" +msgid "Add to %s your watchlist"" +msgstr "[Trakt] Añadir %s a tu watchlist" + +msgctxt "#70345" +msgid "[Trakt] Remove %s from your collection" +msgstr "[Trakt] Eliminar %s de tu colección" + +msgctxt "#70346" +msgid "[Trakt] Add %s to your collection +msgstr "[Trakt] Añadir %s a tu colección" + +msgctxt "#70347" +msgid "Action performed correctly" +msgstr "Acción realizada correctamente" + +msgctxt "#70348" +msgid "An error occurred in process" +msgstr "Hubo error en el proceso" + +msgctxt "#70349" +msgid "List sorted by %s. Change order?" +msgstr "Lista ordenada por %s. ¿Cambiar orden?" + +msgctxt "#70350" +msgid "Search in alfa: %s" +msgstr "Buscar en alfa: %s" + +msgctxt "#70351" +msgid " Search alternative title: %s" +msgstr " Buscar por título alternativo: %s" + +msgctxt "#70352" +msgid " Search title in english: %s" +msgstr " Buscar por su título en inglés: %s" + +msgctxt "#70353" +msgid "Vídeos (Episodes, Trailers...)" +msgstr "Vídeos (Episodios, Trailers...)" + +msgctxt "#70354" +msgid "Characters/Staff" +msgstr "Personajes/Staff" + +msgctxt "#70355" +msgid "Prequel: %s" +msgstr "Precuela: %s" + +msgctxt "#70356" +msgid "Sequel: %s" +msgstr "Secuela: %s" + +msgctxt "#70357" +msgid "Alternative version: %s" +msgstr "Versión alternativa: %s" + +msgctxt "#70358" +msgid "Recommendations TMDB" +msgstr "Recomendaciones TMDB" + +msgctxt "#70359" +msgid "Recommendations MyAnimeList" +msgstr "Recomendaciones MyAnimeList" + +msgctxt "#70360" +msgid " [COLOR %s][Without subs in castellan][/COLOR]" +msgstr " [COLOR %s][Sin subs en castellano][/COLOR]" + +msgctxt "#70361" +msgid ">> More Episodes" +msgstr ">> Más Episodios" + +msgctxt "#70362" +msgid "Episodes" +msgstr "Episodios" + +msgctxt "#70363" +msgid "Trailers/Promotions" +msgstr "Tráilers/Promocionales" + +msgctxt "#70364" +msgid "Winter" +msgstr "Invierno" + +msgctxt "#70365" +msgid "Spring" +msgstr "Primavera" + +msgctxt "#70366" +msgid "Summer" +msgstr "Verano" + +msgctxt "#70367" +msgid "Fall" +msgstr "Otoño" + +msgctxt "#70368" +msgid "(New)" +msgstr "(Nuevos)" + +msgctxt "#70369" +msgid "(Continuation)" +msgstr "(Continuación)" + +msgctxt "#70370" +msgid "Characters/Benders" +msgstr "Personajes/Dobladores" + +msgctxt "#70371" +msgid "Principal" +msgstr "Principal" + +msgctxt "#70372" +msgid "Secondary" +msgstr "Secundario" + +msgctxt "#70373" +msgid "Animes where it appears:" +msgstr "Animes donde aparece:" + +msgctxt "#70374" +msgid "Give voice to/in:" +msgstr "Da voz a/en:" + +msgctxt "#70375" +msgid "Staff in animes:" +msgstr "Staff en animes:" + +msgctxt "#70376" +msgid "Info in AniDB [COLOR %s]%s[/COLOR]" +msgstr "Info en AniDB [COLOR %s]%s[/COLOR]" + +msgctxt "#70377" +msgid " - [COLOR %s]Fansubs in spanish:[/COLOR]" +msgstr " - [COLOR %s]Fansubs en español:[/COLOR]" + +msgctxt "#70378" +msgid "Complete" +msgstr "Completa" + +msgctxt "#70379" +msgid "Finished" +msgstr "Terminada" + +msgctxt "#70380" +msgid "Stalled" +msgstr "Pausa" + +msgctxt "#70381" +msgid "Dropped" +msgstr "Abandonada" + +msgctxt "#70381" +msgid "Myanimelist username and/or password blank" +msgstr "Usuario y/o contraseña de Myanimelist en blanco" + +msgctxt "#70382" +msgid "Currently watching" +msgstr "Viendo actualmente" + +msgctxt "#70383" +msgid "Completed" +msgstr "Completados" + +msgctxt "#70384" +msgid "Pause" +msgstr "En pausa" + +msgctxt "#70385" +msgid "Descarted" +msgstr "Descartados" + +msgctxt "#70386" +msgid "See later" +msgstr "Ver más adelante" + +msgctxt "#70387" +msgid "E = In emission | F = Completed | P = Coming soon" +msgstr "E=En emisión | F=Finalizado | P=Próximamente" + +msgctxt "#70388" +msgid ". Available actions:" +msgstr ". Acciones disponibles:" + +msgctxt "#70389" +msgid ". In your list [COLOR %s]%s[/COLOR]" +msgstr ". En tu lista [COLOR %s]%s[/COLOR]" + +msgctxt "#70390" +msgid "Anime: %s%s" +msgstr "Anime: %s%s" + +msgctxt "#70391" +msgid "Add to list %s" +msgstr "Añadir a lista %s" + +msgctxt "#70392" +msgid "Rate with a [COLOR %s]%s[/ COLOR]" +msgstr "Puntuar con un [COLOR %s]%s[/COLOR]" diff --git a/plugin.video.alfa/resources/language/Spanish/strings.po b/plugin.video.alfa/resources/language/Spanish/strings.po index 8870dcc9..2f4be12c 100644 --- a/plugin.video.alfa/resources/language/Spanish/strings.po +++ b/plugin.video.alfa/resources/language/Spanish/strings.po @@ -303,7 +303,7 @@ msgstr "Populares" msgctxt "#30985" msgid "Top Rated" -msgstr "Top Rated" +msgstr "Mejor valoradas" msgctxt "#30986" msgid "Search by Collection" @@ -2858,12 +2858,12 @@ msgid "Search %s" msgstr "Buscar %s" msgctxt "#70036" -msgid "Search actor/actress" -msgstr "Buscar actor/actriz" +msgid " Search actor/actress" +msgstr " Buscar actor/actriz" msgctxt "#70037" -msgid "Search director, writer..." -msgstr "Buscar director, guionista..." +msgid " Search director, writer..." +msgstr " Buscar director, guionista..." msgctxt "#70038" msgid "Custom Filter" @@ -3947,3 +3947,322 @@ msgctxt "#70313" msgid "Top rated Series" msgstr "Series mejor valoradas" +msgctxt "#70314" +msgid "Actors/Actresses" +msgstr "Actores/Actrices" + +msgctxt "#70315" +msgid "Recommendations" +msgstr "Recomendaciones" + +msgctxt "#70316" +msgid "List of Images" +msgstr "Lista de Imágenes" + +msgctxt "#70317" +msgid "Listen to BSO - List of songs" +msgstr "Escuchar BSO - Lista de canciones" + +msgctxt "#70318" +msgid "Manage yor trakt account" +msgstr "Gestionar con tu cuenta Trakt" + +msgctxt "#70319" +msgid "Filming equipment" +msgstr "Equipo de rodaje" + +msgctxt "#70320" +msgid "Filter search" +msgstr "Filtra la búsqueda" + +msgctxt "#70321" +msgid "[MAL] Add to your lists/%s" +msgstr "[MAL] Añadir a tus listas/%s" + +msgctxt "#70322" +msgid "[MAL] in your list of [COLOR %s]%s[/COLOR] Do you want to change?/%s" +msgstr "[MAL] En tu lista de [COLOR %s]%s[/COLOR]. ¿Cambiar?/%s" + +msgctxt "#70323" +msgid "[Trakt] Manage your account" +msgstr "[Trakt] Gestionar con tu cuenta" + +msgctxt "#70324" +msgid "[FA] My vote: %s ---> Change?" +msgstr "[FA] Mi voto: %s ---> ¿Cambiar?" + +msgctxt "#70325" +msgid "[FA] Vote %s" +msgstr "[FA] Votar %s" + +msgctxt "#70326" +msgid "[FA] Add or remove from a user list" +msgstr "[FA] Añadir o quitar de una lista de usuario" + +msgctxt "#70327" +msgid "It's part of: %s" +msgstr "Es parte de: %s" + +msgctxt "#70328" +msgid "%ss similarar" +msgstr "%ss similares" + +msgctxt "#70329" +msgid "User and/or passwords not configured" +msgstr "Usuario y/o contraseñas no configurados" + +msgctxt "#70330" +msgid "Error in the user and/or password. Check your credentials" +msgstr "Error en el usuario y/o contraseña. Comprueba tus credenciales" + +msgctxt "#70331" +msgid "Error during login. Check your credentials +msgstr "Error durante el login. Comprueba tus credenciales" + +msgctxt "#70332" +msgid "My votes" +msgstr "Mis votaciones" + +msgctxt "#70333" +msgid "Add new list" +msgstr "Añadir una nueva lista" + +msgctxt "#70334" +msgid "Action completed successfully" +msgstr "Acción completada con éxito" + +msgctxt "#70335" +msgid "Error, something has failed during the process" +msgstr "Error, algo ha fallado durante el proceso" + +msgctxt "#70336" +msgid "Vote %s" +msgstr "Votar %s" + +msgctxt "#70337" +msgid "Vote completed successfully" +msgstr "Voto contabilizado con éxito" + +msgctxt "#70338" +msgid "List created correctly" +msgstr "Lista creada correctamente" + +msgctxt "#70339" +msgid "Fanart.tv website not available. Retry" +msgstr "Web de Fanart.tv no disponible. Vuelve a intentarlo" + +msgctxt "#70340" +msgid "No images available" +msgstr "No hay imágenes disponibles" + +msgctxt "#70341" +msgid "[Trakt] Mark %s as not seen" +msgstr "[Trakt] Marcar %s como no vista" + +msgctxt "#70342" +msgid "[Trakt] Mark %s as seen" +msgstr "[Trakt] Marcar %s como vista" + +msgctxt "#70343" +msgid "[Trakt] Remove %s from your watchlist" +msgstr "[Trakt] Eliminar %s de tu watchlist" + +msgctxt "#70344" +msgid "Add to %s your watchlist"" +msgstr "[Trakt] Añadir %s a tu watchlist" + +msgctxt "#70345" +msgid "[Trakt] Remove %s from your collection" +msgstr "[Trakt] Eliminar %s de tu colección" + +msgctxt "#70346" +msgid "[Trakt] Add %s to your collection +msgstr "[Trakt] Añadir %s a tu colección" + +msgctxt "#70347" +msgid "Action performed correctly" +msgstr "Acción realizada correctamente" + +msgctxt "#70348" +msgid "An error occurred in process" +msgstr "Hubo error en el proceso" + +msgctxt "#70349" +msgid "List sorted by %s. Change order?" +msgstr "Lista ordenada por %s. ¿Cambiar orden?" + +msgctxt "#70350" +msgid "Search in alfa: %s" +msgstr "Buscar en alfa: %s" + +msgctxt "#70351" +msgid " Search alternative title: %s" +msgstr " Buscar por título alternativo: %s" + +msgctxt "#70352" +msgid " Search title in english: %s" +msgstr " Buscar por su título en inglés: %s" + +msgctxt "#70353" +msgid "Vídeos (Episodes, Trailers...)" +msgstr "Vídeos (Episodios, Trailers...)" + +msgctxt "#70354" +msgid "Characters/Staff" +msgstr "Personajes/Staff" + +msgctxt "#70355" +msgid "Prequel: %s" +msgstr "Precuela: %s" + +msgctxt "#70356" +msgid "Sequel: %s" +msgstr "Secuela: %s" + +msgctxt "#70357" +msgid "Alternative version: %s" +msgstr "Versión alternativa: %s" + +msgctxt "#70358" +msgid "Recommendations TMDB" +msgstr "Recomendaciones TMDB" + +msgctxt "#70359" +msgid "Recommendations MyAnimeList" +msgstr "Recomendaciones MyAnimeList" + +msgctxt "#70360" +msgid " [COLOR %s][Without subs in castellan][/COLOR]" +msgstr " [COLOR %s][Sin subs en castellano][/COLOR]" + +msgctxt "#70361" +msgid ">> More Episodes" +msgstr ">> Más Episodios" + +msgctxt "#70362" +msgid "Episodes" +msgstr "Episodios" + +msgctxt "#70363" +msgid "Trailers/Promotions" +msgstr "Tráilers/Promocionales" + +msgctxt "#70364" +msgid "Winter" +msgstr "Invierno" + +msgctxt "#70365" +msgid "Spring" +msgstr "Primavera" + +msgctxt "#70366" +msgid "Summer" +msgstr "Verano" + +msgctxt "#70367" +msgid "Fall" +msgstr "Otoño" + +msgctxt "#70368" +msgid "(New)" +msgstr "(Nuevos)" + +msgctxt "#70369" +msgid "(Continuation)" +msgstr "(Continuación)" + +msgctxt "#70370" +msgid "Characters/Benders" +msgstr "Personajes/Dobladores" + +msgctxt "#70371" +msgid "Principal" +msgstr "Principal" + +msgctxt "#70372" +msgid "Secondary" +msgstr "Secundario" + +msgctxt "#70373" +msgid "Animes where it appears:" +msgstr "Animes donde aparece:" + +msgctxt "#70374" +msgid "Give voice to/in:" +msgstr "Da voz a/en:" + +msgctxt "#70375" +msgid "Staff in animes:" +msgstr "Staff en animes:" + +msgctxt "#70376" +msgid "Info in AniDB [COLOR %s]%s[/COLOR]" +msgstr "Info en AniDB [COLOR %s]%s[/COLOR]" + +msgctxt "#70377" +msgid " - [COLOR %s]Fansubs in spanish:[/COLOR]" +msgstr " - [COLOR %s]Fansubs en español:[/COLOR]" + +msgctxt "#70378" +msgid "Complete" +msgstr "Completa" + +msgctxt "#70379" +msgid "Finished" +msgstr "Terminada" + +msgctxt "#70380" +msgid "Stalled" +msgstr "Pausa" + +msgctxt "#70381" +msgid "Dropped" +msgstr "Abandonada" + +msgctxt "#70381" +msgid "Myanimelist username and/or password blank" +msgstr "Usuario y/o contraseña de Myanimelist en blanco" + +msgctxt "#70382" +msgid "Currently watching" +msgstr "Viendo actualmente" + +msgctxt "#70383" +msgid "Completed" +msgstr "Completados" + +msgctxt "#70384" +msgid "Pause" +msgstr "En pausa" + +msgctxt "#70385" +msgid "Descarted" +msgstr "Descartados" + +msgctxt "#70386" +msgid "See later" +msgstr "Ver más adelante" + +msgctxt "#70387" +msgid "E = In emission | F = Completed | P = Coming soon" +msgstr "E=En emisión | F=Finalizado | P=Próximamente" + +msgctxt "#70388" +msgid ". Available actions:" +msgstr ". Acciones disponibles:" + +msgctxt "#70389" +msgid ". In your list [COLOR %s]%s[/COLOR]" +msgstr ". En tu lista [COLOR %s]%s[/COLOR]" + +msgctxt "#70390" +msgid "Anime: %s%s" +msgstr "Anime: %s%s" + +msgctxt "#70391" +msgid "Add to list %s" +msgstr "Añadir a lista %s" + +msgctxt "#70392" +msgid "Rate with a [COLOR %s]%s[/ COLOR]" +msgstr "Puntuar con un [COLOR %s]%s[/COLOR]" From 5701585bc144c5e0fb6f0a0d4362c54c9fc8ddfe Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Wed, 1 Aug 2018 13:43:24 +0200 Subject: [PATCH 12/20] Alltorrent y Zentorrents: baja por inactividad --- plugin.video.alfa/channels/alltorrent.json | 2 +- plugin.video.alfa/channels/zentorrents.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/alltorrent.json b/plugin.video.alfa/channels/alltorrent.json index e2188b7b..ae9bbebe 100755 --- a/plugin.video.alfa/channels/alltorrent.json +++ b/plugin.video.alfa/channels/alltorrent.json @@ -1,7 +1,7 @@ { "id": "alltorrent", "name": "Alltorrent", - "active": true, + "active": false, "adult": false, "language": ["cast"], "thumbnail": "altorrent.png", diff --git a/plugin.video.alfa/channels/zentorrents.json b/plugin.video.alfa/channels/zentorrents.json index ca5d922a..fa567d66 100755 --- a/plugin.video.alfa/channels/zentorrents.json +++ b/plugin.video.alfa/channels/zentorrents.json @@ -1,7 +1,7 @@ { "id": "zentorrents", "name": "Zentorrent", - "active": true, + "active": false, "adult": false, "language": ["cast"], "banner": "zentorrents.png", From 4c4ddf0b61f24036fc980e6bef1cfaea05651ebc Mon Sep 17 00:00:00 2001 From: Intel1 Date: Wed, 1 Aug 2018 09:31:05 -0500 Subject: [PATCH 13/20] Actualizados jawcloud: Nuevo server estream: add pattern seriesblanco: lenguajes qserie: fix pelisplusco: fix hdfull: fix cinemahd: fix --- plugin.video.alfa/channels/cinemahd.py | 19 ++++--- plugin.video.alfa/channels/hdfull.py | 8 +-- plugin.video.alfa/channels/pelisplusco.py | 3 +- plugin.video.alfa/channels/qserie.py | 58 +++++++++----------- plugin.video.alfa/channels/seriesblanco.json | 3 +- plugin.video.alfa/servers/estream.json | 4 ++ plugin.video.alfa/servers/jawcloud.json | 42 ++++++++++++++ plugin.video.alfa/servers/jawcloud.py | 20 +++++++ 8 files changed, 112 insertions(+), 45 deletions(-) create mode 100644 plugin.video.alfa/servers/jawcloud.json create mode 100644 plugin.video.alfa/servers/jawcloud.py diff --git a/plugin.video.alfa/channels/cinemahd.py b/plugin.video.alfa/channels/cinemahd.py index 6d4d748d..fa428910 100644 --- a/plugin.video.alfa/channels/cinemahd.py +++ b/plugin.video.alfa/channels/cinemahd.py @@ -59,18 +59,22 @@ def list_all(item): itemlist = [] data = get_source(item.url) + full_data = data + data = scrapertools.find_single_match(data, '