From 235f0afaaf31cb89b59c811e21b4bf066c34be76 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 1 Jun 2020 20:21:30 +0200 Subject: [PATCH] Aumentato il numero di server preferiti e piccolo fix Autoplay --- specials/autoplay.py | 2 +- specials/setting.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/specials/autoplay.py b/specials/autoplay.py index 630f5265..670cd031 100644 --- a/specials/autoplay.py +++ b/specials/autoplay.py @@ -189,7 +189,7 @@ def start(itemlist, item): # The texts of each server and quality are stored in lists, e.g. favorite_servers = ['verystream', 'openload', 'streamcloud'] # from core.support import dbg;dbg() - if get_setting('autoplay') and 'favorites_servers_list' in general_settings_node: + if get_setting('autoplay') and 'favorites_servers_list' in general_settings_node and get_setting('favorites_servers'): favorite_servers = general_settings_node['favorites_servers_list'] if get_setting('default_action') == 1: default_quality_list.reverse() diff --git a/specials/setting.py b/specials/setting.py index 036b68d7..d5619303 100644 --- a/specials/setting.py +++ b/specials/setting.py @@ -368,7 +368,7 @@ def servers_favorites(item): if orden > 0: dict_values[orden] = len(server_names) - 1 - for x in range(1, 6): + for x in range(1, 11): control = {'id': x, 'type': "list", 'label': config.get_localized_string(60597) % x, @@ -404,6 +404,7 @@ def cb_servers_favorites(server_names, dict_values): config.set_setting("favorites_servers_list", 0, server=server) progreso.update(old_div((i * 100), n), config.get_localized_string(60559) % server_parameters['name']) i += 1 + c = 1 favorites_servers_list = [] while c in dict_favorites: