fix reject
This commit is contained in:
@@ -45,6 +45,7 @@ def mainlist(item):
|
|||||||
|
|
||||||
itemlist = []
|
itemlist = []
|
||||||
list_canales, any_active = get_channels_list()
|
list_canales, any_active = get_channels_list()
|
||||||
|
channel_language = config.get_setting("channel_language", default="all")
|
||||||
|
|
||||||
#if list_canales['peliculas']:
|
#if list_canales['peliculas']:
|
||||||
thumbnail = get_thumb("channels_movie.png")
|
thumbnail = get_thumb("channels_movie.png")
|
||||||
@@ -88,19 +89,27 @@ def mainlist(item):
|
|||||||
set_category_context(new_item)
|
set_category_context(new_item)
|
||||||
itemlist.append(new_item)
|
itemlist.append(new_item)
|
||||||
|
|
||||||
# if list_canales['Castellano']:
|
if channel_language == "all" or channel_language == "esp":
|
||||||
thumbnail = get_thumb("channels_spanish.png")
|
# if list_canales['Castellano']:
|
||||||
new_item = Item(channel=item.channel, action="novedades", extra="castellano", title=config.get_localized_string(70014),
|
thumbnail = get_thumb("channels_spanish.png")
|
||||||
thumbnail=thumbnail)
|
new_item = Item(channel=item.channel, action="novedades", extra="castellano", title=config.get_localized_string(70014),
|
||||||
set_category_context(new_item)
|
thumbnail=thumbnail)
|
||||||
itemlist.append(new_item)
|
set_category_context(new_item)
|
||||||
|
itemlist.append(new_item)
|
||||||
|
|
||||||
# if list_canales['Latino']:
|
# if list_canales['Latino']:
|
||||||
thumbnail = get_thumb("channels_latino.png")
|
thumbnail = get_thumb("channels_latino.png")
|
||||||
new_item = Item(channel=item.channel, action="novedades", extra="latino", title=config.get_localized_string(59976),
|
new_item = Item(channel=item.channel, action="novedades", extra="latino", title=config.get_localized_string(59976),
|
||||||
thumbnail=thumbnail)
|
thumbnail=thumbnail)
|
||||||
set_category_context(new_item)
|
set_category_context(new_item)
|
||||||
itemlist.append(new_item)
|
itemlist.append(new_item)
|
||||||
|
if channel_language == "all":
|
||||||
|
# if list_canales['Italiano']:
|
||||||
|
thumbnail = get_thumb("channels_italian.png")
|
||||||
|
new_item = Item(channel=item.channel, action="novedades", extra="italiano", title=config.get_localized_string(70563),
|
||||||
|
thumbnail=thumbnail)
|
||||||
|
set_category_context(new_item)
|
||||||
|
itemlist.append(new_item)
|
||||||
|
|
||||||
# if list_canales['Torrent']:
|
# if list_canales['Torrent']:
|
||||||
thumbnail = get_thumb("channels_torrent.png")
|
thumbnail = get_thumb("channels_torrent.png")
|
||||||
@@ -130,7 +139,7 @@ def get_channels_list():
|
|||||||
logger.info()
|
logger.info()
|
||||||
|
|
||||||
list_canales = {'peliculas': [], '4k': [], 'terror': [], 'infantiles': [], 'series': [], 'anime': [],
|
list_canales = {'peliculas': [], '4k': [], 'terror': [], 'infantiles': [], 'series': [], 'anime': [],
|
||||||
'castellano': [], 'latino':[], 'torrent':[], 'documentales': []}
|
'castellano': [], 'latino':[], 'italiano':[], 'torrent':[], 'documentales': []}
|
||||||
any_active = False
|
any_active = False
|
||||||
# Rellenar listas de canales disponibles
|
# Rellenar listas de canales disponibles
|
||||||
channels_path = os.path.join(config.get_runtime_path(), "channels", '*.json')
|
channels_path = os.path.join(config.get_runtime_path(), "channels", '*.json')
|
||||||
|
|||||||
@@ -4921,12 +4921,16 @@ msgstr ""
|
|||||||
|
|
||||||
msgctxt "#70560"
|
msgctxt "#70560"
|
||||||
msgid "Movies by Genre"
|
msgid "Movies by Genre"
|
||||||
msgstr "
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70561"
|
msgctxt "#70561"
|
||||||
msgid "Search Similar
|
msgid "Search Similar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70562"
|
msgctxt "#70562"
|
||||||
msgid "Autoplay (Enable autoplay on all supported channels)"
|
msgid "Autoplay (Enable autoplay on all supported channels)"
|
||||||
msgstr "Autoplay (Enable autoplay on all supported channels)"
|
msgstr "Autoplay (Enable autoplay on all supported channels)"
|
||||||
|
|
||||||
|
msgctxt "#70563"
|
||||||
|
msgid "Italian"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
@@ -4912,10 +4912,13 @@ msgid "Movies by Genre"
|
|||||||
msgstr "Per genere"
|
msgstr "Per genere"
|
||||||
|
|
||||||
msgctxt "#70561"
|
msgctxt "#70561"
|
||||||
msgid "Search Similar
|
msgid "Search Similar"
|
||||||
msgstr "Cerca Simili"
|
msgstr "Cerca Simili"
|
||||||
|
|
||||||
|
|
||||||
msgctxt "#70562"
|
msgctxt "#70562"
|
||||||
msgid "Autoplay (Enable autoplay in all channels)"
|
msgid "Autoplay (Enable autoplay in all channels)"
|
||||||
msgstr "Autoplay (Abilita autoplay in tutti i canali)"
|
msgstr "Autoplay (Abilita autoplay in tutti i canali)"
|
||||||
|
|
||||||
|
msgctxt "#70563"
|
||||||
|
msgid "Italian"
|
||||||
|
msgstr "Italiano"
|
||||||
|
|||||||
@@ -4930,3 +4930,17 @@ msgstr "Buscar Similares"
|
|||||||
msgctxt "#70562"
|
msgctxt "#70562"
|
||||||
msgid "Autoplay (Enable autoplay on all supported channels)"
|
msgid "Autoplay (Enable autoplay on all supported channels)"
|
||||||
msgstr "Autoplay (Habilitar autoplay en todos los canales soportados)"
|
msgstr "Autoplay (Habilitar autoplay en todos los canales soportados)"
|
||||||
|
|
||||||
|
msgctxt "#70563"
|
||||||
|
msgid "Italian"
|
||||||
|
msgstr "Italiano"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4930,3 +4930,15 @@ msgstr "Buscar Similares"
|
|||||||
msgctxt "#70562"
|
msgctxt "#70562"
|
||||||
msgid "Autoplay (Enable autoplay on all supported channels)"
|
msgid "Autoplay (Enable autoplay on all supported channels)"
|
||||||
msgstr "Autoplay (Habilitar autoplay en todos los canales soportados)"
|
msgstr "Autoplay (Habilitar autoplay en todos los canales soportados)"
|
||||||
|
|
||||||
|
msgctxt "#70563"
|
||||||
|
msgid "Italian"
|
||||||
|
msgstr "Italiano"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4930,3 +4930,15 @@ msgstr "Buscar Similares"
|
|||||||
msgctxt "#70562"
|
msgctxt "#70562"
|
||||||
msgid "Autoplay (Enable autoplay on all supported channels)"
|
msgid "Autoplay (Enable autoplay on all supported channels)"
|
||||||
msgstr "Autoplay (Habilitar autoplay en todos los canales soportados)"
|
msgstr "Autoplay (Habilitar autoplay en todos los canales soportados)"
|
||||||
|
|
||||||
|
msgctxt "#70563"
|
||||||
|
msgid "Italian"
|
||||||
|
msgstr "Italiano"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user