From 064a8a7fa94ff679688d431c9fdf627ce00cf831 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 9 Jan 2020 12:32:12 +0100 Subject: [PATCH] - Riorganizzazione Impostazioni - Nascondi Server per Autoplay . Episodio Successivo con Finestra PopUp --- core/support.py | 4 ++-- platformcode/launcher.py | 20 ++++++++++++-------- resources/language/English/strings.po | 4 ++++ resources/language/Italian/strings.po | 4 ++++ resources/settings.xml | 20 +++++++++++++------- specials/nextep.py | 26 ++++++++++++++++++++------ 6 files changed, 55 insertions(+), 23 deletions(-) diff --git a/core/support.py b/core/support.py index 5cf8dacb..90aaec83 100755 --- a/core/support.py +++ b/core/support.py @@ -981,7 +981,7 @@ def controls(itemlist, item, AutoPlay=True, CheckLinks=True, down_load=True): channel_node = autoplay_node.get(item.channel, {}) settings_node = channel_node.get('settings', {}) AP = get_setting('autoplay') or settings_node['active'] - HS = config.get_setting('next_ep') + HS = config.get_setting('hide_servers') if CL and not AP: if get_setting('checklinks', item.channel): @@ -1010,7 +1010,7 @@ def controls(itemlist, item, AutoPlay=True, CheckLinks=True, down_load=True): VL = True except: pass - if not AP or VL or HS == 0: + if not AP or VL or not HS: return itemlist def filterLang(item, itemlist): diff --git a/platformcode/launcher.py b/platformcode/launcher.py index 04dd7e94..6400628e 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -479,7 +479,6 @@ def play_from_library(item): itemlist = videolibrary.findvideos(item) - while platformtools.is_playing(): # Ventana convencional sleep(5) @@ -522,15 +521,20 @@ def play_from_library(item): else: cabecera = config.get_localized_string(30163) - seleccion = platformtools.dialog_select(cabecera, opciones) + if (not config.get_setting('autoplay') and not config.get_setting('hide_servers')) or item.no_window: + seleccion = platformtools.dialog_select(cabecera, opciones) - if seleccion == -1: - return - else: - item = videolibrary.play(itemlist[seleccion])[0] - item.play_from = 'window' - platformtools.play_video(item) + if seleccion == -1: + return + else: + item = videolibrary.play(itemlist[seleccion])[0] + item.play_from = 'window' + platformtools.play_video(item) from specials import autoplay if (platformtools.is_playing() and item.action) or item.server == 'torrent' or autoplay.is_active(item.contentChannel): break + + if config.get_setting('next_ep') > 0 and item.contentType != 'movie': + from specials.nextep import afther_stop + afther_stop(item) diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 11016eeb..1548f4d8 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -5729,6 +5729,10 @@ msgctxt "#70752" msgid "Do nothing" msgstr "" +msgctxt "#70753" +msgid "Playback" +msgstr "" + # DNS start [ settings and declaration ] msgctxt "#707401" msgid "Enable DNS Check Alert" diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index cea6f08c..cb0c5e3a 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -5733,6 +5733,10 @@ msgctxt "#70752" msgid "Do nothing" msgstr "Non fare nulla" +msgctxt "#70753" +msgid "Playback" +msgstr "Riproduzione" + # DNS start [ settings and declaration ] msgctxt "#707401" msgid "Enable DNS Check Alert" diff --git a/resources/settings.xml b/resources/settings.xml index e41ce2a5..5f280348 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -2,13 +2,7 @@ - - - - - - - + @@ -41,6 +35,16 @@ + + + + + + + + + +