KoD 1.5.2
- Migliorato Menu Rapido\n- Rimosso Menu Laterale\n- Fix Youtube\n- Fix Visualizza collegamenti della videoteca come pop-up\n- Riorganizzata sezione Aiuto\n- Reinserito canale tantifilm\n
This commit is contained in:
+4
-4
@@ -62,11 +62,13 @@ def start(itemlist, item):
|
||||
|
||||
# Save the current value of "Action and Player Mode" in preferences
|
||||
user_config_setting_action = config.get_setting("default_action")
|
||||
user_config_setting_player = config.get_setting("player_mode")
|
||||
# user_config_setting_player = config.get_setting("player_mode")
|
||||
|
||||
# Enable the "View in high quality" action (if the server returns more than one quality, eg gdrive)
|
||||
if not user_config_setting_action: config.set_setting("default_action", 2)
|
||||
|
||||
# if user_config_setting_player != 0: config.set_setting("player_mode", 0)
|
||||
|
||||
# Priorities when ordering itemlist:
|
||||
# 0: Servers and qualities
|
||||
# 1: Qualities and servers
|
||||
@@ -208,8 +210,6 @@ def start(itemlist, item):
|
||||
videoitem = autoplay_elem['videoitem']
|
||||
if videoitem.server.lower() not in max_intentos_servers:
|
||||
max_intentos_servers[videoitem.server.lower()] = max_intentos
|
||||
if videoitem.server.lower() in ['youtube'] and user_config_setting_player != 0:
|
||||
config.set_setting("player_mode", 0)
|
||||
|
||||
# If the maximum number of attempts of this server have been reached, we jump to the next
|
||||
if max_intentos_servers[videoitem.server.lower()] == 0:
|
||||
@@ -269,7 +269,7 @@ def start(itemlist, item):
|
||||
|
||||
# Restore if necessary the previous value of "Action and Player Mode" in preferences
|
||||
if not user_config_setting_action: config.set_setting("default_action", user_config_setting_action)
|
||||
config.set_setting("player_mode", user_config_setting_player)
|
||||
# if user_config_setting_player != 0: config.set_setting("player_mode", user_config_setting_player)
|
||||
|
||||
return itemlist
|
||||
|
||||
|
||||
+2
-2
@@ -142,9 +142,9 @@ class Downloader(object):
|
||||
# We stop downloading
|
||||
self._state = self.states.stopped
|
||||
for t in self._threads:
|
||||
if t.isAlive(): t.join()
|
||||
if t.is_alive(): t.join()
|
||||
|
||||
if self._save_thread.isAlive(): self._save_thread.join()
|
||||
if self._save_thread.is_alive(): self._save_thread.join()
|
||||
|
||||
if self._seekable:
|
||||
# Guardamos la info al final del archivo
|
||||
|
||||
+15
-1
@@ -815,36 +815,50 @@ def typo(string, typography=''):
|
||||
string = string
|
||||
typography.lower()
|
||||
|
||||
|
||||
if 'capitalize' in typography:
|
||||
string = string.capitalize()
|
||||
typography = typography.replace('capitalize', '')
|
||||
if 'uppercase' in typography:
|
||||
string = string.upper()
|
||||
typography = typography.replace('uppercase', '')
|
||||
if 'lowercase' in typography:
|
||||
string = string.lower()
|
||||
typography = typography.replace('lowercase', '')
|
||||
if '[]' in typography:
|
||||
string = '[' + string + ']'
|
||||
typography = typography.replace('[]', '')
|
||||
if '()' in typography:
|
||||
string = '(' + string + ')'
|
||||
typography = typography.replace('()', '')
|
||||
if 'submenu' in typography:
|
||||
if VLT: string = "•• " + string
|
||||
else: string = string
|
||||
typography = typography.replace('submenu', '')
|
||||
if 'color kod' in typography:
|
||||
string = '[COLOR ' + kod_color + ']' + string + '[/COLOR]'
|
||||
typography = typography.replace('color kod', '')
|
||||
elif 'color' in typography:
|
||||
color = scrapertools.find_single_match(typography, 'color ([a-zA-Z0-9]+)')
|
||||
string = '[COLOR ' + color + ']' + string + '[/COLOR]'
|
||||
typography = typography.replace('color ' + color, '')
|
||||
if 'bold' in typography:
|
||||
string = '[B]' + string + '[/B]'
|
||||
typography = typography.replace('bold', '')
|
||||
if 'italic' in typography:
|
||||
string = '[I]' + string + '[/I]'
|
||||
typography = typography.replace('italic', '')
|
||||
if '_' in typography:
|
||||
string = ' ' + string
|
||||
typography = typography.replace('_', '')
|
||||
if '--' in typography:
|
||||
string = ' - ' + string
|
||||
typography = typography.replace('--', '')
|
||||
if 'bullet' in typography:
|
||||
if VLT: string = '[B]' + "•" + '[/B] ' + string
|
||||
else: string = string
|
||||
typography = typography.replace('bullet', '')
|
||||
typography = typography.strip()
|
||||
if typography: string = string + '{' + typography + '}'
|
||||
return string
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -269,7 +269,7 @@ def wait_for_update_trakt():
|
||||
t = Thread(update_all)
|
||||
t.setDaemon(True)
|
||||
t.start()
|
||||
t.isAlive()
|
||||
t.is_alive()
|
||||
|
||||
def update_all():
|
||||
# from core.support import dbg;dbg()
|
||||
|
||||
@@ -49,6 +49,8 @@ def read_nfo(path_nfo, item=None):
|
||||
data = "\n".join(data.splitlines()[1:])
|
||||
|
||||
it_nfo = Item().fromjson(data)
|
||||
if not it_nfo.library_playcounts: # may be corrupted
|
||||
it_nfo.library_playcounts = {}
|
||||
|
||||
if item:
|
||||
it = item.clone()
|
||||
|
||||
Reference in New Issue
Block a user